Skip to content

test(inbox): step Back to the list before the wide steps that read it - #3848

Merged
devswha merged 1 commit into
mainfrom
test/inbox-wide-way-in
Nov 14, 2026
Merged

devswha merged 1 commit into
mainfrom
test/inbox-wide-way-in

Conversation

@devswha

@devswha devswha commented Nov 14, 2026

Copy link
Copy Markdown
Owner

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.ts enter that way at a wide window and went on as if they stood on the list.

  • The list while the connection is lost, entered from a pane, at a wide window. Beside an open thread the
    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 three
    reads 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.
  • A pane the list covered, opened by its own row, at 1440. Its first read ("under the list the transcript
    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):

Where the block stands The column's line after the drop
Beside the thread the way in opened (before this PR) drawn from 15 ms, gone at 4028 ms, when the chip says Reconnecting
Back on the list (this PR) drawn from 12 ms, still drawn at 6.5 s, when the sampling ended

Validation

  • bun scripts/inbox-mode-demo-regression.ts at 8703b754d, one browser: all 111 blocks pass, the two edited
    ones among them (CPUs 96-111, TMPDIR outside the home folder).
  • bun run check fast at 8703b754d: 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.
  • Not run: the other browser scripts and the integration suite. The change is inside this one script.

For the merge pass: test-only, so no CodeRabbit review is requested for it.

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.
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Expanded regression coverage for entering the inbox from a wide-window pane when its transcript is at the end, including opening the pane’s thread and returning to the list with the pane hidden.
    • Added coverage for connection loss along the same route, verifying that returning from the thread restores the list over the pane.

The regression script adds wide-window checks for entering the inbox from a pane, opening that pane’s thread, and returning to the list with the pane mounted but hidden. The connection-loss test also checks the list’s connection status after this route.

Changes: Wide-window inbox navigation

Layer / File(s) Summary
Pane-to-thread and return checks
scripts/inbox-mode-demo-regression.ts
The regression checks verify that entering the inbox opens the pane’s thread and that Back restores the list with the pane mounted but hidden. The connection-loss test also checks the list’s connection status.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: Minimal · up to 8703b

This change only adjusts a test script so that two wide-window regression blocks return to the list before checking connection status and pane coverage. It does not affect production behavior. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the test script now steps Back to the list before the wide-window steps that read the list. It is specific and matches the raw summary and the PR objectives. It is a t…
Description check Passed The description follows the template. It has a Change section that describes the problem and the resulting behavior, and a Validation section that lists the commands run, their results, and what was s…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the test script now steps Back to the list before the wide-window steps that read the list. It is specific and matches the raw summary and the PR objectives. It is a test-only change, and the title says so with the test(inbox) prefix.

Full details: Description check

Explanation

The description follows the template. It has a Change section that describes the problem and the resulting behavior, and a Validation section that lists the commands run, their results, and what was skipped. The template asks for an issue link for features only, and this is a test-only change, so no link is required. The HTML comment from the template is absent, which is harmless.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f95c154 and 8703b75.

Files selected for processing: 1

  • scripts/inbox-mode-demo-regression.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@devswha
devswha merged commit 70e9ed7 into main Nov 14, 2026
21 of 23 checks passed
@devswha

devswha commented Nov 14, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head 8703b754d935 as 70e9ed72f27f on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
claude CLEAR
codex CLEAR

Two reviewers at this head: Claude (Opus) CLEAR, Codex Terra CLEAR. One browser script, scripts/inbox-mode-demo-regression.ts: after #3846 a wide window's way in opens the thread, so the wide steps that read the list now step Back to it first, waiting for the thread and its address before going Back. No product code; no assertion removed. LOW: at 1440 the covered-pane check now runs after a thread was shown and closed; the phone and 480 lanes still test the direct path.

@devswha
devswha deleted the test/inbox-wide-way-in branch November 14, 2026 12:59
devswha added a commit that referenced this pull request Nov 15, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant