Repository navigation
🤖 refactor: delete the auto routing keys - #5911
Closed
ibetitsmike wants to merge 6 commits into
Closed
ibetitsmike wants to merge 6 commits into
ibetitsmike wants to merge 6 commits into
Conversation
Creation no longer copies Auto keys into the new workspace: its first send carries the flags and the backend saves them. Nothing reads autoModelRouting, autoThinkingLevel or autoRoutingChoiceByAgent. Stack-Layer: A3d
Merges the updated layer below. Stack-Layer: A3d
ibetitsmike
added this pull request to stack #5868
October 8, 2026 21:03
This was referenced Oct 8, 2026
Merges the updated layer below. Stack-Layer: A3d
ibetitsmike
marked this pull request as ready for review
October 8, 2026 21:33
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Stack-Layer: A3d
Stack-Layer: A3d
Stack-Layer: A3d
ibetitsmike
removed this pull request from stack #5868
October 9, 2026 04:50
Contributor
Author
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.
Summary
Workspace creation no longer copies the creation composer's Auto choices into the new workspace's
autoModelRouting:andautoThinkingLevel:keys or its per-agent routing record (syncCreationPreferences). The first send already carries the composer's Auto flags, read through the resolver from #5909, and the backend saves them for the agent (#5894). With that copy gone nothing readsautoModelRouting:{scope},autoThinkingLevel:{scope}orautoRoutingChoiceByAgent:{workspace}, so the key helpers, their storage registry entries,recordAutoRoutingChoiceForAgentand theautoRoutingEnabledoption ofuseCreationWorkspaceare deleted.Startup cleanup (
removeDroppedCacheKeys) now deletes leftoverautoModelRouting:,autoThinkingLevel:andautoRoutingChoiceByAgent:values from older builds.Stack
Milestone M4 of the server-side settings stack, on top of M3 (#5869 to #5879): per-workspace AI picks (model, thinking level, reasoning mode, agent and Auto routing) are stored in workspace metadata in
config.jsoninstead of per-browser localStorage keys, so every browser shows the same picks. An unsent picker change stays in memory in its tab until a send saves it, and a reload before sending drops it, as the plan accepts. Layer 18 of 20.Testing
useCreationWorkspace.test.tsx): with the model's Auto from the agent's configured default and thinking Auto picked in the creation composer, the first send carries both flags. It replaces "records only creation routing picks that differ from the agent's Auto default (experiment %p)", which tested the removed copy.modelChange.test.ts) with the routing record it covered;persistedStateBudget.test.tsdrops the removed keys.legacyLocalStorageCleanup.test.ts) covers the removed prefixes.make static-checkand the touched test suites pass at the top of the stack; CI checks each layer on its own.Review record
efe7e29096, because a fork without a message dropped the source's unsent picks (fixed by 🤖 feat: fork a workspace with the source composer's unsent AI picks #5897, 🤖 refactor: resolve the workspace agent from metadata and an unsent pick #5908 and 🤖 refactor: resolve auto routing from the unsent pick, saved flags and agent defaults #5909); everything else passed. Round 2: PASS on80f2b5379e: forks from all five entry points keep the unsent picks, startup removes the retired keys, and the round 1 checks still pass; the plan handoff was not exercised because the mock model cannot propose a plan. The Codex round 1 fixes made since then have no remote UAT yet; that is left to the next UAT round on 🤖 refactor: keep preferences and workspace AI picks on the server #5916.8e8ffc3daf, no findings. Mike asked to land the stack as one PR, so further review runs on 🤖 refactor: keep preferences and workspace AI picks on the server #5916.efe7e29096, probe edits in production code).