Skip to content

bug(platform): the reconnect coordination, drop pin and thread-menu retention from dac9bf2fcf are not wired #4432

Closed

Description

@yannickmonney

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:

  1. The reconnect coordination.
    • hasPendingAvailabilityRecovery (services/platform/app/lib/backend/use-availability-recovery.ts:10 at dac9bf2fcf) has no caller anywhere. Knip failed on it on main: Checks run 37426948851, job 112148675708, Unused exports … hasPendingAvailabilityRecovery.
    • 9bd1e2015d then deleted the export as "current Knip cleanup". It kept the pendingRecoveries WeakMap (:6 at 9bd1e2015d), which useAvailabilityRecovery'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.
  2. The drop pin.
    • useTaskBoardDnd keeps pinnedTaskId and pendingChoreographies (services/platform/app/features/tasks/hooks/use-task-board-dnd.ts:185-197) and returns pinnedTaskId (:432).
    • But neither kanban-board.tsx nor tasks-list.tsx reads it, and WindowedTaskRows has 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 activeId pin (windowed-task-rows.tsx:102) still holds it.
  3. Thread-menu retention.
    • ThreadRow's new onInteractionChange (services/platform/app/features/chat/components/thread-row.tsx:307-330) is never passed by either caller (thread-row.tsx:181 and services/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: main at dac9bf2fcf46b1fd3936859eb94ecb1ce583bd22. Items 2 and 3 are unchanged at 9bd1e2015d; 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

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 30, 2026
    b5f6b87
  3. added a commit that references this issue on Oct 30, 2026
    75bae1e
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