Repository navigation
test(inbox): step Back to the list before the wide steps that read it - #3848
Conversation
Since the way in opens the thread of a pane drawn alone on its chat, two older blocks of the mode's regression no longer stood on the list at a wide window. The connection-loss block, entered from a pane: beside an open thread the column hides its line once the thread's chip says the same word, and the chip waits out the pane's 4 s reconnect grace. The block's reads and its restore had to land inside those 4 s. It now sees the thread open, steps Back to the list and checks the pane is still mounted under it before it loses the connection, so the line is the list's own for as long as the connection is lost. The lane at 1440 of "a pane the list covered, opened by its own row" read a shown thread where it says the pane is under the list. It steps Back the same way before that read. No assertion is removed, and nothing outside the script changes.
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
Two reviewers at this head: Claude (Opus) CLEAR, Codex Terra CLEAR. One browser script, |
…cess_info read (#3849) ## Summary `server/gjc.contract.test.ts:104` failed with "pane.process_info did not expose the isolated GJC process" on #3848's run 43595503827 (on herdr-ci-devswha-ThinkStation-P620-12) and on main's run 43207641497 on Nov 12. Both went green on a rerun. `pane()` starts the GJC stand-in and already waits, bounded at 10 s, until `pane.process_info` lists it in the pane's foreground. `gjcProcess()` then asked `process_info` once more, without a wait, and on a loaded runner that one read can come back without the stand-in, although the process is still running: it is a long-lived `setInterval` script. `pane()` now keeps the pid it found, and `gjcProcess()` uses that pid (and reads its birth time as before) instead of a second, unguarded read. What each test then asserts about the binding is unchanged. ## Validation - `HERDR_TEST_MODE=integration bun test ./server/gjc.contract.test.ts` passes 10 of 10 in 3 of 3 runs. - `bun run check fast` passes, on main f95c154. - No changelog fragment, because the change is test-only.
Change
Test-only: one browser script, no product code, and no changelog fragment (nothing a user notices).
Since #3846 the way in opens the thread of a pane drawn alone on its chat. Two older blocks of
scripts/inbox-mode-demo-regression.tsenter that way at a wide window and went on as if they stood on the list.column hides its connection line once the thread's chip says the same word, and the chip waits out the pane's
4 s reconnect grace (
RECONNECT_GRACE_MS). So the line was drawn for those 4 s only, and the block's threereads and its restore had to land inside them. It passed every time it ran, but only on time. The block now sees
the thread open, steps Back to the list, checks the pane is still mounted under it, and only then loses the
connection.
stands at its end") was of a shown thread. It steps Back the same way first.
No assertion is removed. Each block gains the thread's address, the Back, and a check that the pane is mounted
and hidden under the list. No fixed wait is added.
Why
CodeRabbit's review of #3846 flagged the first block (outside the diff, so it opened no thread): "Update the wide
entered-from-pane connection-loss check for the suppressed column line." It read the line as never appearing;
what happens is that it appears and goes when the grace ends. Of the two fixes it offered this is the second,
"return to the list before checking the line", which keeps every check of the line on that route.
What was measured
At 1440, with a throwaway copy of the script that sampled the line on every frame after the drop (not
committed):
Validation
bun scripts/inbox-mode-demo-regression.tsat8703b754d, one browser: all 111 blocks pass, the two editedones among them (CPUs 96-111,
TMPDIRoutside the home folder).bun run check fastat8703b754d: exit 0, every step ok (workflow syntax, generated types and themes,typecheck, build, unit tests: 17,258 pass, 0 fail). The check's own report names that commit.
For the merge pass: test-only, so no CodeRabbit review is requested for it.