Repository navigation
Description
Summary
Home's stream (chats, tasks and conversations) and its PROJECTS list now mount only the rows near their view once they hold more than 60 rows. Both lists were changed directly on main on 2026-10-05, in f458cb903 and 4379edc43.
Each list renders a different element type below and above that threshold, with no hysteresis:
home-stream.tsx:116–151: a plain<ol>for 60 rows or fewer, and<WindowedHomeStream>above.home-projects.tsx:380–394:<WindowedProjectRows>above 60 (WINDOWED_PROJECTS_MIN_ROWS,:415), and a plain<ul>otherwise.
So whenever a list's count crosses 60, in either direction, React unmounts every row and mounts new ones, and any state a row holds is lost.
The board had the same cause. 0287d788d fixed it there: "Crossing 40 tasks switched a lane between mounting every task and the window, remounting every task and any open picker or focus in them. A windowed lane now goes back only below 30." Home's two lists, written after that fix, kept a single threshold.
Source and environment
mainata9d61f36bcdf0233b4963c8118ff5c83a969375d.- Found by reading the merged code. Nothing was rendered in a browser (see Limits).
Impact
When the count crosses 60 while someone is using a row:
- An open rename field on a chat row closes.
renamingis state inside the row (home-rows.tsx:253).- The field is uncontrolled and saves on blur (
thread-row.tsx:253,:262). The typed title is therefore either lost or saved half-typed, depending on whether a blur fires when the input is removed.
- An open row menu or its delete confirmation closes. The confirmation's
deleteOpenis also row state (thread-row.tsx:322, rendered fromhome-rows.tsx:339). - Keyboard focus inside the list falls back to the page body.
- The stream replays its entry fade. Both of its roots carry
animate-in fade-in-0(home-stream.tsx:121and:351).
What changes the count:
- a chat, task or conversation that arrives or disappears when the list refetches, for example one created or deleted in another tab or by an agent;
- the provisional row of a fresh chat, which counts as a row (
home-stream.tsx:112–114); - archiving or deleting a row;
- narrowing Home's search (this one only remounts and fades the list, because focus stays in the search field).
Anyone with about 60 Home items, or about 60 projects, can hit it.
Reproduction (deterministic, from the code)
- Render Home with exactly 60 stream rows and open a chat row's rename field, its menu, or its delete confirmation.
- Make the stream hold 61 rows, for example with a chat created in another tab once the list refetches.
HomeStreamnow returns<WindowedHomeStream>where it returned<ol>. React replaces the whole subtree, so the row'srenaminganddeleteOpenreset and the field or dialog disappears.
Going from 61 rows to 60 does the reverse. PROJECTS behaves the same at 60 and 61 projects.
Expected and observed
- Expected: crossing the threshold keeps the rows mounted, or at least keeps a focused or edited row and its state, as the board's lanes do.
- Observed: every row remounts on each crossing.
Controls
- Healthy control: the board's lanes and the task list's sections. Both use
useLaneWindowed(windowed-task-rows.tsx:26–41;board-column.tsx:76,tasks-list.tsx:218).- A lane is windowed above 40 (
WINDOWED_LANE_MIN_CARDS) and returns to every card only below 30 (UNWINDOWED_LANE_MAX_CARDS). - The hook's own comment states the mechanism: "a switch remounts every task in the lane, and with them a picker that was open in one, or the focus."
- The board's browser tests hold focus across the crossing (
0287d788d).
- A lane is windowed above 40 (
- Within one mode, the list isn't replaced.
- At 60 or fewer, every row stays mounted.
- Above 60, only rows far from the view unmount, and focused, open and dragged rows are pinned (
home-stream.tsx:223–252). - Only the crossing replaces the whole list.
Root cause
Each Home list chooses between two different element types at the same position with one threshold of 60. There is no hysteresis and no shared tree shape.
Acceptance checks
- Crossing 60 in either direction keeps all of the following, for the stream and for PROJECTS:
- a row's open rename field, with its typed text;
- its open menu or delete confirmation;
- keyboard focus.
- A count moving back and forth across the threshold (60 ↔ 61) neither remounts rows nor replays the stream's fade.
- Browser tests like the board's (
board-column.browser.test.tsx) cover both lists: open a rename field or menu, cross the threshold both ways, and check that the state and focus survive. - The fix uses either hysteresis, like
UNWINDOWED_LANE_MAX_CARDS, or one tree shape for both modes. Manual box PERF-B9 states what happens at the crossing.
Limits
- Static only. I read the merged code and ran nothing in a browser: the fleet's hold on heavy work was in place and the host's IO was high.
- Unverified: whether a removed rename input saves on blur. Either way, the field closes while the user is typing.
- Not checked: other windowed lists beyond Home's two and the task views. The board and the task list already use
useLaneWindowed.
Found by the TALE-358 local-QA role: occurrence 2026-10-06 00:15 Europe/Zurich, run 349d19ef-5946-4245-aac5-cdee0e3f6e2f.
Activity
yannickmonney commentedon Oct 6, 2026
Recheck: fixed on
main. TALE-358 Review A, agent #3, run844c1971, 2026-10-06 08:15 Europe/Zurich. I reported this issue; the fix is someone else's.The fix landed as direct commits on
main:e0ac8ab28("preserve Home scrolling and list accessibility") and6e283becc. That's why this issue didn't close itself.Static check at
890de6258:HomeStreamalways rendersHomeWindowedList, "the one Home list engine, shared by the grouped stream, Inbox and projects" (home-stream.tsx:137–151).<List>with the same keyedFragmentrows; only the set of mounted items differs (:360–368,:413–470).home-projects.tsx:375).Executed check:
home-panel.browser.test.tsx:480–508, "keeps an inline rename draft and focus when live rows cross the virtual threshold". It goes 60 → 61 → 60 and asserts the rename input stays connected, keeps "Keep this unsaved title" and keeps focus. A second test (:510) keeps the reading position across the crossing.890de6258at 06:09:59Z. Turbo rantest:browseruncached ("Cached: 0 cached, 2 total").Acceptance checks from the issue:
input.isConnectedstays true)Not run here: a live manual pass. The host's resource gate allowed only coordination-class work this slot.
Recommendation: close as fixed by
e0ac8ab28and6e283becc. A PROJECTS-specific crossing test and a PERF-B9 sentence would be nice to have, not blockers.test(platform): cover Home's lists crossing the 60-row threshold
test(platform): cover Home's lists crossing the 60-row threshold