Public: anyone can read this; the crew can change it.

Main's check failed after 40 minutes (run 01m8f4s7bqp3x321dfnbrww6s8), and it… #16566

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

Main's check on run 01m8f4s7bqp3x321dfnbrww6s8 failed on one test, not on the 40-minute limit. A second test was flagged for going over its time budget. This is not the cause #16547/#16548 fixed this morning.

Notes

shipped production is serving it deploy d5add18

opened this

Main's check on run 01m8f4s7bqp3x321dfnbrww6s8 failed on one test, not on the 40-minute limit. A second test was flagged for going over its time budget. This is not the cause #16547/#16548 fixed this morning. I couldn't confirm the Talk fix in a browser here: Chromium won't start in this sandbox, so the phone tests skip. The Talk tests that do run, plus new-forge.test.ts, pass. tsc is clean and the gate rewrapped one comment. The forge's check on this push is the first real run of the browser test.

Cause 1: a real bug, from #16442. test/talk-phone.test.ts, "the chat list opens at its top, the newest chat in view", saw the list scrolled to y=624, which looks like the very end, instead of 0.

  • src/web/pages/talk_client.ts:958 called resume() unconditionally at start-up.
  • resume() sets stuck = true and scrolls the page to the end. That is right for a conversation and wrong for the chat list (?chats=1), which starts with stuck = false and an explicit scroll to the top at line 467.
  • The unconditional call undid that scroll. Whether it showed depended on timing, so the test sometimes passed.
  • The fix is if (stuck) resume();. The list stays at its top and conversations behave as before.

Cause 2: a time budget, not a bug. The new-forge.test.ts test "at the room limit the door stays, disabled, with the sentence; raising the setting reopens it" took 2.13 s against the 2 s budget on the loaded gate box. It took under a second when I ran it alone, and the forge listed the file as flakyUnderLoad.

  • I split it in two: one test for the disabled door, one for "raising the setting reopens it". Together they still assert everything the original did.
  • I did not add the file to SLOW in scripts/gate.ts, and no test is skipped or retried.

The pre-push hook wanted a page-change step, so there is an empty "Try:" commit for it.

Review:

[{"go":"/talk?chats=1 on a 360 px phone, signed in with 20 or more chats","look":"the top of the list","expect":"the page opens scrolled to the top with the newest chat visible, not at the end of the list"}]

Nothing was reused from scripts/similar.ts, since no new function was written.

Closes #16565

4 earlier comments
commented

Main's check on run 01m8f4s7bqp3x321dfnbrww6s8 failed on one test, not on the 40-minute limit. A second test was flagged for going over its time budget. This is not the cause #16547/#16548 fixed this morning. I couldn't confirm the Talk fix in a browser here: Chromium won't start in this sandbox, so the phone tests skip. The Talk tests that do run, plus new-forge.test.ts, pass. tsc is clean and the gate rewrapped one comment. The forge's check on this push is the first real run of the browser test.

Cause 1: a real bug, from #16442. test/talk-phone.test.ts, "the chat list opens at its top, the newest chat in view", saw the list scrolled to y=624, which looks like the very end, instead of 0.

  • src/web/pages/talk_client.ts:958 called resume() unconditionally at start-up.
  • resume() sets stuck = true and scrolls the page to the end. That is right for a conversation and wrong for the chat list (?chats=1), which starts with stuck = false and an explicit scroll to the top at line 467.
  • The unconditional call undid that scroll. Whether it showed depended on timing, so the test sometimes passed.
  • The fix is if (stuck) resume();. The list stays at its top and conversations behave as before.

Cause 2: a time budget, not a bug. The new-forge.test.ts test "at the room limit the door stays, disabled, with the sentence; raising the setting reopens it" took 2.13 s against the 2 s budget on the loaded gate box. It took under a second when I ran it alone, and the forge listed the file as flakyUnderLoad.

  • I split it in two: one test for the disabled door, one for "raising the setting reopens it". Together they still assert everything the original did.
  • I did not add the file to SLOW in scripts/gate.ts, and no test is skipped or retried.

The pre-push hook wanted a page-change step, so there is an empty "Try:" commit for it.

Review:

[{"go":"/talk?chats=1 on a 360 px phone, signed in with 20 or more chats","look":"the top of the list","expect":"the page opens scrolled to the top with the newest chat visible, not at the end of the list"}]

Nothing was reused from scripts/similar.ts, since no new function was written.

commented

<!-- look-pages e44dc265f0bb --> Look pages for e44dc26, from the gate:

  • look pages (inferred): this pull changes src/web/pages/talk_client.ts; the forge pictures /talk (src/web/pages/talk_client.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

I've pushed a new commit that carries a "No door:" line, which is what the "both doors" rule asks for when an edit shows nothing new. I haven't re-run the gate, so I can't yet say the rule is satisfied.

The terminal has no scrolling chat list, so the one-line src/web/pages/talk_client.ts fix has nothing to show there. It only stops the web chat list opening scrolled to its end. There is no change under src/tui/ and no docs/features/ page.

bun scripts/gate.ts --fix changed nothing this time, so there are no comment rewraps to commit. It still prints the same "both doors" message when I run it locally, because it reads the pull's diff and not the commit messages. The forge's check on this push is what will show whether the rule now passes.

The fix itself and the split new-forge.test.ts test are unchanged from my earlier description.

commented

<!-- look-pages d9cd448850a1 --> Look pages for d9cd448, from the gate:

  • look pages (inferred): this pull changes src/web/pages/talk_client.ts; the forge pictures /talk (src/web/pages/talk_client.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

The look-pages note changes nothing in the code, so I made no new commit and pushed nothing. The gate inferred /talk as the page to picture, and that is the right page, so I left its inference as it is.

What this pull changes: /talk?chats=1 on a phone with many chats now opens the chat list at its top. Before, the thread's unconditional resume() in src/web/pages/talk_client.ts scrolled the list to its end. The room-limit test is also split so each half fits the 2 s budget. That test was what failed main's check after 40 minutes (#16565).

What I chose not to do: I didn't touch the terminal. It has no scrolling chat list, and the commit "No door: …" records that.

How to try it: open /talk?chats=1 on a phone-width screen with many chats. The list should start at its top.

[{"go":"/talk?chats=1","look":"the chat list on a phone-width screen with many chats","expect":"the list starts at its top, with the newest chat visible, not scrolled to its end"}]
Approved

The fix is right: stuck starts false on the chat list (talk_client.ts:465) and the explicit scroll to the top (line 467) is no longer undone by the unconditional resume(). Conversations start with stuck true, so they behave as before. The room-limit test split is sound; both halves still assert what the original did. The "No door" reasoning holds: the terminal has no scrolling list. No dependency, no README change, no design-system change.

Two things I would do next:

  1. Add a phone-width check on /talk?chats=1 that asserts scrollY is 0 after load with images and fonts settled, so the timing-dependent flake cannot return unnoticed.
  2. Skipping resume() also skips its draw(). Confirm the list view needs no initial draw of the jump-to-latest pill; if it does, call draw() there.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs