Skip to content

fix(app): route mounted workspace promptAsync/command through the OpenWork wrapper path#2452

Merged
benjaminshafii merged 1 commit into
devfrom
fix/opencode-openwork-wrapper-writes
Jul 3, 2026
Merged

fix(app): route mounted workspace promptAsync/command through the OpenWork wrapper path#2452
benjaminshafii merged 1 commit into
devfrom
fix/opencode-openwork-wrapper-writes

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Split out of #2439/#2451 so this shared-path change ships and bisects independently of the org MCP connections feature.

The read-side session overrides (list/get/messages/todo) already go through the OpenWork wrapper when the client is openwork-mounted; promptAsync and command still used the generated SDK call unless the caller passed reasoning_effort. This makes the write path consistent with the read path: openwork-mounted clients always use postSessionRequest, which preserves unknown body fields and passes the directory via header.

Originally validated as part of #2439's full desktop fraimz (real chat turn executing an org MCP tool end-to-end): #2439 (comment)

Tests: pnpm --filter @openwork/app typecheck clean; bun test apps/app/tests/ passing on the source branch.

…nWork wrapper path

The read-side session overrides (list/get/messages/todo) already go through
the OpenWork wrapper when the client is openwork-mounted; promptAsync and
command still used the generated SDK call unless the caller passed
reasoning_effort (a field the generated client drops). Make the write path
consistent with the read path: openwork-mounted clients always use
postSessionRequest, which preserves unknown body fields and passes the
directory via header.

Split out of #2439 so this shared-path change ships and bisects
independently of the org MCP connections feature.
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview, Comment Jul 3, 2026 9:25pm
openwork-den Ready Ready Preview, Comment Jul 3, 2026 9:25pm
openwork-den-worker-proxy Ready Ready Preview, Comment Jul 3, 2026 9:25pm
openwork-landing Ready Ready Preview, Comment, Open in v0 Jul 3, 2026 9:25pm

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