Repository navigation
Show error + retry when thread detail fails to load (#82) - #104
Merged
currentbits merged 1 commit intoAug 16, 2026
Merged
Conversation
threads.get rejecting left detail null, so ThreadView fell back to the neutral 'Select a thread' empty state with no error and no way forward; re-clicking the same thread was a no-op because the selection state (and thus the load effect) never changed. - useCoder: record the rejection in detailError and add retryDetail(), which bumps a nonce in the load effect's deps so the fetch re-runs for the already-selected thread. - ThreadView: render 'Couldn't load this thread' with the failure message and a Retry button when detailError is set. - App: wire detailError/retryDetail through.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/failed-thread-load-dead-ends-on-select-a-868654
branch
October 3, 2026 16:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
If
threads.getrejects,useCodersetdetailto null andThreadViewfell back to the neutral "Select a thread" empty state — no error, no retry. Re-clicking the same thread was a no-op (selection state unchanged, so the load effect never re-ran), leaving the user stuck until they clicked away and back. Reported in #82 during the 2026-08-16 improvement audit.What changed
src/useCoder.ts— the detail-load effect now records the rejection in a newdetailErrorstate instead of only nullingdetail. A newretryDetail()bumps adetailRetryNoncein the effect's deps, so the fetch re-runs even for the already-selected thread. The error clears on success, on a new selection, and on deselect.src/components/ThreadView.tsx— new optionaldetailError/onRetryDetailprops. Whendetailis null anddetailErroris set, the center pane renders "Couldn't load this thread" with the failure message and a Retry button instead of the neutral empty state.src/App.tsx— wiresdetailError(gated on an active selection) andretryDetailthrough toThreadView.Tests
test/threadView.test.tsx— the error state renders the failure message and Retry (and stays neutral withoutonRetryDetail).test/appWiring.test.tsx— end-to-end through realuseCoderagainst the fakewindow.coder: a rejectingthreads.getsurfaces the error state, and Retry re-firesthreads.getfor the already-selected thread and renders the transcript.Full renderer suite (673 tests) and
tsc --noEmitpass.PR created by the Kimi Code agent