Repository navigation
Closed
Labels
Description
Summary
dac9bf2fcf ("fix(platform): keep large collections responsive", pushed directly to main on 2026-10-06) claims to "coordinate reconnect refreshes so each active read runs once" and to preserve "menus and drag state" in windowed lists. Three pieces it adds for this are never read by anything, so these parts of the claim are not delivered:
- The reconnect coordination.
hasPendingAvailabilityRecovery(services/platform/app/lib/backend/use-availability-recovery.ts:10atdac9bf2fcf) has no caller anywhere. Knip failed on it onmain: Checks run 37426948851, job 112148675708,Unused exports … hasPendingAvailabilityRecovery.9bd1e2015dthen deleted the export as "current Knip cleanup". It kept thependingRecoveriesWeakMap(:6at9bd1e2015d), whichuseAvailabilityRecovery's effect still increments and decrements, and which nothing reads.- So after an outage, the SSE replay recovery and the availability recovery both still refresh, exactly as before the commit.
- A latent problem for whoever wires it: the counter is decremented in the effect cleanup, which runs before the reconnect branch. A reader in the same commit would therefore see 0.
- The drop pin.
useTaskBoardDndkeepspinnedTaskIdandpendingChoreographies(services/platform/app/features/tasks/hooks/use-task-board-dnd.ts:185-197) and returnspinnedTaskId(:432).- But neither
kanban-board.tsxnortasks-list.tsxreads it, andWindowedTaskRowshas no prop for it. - So the stated intent, keeping the source card mounted until dnd-kit restores keyboard focus after a drop, isn't delivered, and every drag still pays for the extra state updates.
- A card can't unmount mid-drag: the existing
activeIdpin (windowed-task-rows.tsx:102) still holds it.
- Thread-menu retention.
ThreadRow's newonInteractionChange(services/platform/app/features/chat/components/thread-row.tsx:307-330) is never passed by either caller (thread-row.tsx:181andservices/platform/app/features/home/components/home-rows.tsx:339).- So an open chat or Home row menu stays mounted only through the generic focus pin.
Source and environment
- Commits:
mainatdac9bf2fcf46b1fd3936859eb94ecb1ce583bd22. Items 2 and 3 are unchanged at9bd1e2015d; item 1 was partly removed there. - How it was found: by reading the code and the Knip log. Nothing was run.
Expected
For each piece, do one of the following:
- wire it to the code that should use it, with a test that fails without it;
- or delete it, and correct the claim in the commit's follow-up and in
services/platform/tests/manual/reference/automation.md.
Limits
Read-only post-merge review. No test or build was run.
Found in the TALE-965 post-merge review of 890de625..dac9bf2fcf (main after v0.5.74, slice 1).
Activity
fix(platform): refresh each read once on reconnect, drop dead pins
fix(platform): refresh each read once on reconnect, drop dead pins