Skip to content

improvement(desktop, executions): fix desktop update script and throw error when thinking enabled on stream false - #6578

Merged
Sg312 merged 3 commits into
stagingfrom
improvement-desktop-3
Aug 12, 2026
Merged

improvement(desktop, executions): fix desktop update script and throw error when thinking enabled on stream false#6578
Sg312 merged 3 commits into
stagingfrom
improvement-desktop-3

Conversation

@Sg312

@Sg312 Sg312 commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix desktop update script and throw error when thinking enabled on stream false

Type of Change

  • Bug fix

Testing

Manual

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Aug 12, 2026 1:41am

Request Review

@Sg312 Sg312 changed the title Improvement desktop 3 improvement(desktop, executions): fix desktop update script and throw error when thinking enabled on stream false Aug 12, 2026
@greptile-apps

greptile-apps Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR tightens workflow-execution validation for agent-event options and improves desktop update-channel resolution behind reverse proxies.

  • Requires stream: true when requesting thinking or tool-call events and updates the OpenAPI contract.
  • Uses the forwarded public hostname to select dev, staging, or stable desktop update feeds.
  • Adds focused route tests for both behaviors.

Confidence Score: 4/5

The PR appears safe to merge, with a non-blocking recommendation to avoid trusting forwarded hostnames unless the deployment guarantees they are sanitized by a trusted proxy.

The workflow validation and generated contract are coordinated, while desktop channel selection can silently skip origin updates in deployments that preserve or supply an incorrect forwarded hostname.

Files Needing Attention: apps/sim/app/api/desktop/update/latest-mac.yml/route.ts

Important Files Changed

Filename Overview
apps/sim/app/api/desktop/update/latest-mac.yml/route.ts Adds forwarded-host-based update-channel selection, but assumes the first forwarded hostname is trustworthy.
apps/sim/app/api/desktop/update/latest-mac.yml/route.test.ts Adds coverage for forwarded public hostnames and Host-header fallback across release channels.
apps/sim/app/api/v2/workflows/[id]/execute/route.ts Rejects agent-event options outside streaming mode before validating the stream protocol header.
apps/sim/lib/api/contracts/v2/workflows.ts Centralizes documentation of the new stream requirement in the shared execution constraints.
apps/sim/lib/api/contracts/v2/openapi/workflows.ts Reuses the shared execution-constraint text in the workflow operation description.
apps/docs/openapi-v2-workflows.json Regenerates the public OpenAPI document with the new stream-only option constraint.

Reviews (1): Last reviewed commit: "fix include tool calls error" | Re-trigger Greptile

Comment thread apps/sim/app/api/desktop/update/latest-mac.yml/route.ts Outdated
@Sg312
Sg312 merged commit 7f39678 into staging Aug 12, 2026
28 checks passed
@waleedlatif1
waleedlatif1 deleted the improvement-desktop-3 branch August 12, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant