Repository navigation
test(next): relaunch-wake tests fail without their fixes - #22908
Conversation
…nd depends on handedWake Review of #22790: "reconnect" decoded as unsupported, so no handshake ran; and the test put the held state back after ready, so it passed without handedWake. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a15c01-a42d-7970-a4a7-2f0ac203c940&host=cosmic-gray
|
owner: 01a15c01-a42d-7970-a4a7-2f0ac203c940 |
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Not verified: macOS jobs did not run: compile and app tests were skipped on CI passes on Written by |
|
Bead |
|
Shipped in:
|
Follow-up to the review of #22790 ("a chat's composer chips and shell command come back after a relaunch"). The review found that two checks in
aPageThatDoesNotAnswerKeepsItsState(Packages/macOS/CmuxNext/Tests/CmuxNextAppTests/AgentPaneRelaunchWakeTests.swift) passed without their fixes. This PR changes only that test.Note: treat this PR as in progress until its own CI compile is green. Base
feat-cmux-nextdoesn't compile right now, and #22853 fixes that.Changes
["method": "reconnect"], which decodes as unsupported, so no handshake ran. The page was never asked anyway, so the pendingWake skip inAgentPaneRelaunchWake.collectwent untested. The test now sends["method": "ready", "params": ["reconnect": true]]and requirespage.model.hasHandshakebefore it goes on.ready, the test puttabs.wakeStates["tab_slow"]back, so it got the state from the tab store and never reached the?? model.handedWakefallback. That line is gone. The test now expects the store andpendingWaketo be empty afterready, then requires the page that doesn't answer to keep the state itsreadytook.Evidence
Base doesn't compile, so each evidence branch was
dae1ac1b(this PR's commit) with #22853's three commits (bfa73a4e..991a42cf) cherry-picked on top. Its tip is02b3d4a698ec. #22853's head is based on an older base that doesn't have #22790 and doesn't contain this test file, sodae1ac1bcouldn't go onto that head directly. Each branch ran on the fleet withcmux-ci run --class light --script scripts/ci/package-test-lane.sh --arg=suite --arg=Packages/macOS/CmuxNext --arg=AgentPaneRelaunchWakeTests --env CMUX_CI_XCODE_APP=/Applications/Xcode_26.6.app:02b3d4a698ec40775c97b7abd404e763a34e8cd1cb25e07bcollectasks every handshaken page)1a01ba3fb98ef26c1d3d97e5aPageThatDoesNotAnswerKeepsItsStatefails::133 (asked.count → 1) == 0and:139 (asked.count → 2) == 1. The other 3 passb9f95593c33acollectdrops?? model.handedWake,readydoesn't sethandedWake)876da22442777ed1e7ecc698aPageThatDoesNotAnswerKeepsItsStatefails::138 await tabs.relaunchWakeStates()["tab_slow"] == held. The other 3 passThe throwaway branches (
tmp/rwt-g,tmp/rwt-1,tmp/rwt-2) have been deleted.Observed / Not run
prepush-gate.pyreported no new violations on all three branches.AgentPaneRelaunchWakeTests. I didn't check the revert of each fix against the old test version again here; the cmux NEXT: a chat's composer chips and shell command come back after a relaunch #22790 review established that.Changelog
none
Agent session: cosmic-gray
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Follow-up to the #22790 review: two checks in the slow-page relaunch-wake test passed without their fixes, so this PR tightens the test in
AgentPaneRelaunchWakeTests.readyreconnect handshake instead ofreconnect(which decoded as unsupported and never ran a handshake) and requiresmodel.hasHandshakebefore going on.ready, so it asserts the store andpendingWakeare empty and exercises the?? model.handedWakefallback.Note: base
feat-cmux-nextdoesn't compile right now; #22853 fixes that, so treat this branch's CI as in progress until it's green.Written for commit 32d2bd4. Summary will update on new commits.