Repository navigation
fix(ui): keep cached titles stable during cold reload - #178474
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR delays the generic title while cached metadata loads and uses the current scoped session observation when the retained roster omits the conversation. Example: Reload “Synthetic cold-load conversation” outside the saved sidebar page.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it addresses two concrete title-continuity defects with a focused change, and no introduced correctness or security defect was found. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe Control UI chat header combines retained roster presentation, pane-scoped session observations, and cached transcript metadata into a displayed conversation title. flowchart LR
A[Browser snapshot read] --> D[Pane title resolution]
B[Retained session roster] --> D
C[Scoped session observation] --> D
D --> E[Header title or placeholder]
Technical reviewBest possible solution: Keep title resolution with the existing session and hydration owners, preserving retained-roster precedence and scoped metadata retirement. Do we have a high-confidence way to reproduce the issue? Current source exposes both fallback paths, and the supplied browser reproduction and inspected screenshots demonstrate the pending-read defect; this read-only review executed no tests. Is this the best way to solve the issue? The patch is a small, coherent repair: it publishes existing hydration state and consumes the existing scoped observation without adding another cache, request, or authority owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e76ebe68919c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +11, Tests +125. Total +136 across 9 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 20, 2026, 10:38 AM ET / 14:38 UTC. |
78428c4 to
f3e3088
Compare
* fix(ui): keep cached conversation titles through cold reload * fix(ui): retain transcript metadata through reload reconciliation
What Problem This Solves
Fixes the premature “New session” title during a cached conversation reload and keeps the completed-work duration visible when reconnect reconciliation temporarily omits the conversation from the retained list.
User Impact
Only the title shows a loading placeholder while its cached metadata is unknown. The cached transcript tail, reply attribution and progress still render before the Gateway hello. Completed-work duration remains visible after reconciliation. Cache misses and read errors still settle normally; identity changes and confirmed deletion still retire metadata.
Why This Change Was Made
The original trace showed a generated title before the cache read completed. The title now observes a pending flag on that existing read, without making the shared history-request pointer reactive or changing its wait, timeout or cleanup behavior.
PR CI then caught a separate metadata omission: reply attribution and progress remained present, but “Worked for 3 minutes” became “Worked” after hello. A deterministic mounted-transcript test reproduces this when the current observed session row has runtime facts but the retained list omits it. The transcript now consumes that current scoped observation, while the canonical-list and deletion rules remain in force.
Rebased onto main, preserving its cached-board hydration changes and #178510’s reconnect-title fix. The duplicate title regression was removed in favor of that landed owner test.
Evidence
No timeouts, retry settings, assertions, budgets, baselines or allowlists were relaxed. No CI job was dispatched or rerun.
The synthetic captures were inspected at the same 1200×900 viewport. The existing before capture remains representative; the after captures were refreshed on the rebased repair.
Before the title fix, while the cache read is pending:
After, while the same read is pending:
After the cache read, before hello, with cached title, tail and completed-work duration: