Skip to content

Stale transcript shown under the new selection while switching threads #83

Closed

Description

@currentbits

src/useCoder.ts:536-559 keeps the previous thread's detail until the new threads.get resolves; ThreadView has no guard that detail.thread.id matches the selected thread (it never receives the selected id). Over --serve-web latency the old transcript and composer render under the new sidebar selection, and a fast send goes to the new thread while the user is still reading the old one.

Fix: clear detail on selection change, or pass the selected thread id into ThreadView and gate rendering on a match.

Found during the 2026-08-16 improvement audit.

Activity

  1. added
    bug
    plan:todo
    plan:done
    and removed
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Aug 16, 2026

    @currentbits
    OwnerAuthor

    Fixed on branch coder/stale-transcript-shown-under-the-new-sel-28ac1b: App.tsx now derives visibleDetail (detail only when detail.thread.id === selectedThreadId) and uses it for ThreadView, AgentsPanel, and project resolution — the previous thread's transcript/composer can no longer render under the new selection while threads.get is in flight. Regression test in test/appWiring.test.tsx simulates a pending fetch and fails without the gate; full renderer suite (672 tests) + typecheck green.

  3. added a commit that references this issue on Aug 16, 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

    bugplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions