Repository navigation
test: stabilize preferred-window workspace routing - #15385
teamleaderleo merged 1 commit into
Conversation
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
Warning Review limit reachedNext included review available in 15 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
All contributors have signed the CLA ✍️ ✅ |
|
Merge receipt for |
9eb402d Sidebar: opt-in compact status glyph for agent, PR and branch state (manaflow-ai#14838) 0b2d3e0 ci: run CmuxCloud package tests and move 22 Cloud logic suites out of the app host (manaflow-ai#15333) defccda fix(cloud): say a machine's id and age in its accessibility label (manaflow-ai#15326) 8b23dd7 ci: re-run lost-runner jobs; end the UI wait when compile admission fails (manaflow-ai#15400) 734cff3 ci: let the UI test lane replay the fuzzer regressions (manaflow-ai#15401) c9b235a Refuse a split that would leave a pane below its minimum size (manaflow-ai#15392) 56eacd4 Describe memory-pressure hibernation the way it works (manaflow-ai#15290) da27bbc ci: passing guard tests print no ::error annotations (manaflow-ai#15399) 93d0706 ci: explicit owned E2E runs take root runners; rescue jobs waiting in setup (manaflow-ai#15402) f12f578 PR media: keep each tour's folder through the artifact hand-off (manaflow-ai#15405) cd9d1c9 test: release offscreen terminal fixtures before the next suite (manaflow-ai#15322) 78c566c triage: severity and area labels, with the rules in the repo (manaflow-ai#15228) 54473f6 Serialize async test app contexts (manaflow-ai#15390) 192ee4c Stabilize minimal-mode workspace routing test (manaflow-ai#15385) 31a59ab Cloud machine list reports who created each machine (manaflow-ai#15261)
Summary
Root cause
The test drained the main run loop after creating its window, then called
addWorkspaceInPreferredMainWindowwithout reasserting focus. That API intentionally chooses the focused/key/main window. Under full-suite ordering, unrelated window activity could therefore route the returned workspace into another manager; the failure wasExpected new workspace in test window, before the inset assertion ran.Evidence
Before:
testMinimalModeCollapsedSidebarResyncsTrafficLightInsetAfterNewWorkspaceCreation()because the created workspace was absent from the test window's manager.After:
python3 scripts/verify-local.py --only swift-syntax --swift-changed upstream/mainpasses for the one changed test file.git diff --check upstream/main...HEADpasses.Impact map
addWorkspaceInPreferredMainWindow.Review
An independent reviewer approved exact head
5a00294d5921530c1f3b7548325b0ecffb8ea630, confirming that the suite's focused-window capture updates synchronously and the added call establishes, rather than bypasses, the production route's intended precondition.The isolated structured reviewer reported no actionable finding (0.98 patch-correctness confidence). The mechanical XCTest migration policy fired because this existing XCTest file was touched; it is rejected under the documented existing-suite exception because this patch adds no test or assertion, and moving this one maintenance change would split the tightly coupled AppDelegate routing suite.
— Mochi
Mergeability
e02c385b051c3fad814a8269ce10a0937e2dea2f5a00294d5921530c1f3b7548325b0ecffb8ea6308701292045b8eb2f4538db19e5194f72cecb2ad5.Changelog
none