Repository navigation
Deepen Fleet Inbox read ordering - #2340
Merged
Merged
Conversation
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
A save drops the affected Command from retained answers, including nested copies, and invalidates earlier reads. Failures preserve the last good answer and its timestamp while clearing action scopes. A retired poll holds its slot until it returns.
Evidence
Execution evidence
node --test --test-name-pattern 'drops a finished answer' console/tests/fleet.test.cjsAssertionError: a polling sweep should drop the inactive viewer’s finished answer# pass 1and# fail 0cargo test --locked --bin thirdshift console::fleet_inbox::reads::testspassed all seven deterministic tests. The two review regressions initially failed on duplicate poll admission and a retained nested copy. Both pass with the fixes.npm test --prefix consolepassed all 280 browser tests on20523336.RUST_TEST_THREADS=4 cargo test --locked --test consolepassed 370 integration tests with two ignored. The test PATH excluded the host’s installed Muse binary.The tests exercise admission, save, completion, and lookup through the production read module, and the browser exercises the Console through its Inbox and owning-machine HTTP routes. The Fleet fixtures hold a second Inbox subscription through full-page navigation and failed-read checks. The cleanup test closes the last subscription.
Visual evidence
Before — Fleet Dismiss and Undo, desktop 1440×900
before-desktop.yA00pt.mp4
After — Fleet Dismiss and Undo, desktop 1440×900
after-desktop.hbnRdn.mp4
Both walkthroughs use faux Commands and accounts. The actor dismissed and restored the Fleet row, and the second viewer saw both changes under its own scopes.
Merge Danger
Door Two-way. Read ordering and retained answers live in memory.
Blast radius Console.
Unaddressed findings
Both axes reviewed all seven changed files. No changed files were left unread.
Closes #2339
Built with codex codex-cli 0.167.2 · gpt-6.2-sol · xhigh
Security review outcome
No unaddressed introduced findings.