Repository navigation
fix: restore selected task after chat reload - #153185
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 5:58 PM ET / 21:58 UTC (Revision 2). ClawSweeper reviewWhat this changesChat remembers the task selected in Review across reloads, retrieves its current details, and shows loading, unavailable, and retry states. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. No actionable correctness or security defects were found, and the supplied visual and runtime evidence supports the repair. Priority: P2 Review scores
Verification
How this fits togetherChat’s Review panel displays background-task details alongside the conversation. Browser settings retain the selection, while the Gateway supplies current task data and transcripts. flowchart LR
A[Select task in Chat] --> B[Save session panel selection]
B --> C[Reload Chat]
C --> D[Load current task list]
D --> E[Resolve selected task details]
E --> F[Show transcript or recovery state]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +67, Tests +397, Docs 0. Total +464 across 16 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain only the selected task identity in existing session layout settings and resolve its current content through the existing scoped Gateway loaders. Do we have a high-confidence way to reproduce the issue? Yes: select a task in Review and reload Chat; current main persists the panel but not its task identity. Source and supplied before/after evidence establish the path; this review did not execute it. Is this the best way to solve the issue? Yes: extending the existing layout and task-loader owners avoids a competing store, preserves old layouts, and handles tasks outside the recent list. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a5fa4fee5503. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* fix: restore selected task after chat reload * test: keep task review fixture in test helper scope
What Problem This Solves
Fixes: reloading Chat replaces the task selected in Review with workspace Git changes or an empty Review panel.
User Impact
Review restores the selected task after reload, including older tasks outside the recent-task list. Loading and failed lookups remain visible, with an explicit retry action.
Why This Change Was Made
The panel layout survived reload, but its task selection did not. The existing session layout now retains the selected task ID, and the existing task-detail loader retrieves its current data. Closing Review or explicitly selecting another review target clears the task selection. Requests wait for the authoritative list to establish session scope, and obsolete responses cannot replace newer state after deletion, registry restoration, or a connection change.
Evidence