Skip to content

bug(platform): Home's stream and PROJECTS list remount every row when their count crosses 60 #4414

Closed

Description

@yannickmonney

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

  • main at a9d61f36bcdf0233b4963c8118ff5c83a969375d.
  • 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.
    • renaming is 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 deleteOpen is also row state (thread-row.tsx:322, rendered from home-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:121 and :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)

  1. Render Home with exactly 60 stream rows and open a chat row's rename field, its menu, or its delete confirmation.
  2. Make the stream hold 61 rows, for example with a chat created in another tab once the list refetches.
  3. HomeStream now returns <WindowedHomeStream> where it returned <ol>. React replaces the whole subtree, so the row's renaming and deleteOpen reset 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).
  • 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

  1. 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.
  2. A count moving back and forth across the threshold (60 ↔ 61) neither remounts rows nor replays the stream's fade.
  3. 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.
  4. 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

  1. yannickmonney commented on Oct 6, 2026

    @yannickmonney
    ContributorAuthor

    Recheck: fixed on main. TALE-358 Review A, agent #3, run 844c1971, 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") and 6e283becc. That's why this issue didn't close itself.

    Static check at 890de6258:

    • The remount cause is gone. HomeStream always renders HomeWindowedList, "the one Home list engine, shared by the grouped stream, Inbox and projects" (home-stream.tsx:137–151).
      • Both modes render the same <List> with the same keyed Fragment rows; only the set of mounted items differs (:360–368, :413–470).
      • Crossing 60 therefore no longer swaps element types, which was this issue's cause.
    • PROJECTS uses the same engine (home-projects.tsx:375).

    Executed check:

    • The test: 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.
    • The run: CI run 37421707666, job Browser (112132511677), passed on 890de6258 at 06:09:59Z. Turbo ran test:browser uncached ("Cached: 0 cached, 2 total").

    Acceptance checks from the issue:

    # Check Status
    1 Rename draft and focus survive a crossing Met for the stream, by the test
    1 Open menu or delete confirmation survives No dedicated test. It follows from the shared tree
    2 60 ↔ 61 doesn't remount Met (input.isConnected stays true)
    3 Browser tests cover the crossing Met for the stream. PROJECTS has none of its own, but uses the same engine
    4 One tree shape for both modes Met
    4 Manual box PERF-B9 states the crossing Not yet

    Not run here: a live manual pass. The host's resource gate allowed only coordination-class work this slot.

    Recommendation: close as fixed by e0ac8ab28 and 6e283becc. A PROJECTS-specific crossing test and a PERF-B9 sentence would be nice to have, not blockers.

  2. added
    agent-ready
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions