Uh oh!
There was an error while loading. Please reload this page.
fix(tui): route question replies through current workspace - #23844
fix(tui): route question replies through current workspace#23844justinpbarnett wants to merge 14 commits into
Conversation
Remote workspace routing reads the workspace query parameter on POST requests, so question replies and rejects need to pass the current TUI workspace just like permission replies do. Constraint: Server remote workspace routing depends on the workspace query parameter for POST requests Rejected: Rely on experimental_workspaceID header alone | SDK only promotes that value to the query string for GET and HEAD Confidence: high Scope-risk: narrow Directive: Keep question and permission response routing aligned when changing remote workspace behavior Tested: bun typecheck in packages/opencode Tested: git diff --check Tested: SDK fetch-stub comparison showed POST question replies omit workspace query unless workspace is passed explicitly Related: Fixesanomalyco#23843
muckelba
commented
Apr 22, 2026
## Summary - Merge current `dev` into the PR branch to clear stale conflicts. - Keep question replies and rejections routed through the active TUI workspace. - Preserve the branch's Codex model allowlist update. ## Testing - `bun --cwd packages/opencode typecheck` - `bun turbo typecheck` via the pre-push hook
d4c9b7e to
7caf00fCompareRunning this exact setup on opencode 1.15.4: headless server on Linux (systemd user service), TUI attached from macOS via SSH LocalForward. The question hang is reproducible in this configuration. Setup:
From reading the source: This affects the headless/remote-attach workflow which is a primary use case for running opencode on a dev box. The fix is small and the pattern is already established — would appreciate a review. |
Issue for this PR
Fixes#23843
Type of change
What does this PR do?
Passes the current TUI workspace when answering or rejecting
QuestionPromptrequests.This keeps question responses aligned with permission responses: POST requests need the explicit
workspacequery parameter for remote workspace routing.How did you verify your code works?
bun typecheckfrompackages/opencodegit diff --checkquestion.replyomits?workspace=...unlessworkspaceis passed explicitlybun turbo typecheckScreenshots / recordings
N/A; routing-only TUI bug fix.
Checklist