Repository navigation
Keep Auto's model while the prompt cache is warm - #183
Merged
Merged
Conversation
Coven-Harness: Claude Code / claude-opus-5-5
Coven-Harness: Claude Code / claude-opus-5-5
Coven-Harness: Claude Code / claude-opus-5-5
Coven-Harness: Claude Code / claude-opus-5-5
Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The Store browser test clicked New tab right after opening Settings. A menu event that lands before the Settings render commits still sees an unsuspended workspace and opens a tab (reproduced 3/3 by firing both together; failed twice on hosted push runs). Waiting for the dialog tests the intended state; assertions and timeouts are unchanged. Coven-Harness: Claude Code / claude-opus-5-5
This was referenced Oct 12, 2026
This was referenced Oct 18, 2026
This branch was successfully deployed
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.
Why
Part 2 of sticky Auto routing
(plan), on top of the per-turn cache
measurement from #180. Auto used to pick a model from scratch on every turn. On a long thread a
model switch re-reads the whole history without the prompt cache and drops the previous model's
thinking, so a "cheaper" model was often the more expensive turn (on a 150k-token Opus 5.5
thread: $0.03 to stay warm vs $0.60 to move to Sonnet 5.5 cold, at list prices).
What changes
A new final step in
decide()(pure; the router passeslastTurnand the idle time):entries), when the last turn left under 20k tokens of context, and when the user picked another
model since the last turn.
more tiers higher, or when Jev is ≥ 0.85 sure the request needs deep reasoning and the
request does not lean on earlier turns (
depends_on_prior_turns< 0.7, a judgment Jev alreadyanswered but the policy never used).
below shows an effort change keeps the cache on both CLIs. Fast mode is held on the same model
because neither CLI's fast mode could be measured.
effort is still clamped by the ceiling.
warmthandheld. Callers that pass no cache information (all existing policy tests) behave as before.Probe (2026-10-12, claude 2.1.296, codex-cli 0.162.1)
--settings {"fastMode":true}reportedspeed: standardVerification
npm run build && npm test: 867 tests, 854 passed, 13 skipped (Windows-only), 0 failed.npm run test:e2e -w @modex/desktop: 241 passed, 3 skipped (real OpenKnowledge cases, environment-gated), 1 failed:panel-resize.spec.ts:98(a 40 px drag measured 23 px under host load; 18 s vs 3.2 s normal). It touches no code in this PR and passed 3 of 3 on rerun against the same build. The new held-receipt e2e case passed.workspace-store.spec.ts): the Store browser test clicked the New tabmenu right after opening Settings. A menu event that lands before the Settings render commits
still sees an unsuspended workspace and opens a tab. It failed this way on the hosted push runs
of both Measure prompt-cache usage per turn #180 and this PR, and reproduced 3/3 locally by firing both clicks together. The test
now waits for the Settings dialog first; assertions and timeouts are unchanged; 3/3 passed.