Repository navigation
Fix Muse Plan usage reads and report failures - #2309
Merged
Merged
Conversation
Owner
Author
|
Delivery completed on agent-authored or reviewed head 4978dbf. |
JacobStephens2
marked this pull request as ready for review
November 19, 2026 17:54
A failed usage read is stored and printed. Map control characters and Unicode line separators in that message to visible symbols first, and keep a regression test.
Merged
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
Closes #2306
Muse stays in cooldown through the last reset among its full windows. Routing uses a saved cooldown if refreshing it fails. The Fleet view keeps shared-login windows and read diagnostics with their respective machines. Codex keeps its existing app-server request format.
Evidence
Execution evidence
cargo test --test plan_usage plan_usage_reads_codex_muse_and_claude_on_demand_and_reuses_them_for_a_minute -- --exactfailed at95dc7703with["claude", "codex"]versus["claude", "codex", "muse"](1 failed). The same retained regression passed at941c6912and at3f65d3fe(1 passed each). The isolated merge-base checkout contained the retained test fixture and the original production code.-32600(missing or invalid jsonrpc member) for the merge-base requests. Adding the envelope letusage/readreturn{}. The CLI-generated experimental schema identifiesusage/refreshas the fresh-read method with both window shapes and millisecond resets. In a signed-out live CLI check,thirdshift plan-usage --localchanged fromnothing observed yettousage read failed: usage/refresh needs a Meta-account login on this host. Meta Muse Code changelogcargo test --test plan_usagepassed 12 tests and skipped two fixture subprocess entry points.cargo test --test console plan_usage::passed 13.cargo test --bin thirdshift plan_usage::passed 34. Coverage includes both reset times, cooldown at 100% and 103%, failures and empty responses, and Codex reads.scripts/affected-tests refs/remotes/origin/mainpassed all 74 site browser tests, the locked build, and all 268 Console browser tests. The local Rust run was stopped once all four Rust partitions and the coverage gate passed for this exact head. Formatting and manual regeneration checks passed. CI run for 3f65d3feVisual evidence
Headless Chromium verified keyboard navigation to Plan usage, the accessibility snapshot, and fit at both widths. The manual also passed with JavaScript disabled on mobile. All Console captures use isolated fixture data. The saved-window Console comparison uses the previous PR head for Before. The manual uses the merge base for Before.
Before — Console saved Muse windows after a failed read, desktop viewport 1440×900
After — Console saved Muse windows after a failed read, desktop viewport 1440×900
Before — Console saved Muse windows after a failed read, mobile viewport 390×844
After — Console saved Muse windows after a failed read, mobile viewport 390×844
Before — Manual Plan usage reads, desktop 1440×900
After — Manual Plan usage reads, desktop 1440×900
Before — Manual Plan usage reads, mobile 390×844
After — Manual Plan usage reads, mobile 390×844
The original failure-without-observations captures still show that case.
Before — Console Muse read failure, desktop 1440×900
After — Console Muse read failure, desktop 1440×900
Before — Console Muse read failure, mobile 390×844
After — Console Muse read failure, mobile 390×844
Unaddressed findings
plan-usage --local --jsonandjq -echeck returnedfalsewith the account-login diagnostic. The released CLI schema and populated fixture cover both windows and resets. Day shift follow-up #2319Both reviewers read all ten changed files, including the generated manual HTML. The reports, final files-read lists, and counts are in
.thirdshift-review-ZRcPVm/standards.md,.thirdshift-review-ZRcPVm/spec.md, and.thirdshift-review-ZRcPVm/summary.json. Unread changed files and generated-output exclusions: none.Security review outcome
No unaddressed introduced findings.
Merge Danger
Door Two-way
Blast radius Routing
The change affects Plan usage and Session admission. Existing snapshots remain readable. Muse's fresh-read method is documented as experimental.
Built with codex codex-cli 0.169.0 · gpt-6.2-sol · xhigh