Skip to content

Send the composer's execution selection with steers - #2149

Merged
SawyerHood merged 1 commit into
mainfrom
bb/fix-1860-steer-model-change
Aug 21, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/fix-1860-steer-model-change

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

What was wrong

The follow-up composer keeps its model / reasoning / permission-mode picker editable while a turn runs, but the steer gesture (Cmd+Enter on web, long-press on mobile, Cmd+Enter in the side chat) posted only {input, mode: "steer-if-active"}. buildSteerFollowUpRequest in packages/client-core/src/prompt/threadDetailPromptSubmission.ts was the only follow-up builder that did not spread buildSharedThreadExecutionRequestFields(execution); its siblings buildAutoFollowUpRequest and buildCreateQueuedFollowUpRequest do. With model/reasoningLevel omitted, the server's buildExecutionOptions resolves them from the thread's last execution, which is the active turn's tuple, so the steer was stored in client/turn/requested and dispatched with the previous selection while the picker showed the new one. Issue: #1860. Report: https://get-bb.github.io/reports/issues/1860.html

What changed

  • packages/client-core/src/prompt/threadDetailPromptSubmission.ts: buildSteerFollowUpRequest and buildFollowUpShortcutRequest take the same execution: FollowUpExecutionSelection argument as the other builders and spread it into the steer-if-active request.
  • apps/app/src/views/thread-detail/ThreadDetailPromptArea.tsx: handleModifierSubmit passes followUpExecutionSelection (already computed for handleSend).
  • apps/app/src/components/thread/embedded-chat/EmbeddedThreadChat.tsx: the side-chat steer spreads executionRequestFields like its normal send/queue requests.
  • apps/mobile/src/screens/thread/prompt-area/follow-up-submission.ts: the steer intent passes the execution it already receives.

No server, host daemon, or wire change: SendMessageRequest already accepts these fields for every mode (the queued "Send now" path and bb thread tell --mode steer --model ... already send them), so no HOST_DAEMON_PROTOCOL_VERSION bump. No CLI or doc surface changes.

Provider note (from the report): Claude Code applies model/reasoning changes to a live session on steer. Codex cannot change model inside a running turn, so for Codex the steer is now recorded with the selected tuple and the running turn keeps its model; the selection takes effect at the next turn/start. Making the picker read-only for such providers is a separate product decision.

How you verified

New test steers with the selected execution options in packages/client-core/test/threadDetailPromptSubmission.test.ts. On origin/main source it fails:

AssertionError: expected { kind: 'draft', request: { …(3) } } to deeply equal { kind: 'draft', request: { …(7) } }
-     "executionInputSources": { "model": "explicit", "permissionMode": "explicit", "reasoningLevel": "explicit" },
-     "model": "gpt-5.6-luna",
-     "permissionMode": "full",
-     "reasoningLevel": "low",

With the fix it passes. The mobile buildFollowUpSubmission steer test now also asserts the tuple is present.

Commands (run from the committed tree, git status --porcelain empty):

pnpm exec turbo run typecheck test --filter=@bb/client-core --filter=@bb/mobile --filter=@bb/app
 Tasks:    9 successful, 9 total
@bb/client-core:test: Tests 239 passed (239)
@bb/mobile:test:      Tests 827 passed (827)
@bb/app:test:         Tests 3156 passed | 3 skipped (3159)

Manual end-to-end on an isolated dev instance (scripts/bb-dev-app current, real Codex): spawned a thread with gpt-5.6-terra / high running sleep 120, switched the picker to 5.6-Luna · Low mid-turn in headless Chromium, typed a steer and pressed Meta+Enter. A window.fetch hook captured the body:

POST /api/v1/threads/thr_mkjycvscnv/send
{"input":[…],"mode":"steer-if-active","model":"gpt-5.6-luna","permissionMode":"full","reasoningLevel":"low","serviceTier":"default","executionInputSources":{…all "explicit"}}

Stored client/turn/requested rows for the thread:

1  | thread-start | gpt-5.6-terra | high
21 | steer        | gpt-5.6-luna  | low

The steer joined the running turn (turn/input/accepted), the agent replied steered, and the turn completed without error.

Fixes #1860

AGENT GENERATED: by Claude Opus 5

Independent verification

Verified by a separate agent in its own worktree (branch checked out from bb/fix-1860-steer-model-change at 725c36f; origin/main f6fb434 is an ancestor, mergeable: MERGEABLE).

