GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — fix(web): clear failed badges when threads are opened by BilalIrfanContact · Pull Request #25663 · pingdotgg/t3code Conversation
|
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, isolated sidebar bug fix that clears an acknowledged failure indicator while preserving unacknowledged and later failure indicators. It adds focused coverage and does not change product defaults, schemas, infrastructure, or static-analysis configuration. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Resolve and display unseen failures apps/web/src/components/Sidebar.logic.ts, apps/web/src/components/sidebar/SidebarThreadRow.tsx, apps/web/src/components/Sidebar.logic.test.ts |
Failure detection checks failed runs and runtimes against the visit time. The row resolver treats a seen failure as ready, and the sidebar row passes the resolved visit time. Tests cover timestamp fallbacks, later failures, and folder indicators. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related issues
Possibly related PRs
lastVisitedAt.Suggested reviewers: justyannicc, juliusmarminge, macroscopeapp
9d3acNo supported merge-blocking risk remains in the reviewed changes.
Explanation
Issue #25470 requires that opening a session clears its sidebar Failed badge, as opening a completed session clears Done. The whole-PR diff (merge base to head) meets this for the sidebar card. (1) Sidebar.logic.ts adds resolveSidebarRowStatus, which returns "failed" only when hasUnseenFailure is true; otherwise it returns "ready". (2) hasUnseenFailure now dates the failure. It uses latestRun.completedAt, falls back to runtime.updatedAt when completedAt is absent, and uses runtime.updatedAt when latestRun is not failed but runtime.status is failed (a session that fails before a run exists). It returns true when lastVisitedAt is missing or a timestamp is invalid, and otherwise returns true only when the failure is later than lastVisitedAt. This matches the issue's suggested symmetric fallback. (3) SidebarThreadRow.tsx uses resolveSidebarRowStatus, so the row badge follows the watermark. Because the acknowledged row becomes ready and hasUnseenCompletion is false for these cases, Done does not replace Failed. (4) resolveSidebarThreadStatus is unchanged, so raw runtime status and the usage_limit to limited mapping are preserved. Test coverage is taken from the PR description and the summary; I did not re-read the test file in this pass. Residual uncertainty, not a demonstrated gap: if runtime.status is failed while latestRun still points to an older failed run, the older completedAt dates the failure. I did not verify whether this state occurs.
Explanation
All reviewed changes connect to #25470. Sidebar.logic.ts changes hasUnseenFailure and adds resolveSidebarRowStatus, which gate the Failed badge on the visit watermark. SidebarThreadRow.tsx switches to the new resolver at the call site. resolveSidebarFolderDot now uses resolveSidebarRowStatus, so a folder dot follows the same acknowledgement rule as the row badge. This is a consequence of the same Failed symptom, not an unrelated change. The PR description does not mention the folder dot, which is a minor documentation gap. resolveSidebarThreadStatus, the usage_limit mapping, and hasUnseenCompletion are unchanged. No unrelated refactors, settings, or workflow changes appear in the whole-PR diff of Sidebar.logic.ts. The incremental diff from the previous reviewed head was unavailable, so this check used the whole-PR diff only.
Comment @coderabbitai help to get the list of available commands.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Note Written by The sidebar change lacks the clear before/after screenshots required by verification. The attached recording demonstrates a failed thread being opened and its badge clearing in the candidate, but does not compare the unchanged implementation with the fix. The 65 focused tests establish the acknowledgement logic. Please add matching screenshots of the same opened failed-thread scenario on main and this change, retain the interaction recording, and request reconsideration. The inconsistent Failed versus Done acknowledgement remains a useful problem report. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@maria-rcks reopened as #28616 with matching before/after screenshots of the same opened failed-thread scenario on main and the fix, alongside this PR's recording. It's on current main. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Sidebar "Failed" badge does not clear when the session is opened (unlike "Done")
There was an error while loading. Please reload this page.