Repository navigation
fix(ui): restore live updates when retrying chat history - #147865
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 14, 2026, 12:22 AM ET / 04:22 UTC. ClawSweeper reviewWhat this changesThe PR makes chat-history Retry also recover a failed live subscription, including approval updates, and adds regression coverage and recovery documentation. Merge readiness✅ Ready for maintainer review The repair remains necessary on inspected main. It reuses the existing subscription lifecycle, preserves catalog refresh behavior, and introduces no actionable correctness finding. The maintainer-protected PR should remain open. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI loads saved conversations from the Gateway and separately subscribes to live session updates. Retry now reconnects failed observation alongside reloading history so the conversation can receive subsequent updates. flowchart TD
A[Chat history Retry] --> B{Catalog conversation?}
B -->|Yes| C[Reload catalog history]
B -->|No| D[Reload saved conversation]
B -->|No| E{Subscription failed?}
E -->|Yes| F[Existing subscription owner]
F --> G[Live messages and approval updates]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +13, Tests +53, Docs +3. Total +69 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep Retry coordinated through the existing history and subscription owners, preserving their session fencing and approval-access checks. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the path: a sent subscription timeout removes observation, while main's Retry reloads only history. The new regression exercises that callback; this review did not execute it. Is this the best way to solve the issue? Yes. Calling the existing subscription owner on its recorded failure repairs the missing coordination without adding a parallel retry mechanism or changing stored settings. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 28dd17e8a15e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit 'e3d8d0078369b21223c70028c4502c89f1420897': (51 commits) fix: background requests delay opening chats (#147845) chore(i18n): refresh native locales (#147899) feat: start remote sessions without a repository (#147773) fix(slack): retire probe sockets after timeout (#147846) refactor(agents): share theme ANSI color encoding (#147838) improve(memory): bound vector recall decision counts (#147900) improve(browser): narrow dashboard lifetime rechecks (#147892) test(discord): compact lifecycle matrices (#147855) fix(agents): use exact model rows for harness support (#147849) test(agents): compact embedded lifecycle matrices (#147856) test(agents): compact embedded admission matrices (#147853) test(cli): compact node management matrices (#147854) feat(artifacts): select assistant-delivered files by run (#147682) improve: reduce event-loop work when recording prompts (#147876) fix: preserve readable generated image and video filenames (#147833) fix(ci): skip SDK rendering for identical revisions (#147572) fix: prevent false process failures and stalled background waits (#147871) fix(ui): restore live updates when retrying chat history (#147865) fix(ui): preserve text and image order in assistant replies (#147731) refactor(qa-lab): reuse approval result formatter (#147867) ...
What Problem This Solves
Fixes chat history Retry restoring saved messages while leaving targeted live updates disconnected after the session subscription also timed out.
User Impact
Retry restores the selected conversation's failed subscription, including approval updates, without requiring a new connection. Existing catalog refresh behavior is preserved.
Why This Change Was Made
History and subscription requests can fail independently. The existing refresh action only retried history, so a successful history response could leave the selected session without its targeted observer. The history owner now also asks the existing subscription owner to synchronize when it recorded a subscription error.
Evidence
Before and after, respectively: