Repository navigation
Fix Codex Fast reset and stale defaults after queued dispatch - #3472
Merged
ymichael merged 2 commits intoSep 11, 2026
Merged
Conversation
ymichael
deleted the
bb/fix-issue-3403-fast-mode-persistence-thr_6us9zrktfs
branch
September 11, 2026 05:46
3 tasks done
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
After a Fast Codex turn, disabling Fast and sending another message saved
defaultin BB but omittedserviceTierfrom Codex's request. Omission leaves the provider's existing tier unchanged. Separately, dispatching a queued message did not invalidate execution defaults, so an untouched picker could keep showing Fast after a default-tier message started.What changed
defaultasnullon Codex's downstream JSON-RPC wire; retainfastand preserve omission when no tier is supplied.client/turn/requested, cancel older reads, and prevent canceled responses from overwriting the last-known cache.Unlike the selection-time save proposed in #3403, this follows the lifecycle established by #3267: picker changes remain local until submission/dispatch. Switching threads without sending still restores the last recorded defaults. No new persistent override, database migration, SDK/CLI surface, or server/daemon wire change; no
HOST_DAEMON_PROTOCOL_VERSIONbump is needed.The accepted-turn cache work shares one handler with prompt-history invalidation. The raw boot budget increases deliberately by 128 bytes (1,723,617 → 1,723,745): pristine main measures exactly 1,723,617 bytes, and the simplified fix measures 1,723,707 (+90). This accommodates the measured eager cache logic; compressed and dependency budgets are unchanged.
How you verified
Reproduced on pristine
origin/mainatb04091eca67bb463cce16b9bfa318660bd20ab69using dev-browser, a fresh isolated database, andpnpm start:worktreein a persistent BB terminal. The exact unsent-toggle/navigation behavior reproduces, while direct-send BB persistence already works.Recorded real Codex 0.153.3 JSON-RPC traffic from browser-submitted turns:
turn/startsendsserviceTier: "fast"; Codex reports"priority"turn/startomitsserviceTier; last reported setting remains"priority"serviceTier: null; Codex emitsthread/settings/updatedwithserviceTier: "default"This verifies provider configuration, not billing or measured latency. Raw recordings and screenshots remain local because they include machine and model-catalog details.
The real queued lifecycle also passed: queue default during Fast work, reload while waiting, leave the picker untouched, then observe it switch off when the queued message automatically dispatches. Before the cache fix it stayed on despite the server reporting default. Codex→Pi→Codex selection hides Fast for the unsupported provider.
git diff --checkpassed. App lint retains 190 existing warnings; builds retain chunk-size/timing warnings.CI follow-up: reproduced the raw bundle-budget failure locally, consolidated duplicate accepted-turn handlers, and compared a pristine-main build. The correction passed 110 focused cache/selection/bundle-budget tests; the explicit bundle checker, app build/typecheck/lint, formatting, and diff checks were rerun.
Fixes #3403