Repository navigation
fix(web): show thread undo notice in the sidebar - #12972
Conversation
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — The PR replaces toast-based undo with a new shared sidebar notice, grouped restoration behavior, and revised batch-action handling. These changes affect several existing production paths and introduce a stateful undo manager, so the runtime behavior warrants focused review. You can add or adjust custom eligibility rules. Learn more. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
commented
Sep 22, 2026
|
UI consistency review found one violation: Posted via Macroscope — UI Consistency |
commented
Sep 22, 2026
|
The UI consistency finding is recorded inline on Posted via Macroscope — UI Consistency |
commented
Sep 22, 2026
|
All clear Posted via Macroscope — UI Consistency |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (14)
💤 Files with no reviewable changes (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change replaces thread undo toasts with a shared, grouped undo notice. Thread actions publish notices, the sidebar renders them, and the chat route handles the undo shortcut with focus and picker guards. ChangesThread undo notices
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant User
participant ThreadAction
participant ThreadUndo
participant SidebarThreadUndoNotice
participant undoLatestThreadAction
User->>ThreadAction: archive, unpin, settle, or snooze
ThreadAction->>ThreadUndo: claim action
ThreadUndo->>SidebarThreadUndoNotice: publish grouped notice
User->>SidebarThreadUndoNotice: click Undo
SidebarThreadUndoNotice->>undoLatestThreadAction: start latest group
undoLatestThreadAction->>ThreadUndo: consume eligible claims
ThreadUndo-->>ThreadAction: restore actions
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 10 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
commented
Sep 22, 2026
|
Reviewed the CodeRabbit docstring coverage warning. This repository does not enforce a docstring percentage; its AGENTS.md asks comments to explain usage and non-obvious constraints rather than narrating code. The undo helpers already document shared ownership, grouping, claim consumption, and expiry. No additional docstring churn is needed. The current-head CodeRabbit review reports no actionable findings. |
Thread actions currently stack success toasts over the workspace. Replace them with one compact, rounded notice at the bottom of the sidebar showing the action, thread count, and configured undo shortcut. Consecutive actions of the same kind undo together, and the notice expires five seconds after the latest action.
The notice uses the shared Alert container and InlineButton text action. The shared footer covers both sidebar layouts on web and desktop. The chat route owns the undo shortcut so it also works without an open chat and receives the complete keyboard context. Stale actions disappear immediately, restore failures still report errors, and the existing keybinding guidance matches the new behavior. Mobile uses separate actions and has no corresponding undo toast.
Verification: 139 focused undo and keybinding tests passed; web typecheck passed; targeted lint completed with existing warnings. Verified settle and grouped Undo in the Browser panel against disposable state. The whole-change audit found no remaining code blockers. Current-head CI passed, and CodeRabbit and Macroscope correctness/UI reviews report no actionable issues. Macroscope automatic approval returned neutral because it recommends human review for this behavior change. All five review threads are resolved. The matching captures use base
76cc9b0and the PR implementation at 1280 × 800.Before, stacked toasts:
After, sidebar notice:
Grouped settle and Undo, slowed for readability:
Implemented with GPT-6 in the Codex harness.