Skip to content

Failed thread load dead-ends on 'Select a thread' with no error or retry #82

Closed

Description

@currentbits

src/useCoder.ts:552-554 — if threads.get rejects, detail becomes null; ThreadView.tsx:1830-1855 then shows the neutral "Select a thread" empty state with no error and no retry. Re-clicking the same thread is a no-op (selection state unchanged, React bails, the effect doesn't re-run), so the user is stuck until they click away and back.

Fix: surface the load failure as an error state with a retry action; make retry re-run the fetch even for the already-selected thread.

Found during the 2026-08-16 improvement audit.

Activity

  1. added
    bug
    plan:todo
    on Aug 16, 2026
  2. added a commit that references this issue on Aug 16, 2026
  3. added
    plan:done
    and removed
    plan:todo
    on Aug 16, 2026
  4. currentbits commented on Aug 16, 2026

    @currentbits
    OwnerAuthor

    Fixed in aa9749e (already on main).

    • useCoder: threads.get rejection now records detailError; retryDetail() bumps a nonce in the load effect deps so the fetch re-runs for the already-selected thread.
    • ThreadView: renders "Couldn't load this thread" + the failure message + a Retry button instead of the neutral "Select a thread" state.
    • Covered by test/appWiring.test.tsx and test/threadView.test.tsx (issue Failed thread load dead-ends on 'Select a thread' with no error or retry #82 cases); renderer suite passes 35/35.
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