You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose sticky permission mode and service tier updates through the public SDK #3401
BB 0.42.1 / public Plugin SDK 0.4.47 exposes model, reasoningLevel, permissionMode and serviceTier on thread creation and message dispatch. threads.update supports sticky model and reasoning overrides, but has no permissionMode or serviceTier fields.
A remote coding orchestrator needs to change a thread's next-turn execution settings without sending a dummy prompt, restarting active work, or maintaining a plugin-local shadow preference that the product cannot see.
Please expose permissionMode and serviceTier through the public thread-update contract (or a dedicated execution-options update method), with documented inheritance/reset semantics. Updates should apply to the next and later turns, leave active execution unchanged, emit the normal thread update, and be reflected by threads.defaultExecutionOptions and the UI. Preserve host/parent permission ceilings and validate provider capabilities; this must not provide an API for changing the owner-only machine permission ceiling.
Reproduction: compare createThreadRequestSchema / sendMessageRequestSchema with updateThreadRequestSchema in SDK 0.4.47's bundled declarations. The update schema contains model, reasoningLevel, parentThreadId, sectionId, title and visibility only. Our MCP adapter therefore rejects standalone permission/tier updates and exposes those choices only on create/send.
Validation requested: idle and active threads; next-turn persistence; provider lacking fast service tier; parent and host ceilings; null/reset behavior; no queued or dispatched message as a side effect.
Applied Type Feature, Priority Medium, Effort High, and labels plugins, providers. No existing classifications needed preservation; all writes were verified.
This adds a public SDK capability, with a workaround through existing execution entry points. Public contract and permission semantics make the effort High. Final Type is Feature, so reproduction and fix steps were skipped; no PR was opened.
Update: the existing Fast-toggle bug is now tracked separately in #3403. This SDK feature request remains closed; the report below is retained as investigation history, not a request to reopen it.
Verification used a disposable source web app, a separate database/daemon, and synthetic Codex threads.
Start a Codex thread with Fast mode enabled and let its first turn finish.
Open the provider/model picker and turn Fast mode off.
Do not send another message.
Open another thread, then return to the first thread.
Expected: Fast mode remains off, and subsequent turns use the default tier.
Reported behavior: Fast mode returns to enabled. The regression test exercises the actual main-composer toggle and fails on the baseline because no persistence request is sent:
AssertionError: expected "vi.fn()" to be called with arguments: [ { threadId: 'thr_1', …(1) } ]
Persist the main composer toggle through threads.update({ threadId, serviceTier }), expose bb thread update <id> --service-tier default|fast, and resolve the saved tier for later turns.
Notify execution-option subscribers and update the local cache. null clears the stored override; unsupported providers reject fast.
Map BB's default tier to explicit null for Codex requests.
Include the database migration and CLI/SDK usage documentation. No server/daemon wire fields changed.
On the fixed source app, actual browser clicks verified disable → navigate away/back without sending → reload → re-enable. Disable persisted in both the UI and the default-execution-options endpoint. A CLI update to default, followed by a real Codex turn, completed successfully. Both captured thread/resume and turn/start requests contained:
{"serviceTier":null}
Relevant app, server, CLI, contract and Codex bridge tests passed, as did app/server/CLI/provider typechecks. The bridge regression test verifies the explicit null after starting a fast session. Changed-file and commit-range secret scans were clean. Raw screenshots and recordings remain local because they contain machine paths and model-catalog details.
This is independent of active-steer behavior in #1860: the reported failure happens without dispatching any message. I have not opened an upstream PR, in accordance with the contributor-approval policy.
Activity
bb-slop-cop commentedon Sep 10, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied Type Feature, Priority Medium, Effort High, and labels
plugins,providers. No existing classifications needed preservation; all writes were verified.This adds a public SDK capability, with a workaround through existing execution entry points. Public contract and permission semantics make the effort High. Final Type is Feature, so reproduction and fix steps were skipped; no PR was opened.
hxy91819 commentedon Sep 10, 2026
Update: the existing Fast-toggle bug is now tracked separately in #3403. This SDK feature request remains closed; the report below is retained as investigation history, not a request to reopen it.
Reproduction and environment
40ed14cc7765b7e2d4c37b660eadbf982e5bac5b; installed BB reports0.42.1.22.19.0, Codex CLI0.154.0.Expected: Fast mode remains off, and subsequent turns use the default tier.
Reported behavior: Fast mode returns to enabled. The regression test exercises the actual main-composer toggle and fails on the baseline because no persistence request is sent:
Baseline evidence: the main composer only updates its local selection. A second defect exists in the Codex tier conversion:
defaultbecomesundefined, omitting the explicit reset on the provider wire.Fork implementation and verification
Fix commit:
0e41dc3a3threads.update({ threadId, serviceTier }), exposebb thread update <id> --service-tier default|fast, and resolve the saved tier for later turns.nullclears the stored override; unsupported providers rejectfast.defaulttier to explicitnullfor Codex requests.On the fixed source app, actual browser clicks verified disable → navigate away/back without sending → reload → re-enable. Disable persisted in both the UI and the default-execution-options endpoint. A CLI update to
default, followed by a real Codex turn, completed successfully. Both capturedthread/resumeandturn/startrequests contained:{"serviceTier":null}Relevant app, server, CLI, contract and Codex bridge tests passed, as did app/server/CLI/provider typechecks. The bridge regression test verifies the explicit null after starting a fast session. Changed-file and commit-range secret scans were clean. Raw screenshots and recordings remain local because they contain machine paths and model-catalog details.
This is independent of active-steer behavior in #1860: the reported failure happens without dispatching any message. I have not opened an upstream PR, in accordance with the contributor-approval policy.