Repository navigation
test(terminal-input): ask for the liveness probe after the snapshot, not after input-ready - #1019
Merged
Merged
Conversation
…not after input-ready #1001 made the check wait for the connection, and it still needed a second run about one time in three. A diagnostic CI run shows why: input-ready arrived at +260 ms, the check dispatched `online` at +340 ms, and the snapshot that names the bridge's features (ping among them) arrived at +348 ms, so the wake probed nothing. Reproduced by holding only the snapshot frame back.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
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 |
This was referenced Oct 14, 2026
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.
Change
terminal-input-regression.tsfails with "input regression timed out" more than any other browser check: 14 failures and 1 second-run pass in the last 30 hours of CI. #1001 made it wait for the connection before it asks for a liveness probe, and that was not the cause: onmainwith #1001 the check still needed a second run in 2 of 6 runs of the lane.A CI run with diagnostics printed on the timeout shows the order of frames on the runner:
The snapshot is what tells the client the bridge answers pings. A wake before it probes nothing (
probe()returns whilepingKnownis false), and nothing asks again. On a development machine the snapshot arrives first (+114 ms against +213 ms here), so the check never failed locally and #1001's reproduction found another way to time out, not this one. The page was visible and connected, and a secondonlineafter the timeout did send the ping.The check now notes when the snapshot was forwarded to the page and waits for that before it dispatches
online. No app code changes: a wake in the first few milliseconds of a connection has nothing stale to find.This commit was meant for #1016 and was pushed seconds after it merged.
Validation
main's code. With the change: 3 of 3 pass under the same hold, 3 of 3 without it.bun run check run --build bun scripts/ui-regression.ts: 65 PASS, exit 0 (macOS arm64, Bun 1.4.0).bun run typecheck,scripts/conventions.test.ts,changelog-fold.test.ts: pass.scripts/ui-regression.tsrun six times on this change, one script per job (run 38497470872, a throwaway branch): 6 of 6 passed on the first run. Onmainbefore it the check needed a second run in 2 of 6 jobs of the same shape (run 38495833732) and in 2 of 6 jobs of the whole lane, which runs two scripts side by side (run 38494284688). Six clean runs fit the cause above; they do not prove the check can never time out again.