Repository navigation
test: strengthen transport lifecycle and benchmark checks - #33538
Conversation
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
🧹 Nitpick comments: 1
config/scripts/terminal-shutdown-byte-limit-benchmark.mjs: 1
179-179:Trivial · Functional Correctness · Quick win Assert that the buffer is freshly captured.
mergeCapturedLeafStateretains'prior-buffer'when serialization produces no fresh value. The presence assertion can therefore pass without validating capture for panes that were not cleared. Compare the result with the prior sentinel or the expected serialized value.Suggested fix
- assert(results[1].layout.buffersByLeafId?.[leafId(index)]) + const captured = results[1].layout.buffersByLeafId?.[leafId(index)] + assert(captured) + assert.notEqual(captured, 'prior-buffer')

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1ddf1966-9586-4dfe-af0b-dcb951bb55cd
Files selected for processing: 12-
config/scripts/terminal-output-frame-chunk-benchmark.mjsconfig/scripts/terminal-shutdown-byte-limit-benchmark.mjsconfig/scripts/terminal-stream-byte-length-benchmark.mjsmobile/src/transport/mobile-relay-browser-cancel-budget.test.tsmobile/src/transport/mobile-relay-e2ee-link.test.tsmobile/src/transport/mobile-relay-pairing-error-timer-cleanup.test.tsmobile/src/transport/mobile-relay-pairing-recovery.test.tsmobile/src/transport/mobile-relay-physical-client.test.tsmobile/src/transport/rpc-client-ready-stream-release.test.tsmobile/src/transport/rpc-client-reconnect-wait.test.tsmobile/src/transport/rpc-client-request-deadline.test.tssrc/main/runtime/claude-open-dialog-hold.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
ELI5
Make useful tests catch dropped requests, duplicate cleanup, and incorrect timeout boundaries.
What Changed
Strengthen request-delivery, subscription release, pairing publication, timer cleanup, and the inclusive ten-minute dialog hold boundary. Use fake clocks for pairing lifecycle checks. Repair stale terminal benchmark owner guards and serialization fixtures.
This grouped audit covers 19 test/support sources: 53 test declarations kept, 16 strengthened, and none removed. Seven benchmark sources have no test declarations; three receive fixes.
Why
The previous assertions could still pass when the intended action never happened or cleanup was incomplete. The updated cases check observable delivery, exact published values and ordering, immediate cleanup, and both sides of the boundary.
Visual Proof
N/A — test and benchmark changes only.
Testing
Agent skill upstream boundary