Fail-before / pass-after. Restored the four non-test source files to origin/main (git checkout origin/main -- apps/app/.../EmbeddedThreadChat.tsx apps/app/.../ThreadDetailPromptArea.tsx apps/mobile/.../follow-up-submission.ts packages/client-core/src/prompt/threadDetailPromptSubmission.ts) and ran the PR's tests:

  • packages/client-core: pnpm exec vitest run test/threadDetailPromptSubmission.test.ts -> 1 failed | 14 passed. Failing assertion: steers with the selected execution options — received { id, input, mode: "steer-if-active" }, missing model: "gpt-5.6-luna", reasoningLevel: "low", permissionMode: "full", executionInputSources.
  • apps/mobile: pnpm exec vitest run src/screens/thread/prompt-area/follow-up-submission.test.ts -> 1 failed | 8 passed, same missing fields on the kind: "steer" request.

Restored the PR source (git checkout HEAD -- <same files>, git status --porcelain empty) and re-ran: 15 passed and 9 passed.

Turbo (cache bypassed). pnpm exec turbo run typecheck test --filter=@bb/client-core --filter=@bb/mobile --filter=@bb/app --force -> Tasks: 9 successful, 9 total, Cached: 0 cached. client-core 20 test files, mobile 123, app 409, all passed.

Live repro on the fixed branch (own isolated dev instance, real Codex 0.149.0). Spawned a Codex thread and started a turn with gpt-5.6-terra/high running sleep 240. In headless Chromium (doobie) with a window.fetch hook, switched the composer picker to 5.6-Luna · Low while the turn was running, typed a steer, pressed Meta+Enter. Captured body of POST /api/v1/threads/thr_cywmjkjaxg/send:

{"input":[...],"mode":"steer-if-active","model":"gpt-5.6-luna","permissionMode":"full","reasoningLevel":"low","serviceTier":"default","executionInputSources":{"model":"explicit","serviceTier":"explicit","reasoningLevel":"explicit","permissionMode":"explicit"}}

Stored client/turn/requested rows: seq 63 new-turn terra/high, seq 73 steer luna/low (on main the report shows the steer stored with the previous turn's tuple). Steer was accepted (turn/input/accepted), agent replied steered, turn/completed with no error or session-replaced event. The bug no longer reproduces.

Hostile review. Client-only; fixes the root cause (the steer builder omitted the selection while its sibling send/queue builders spread it). Server already reads payload.model for every mode (recoverThreadModelOverride + buildExecutionOptions in thread-send.ts), so no server/daemon/wire change and no HOST_DAEMON_PROTOCOL_VERSION bump needed. All three callers of buildFollowUpShortcutRequest (web, mobile) and the side-chat steer now pass the selection; remaining steer-if-active senders are plugin-programmatic (workflows/automations/tasks) and out of scope. Checked that the steer path's reconfigureThreadIfNeeded cannot replace a session mid-turn: the single bridge-protocol-adapter always classifies settings changes as "live". No casts, no ignored fields, no CLI/doc surface change.

CI. All checks pass (Checks, Tests app-1/2/3, integration, packages, server, Package Smoke ubuntu + macOS, version checks); iOS simulator and Node compat smoke skipped as usual.

Residual risk. As the report notes, Codex cannot retarget a running turn, so for Codex the recorded tuple applies at the next turn/start; Claude Code applies it live. Making the picker read-only for such providers is a separate product decision.

AGENT GENERATED: by Claude Opus 5

The web composer, side chat, and mobile composer kept the model, reasoning,
permission-mode, and service-tier picker editable while a turn ran, but the
Cmd+Enter / long-press steer request posted only {input, mode:
"steer-if-active"}. The server fills omitted execution fields from the
thread's last execution, so the steer was stored and dispatched with the
active turn's tuple while the picker showed the new one.

buildSteerFollowUpRequest now takes the same execution selection as the
auto-send and queue builders and spreads it into the request; every caller
passes it. No server, daemon, or wire change: SendMessageRequest already
accepts these fields for every mode.

Fixes #1860

Co-Authored-By: Claude <[email protected]>
@SawyerHood
SawyerHood marked this pull request as ready for review August 21, 2026 05:13
@SawyerHood
SawyerHood merged commit 26d9ab5 into main Aug 21, 2026
13 checks passed
@SawyerHood
SawyerHood deleted the bb/fix-1860-steer-model-change branch August 21, 2026 14:39
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.

Active steers ignore model/reasoning changes

1 participant