Repository navigation
fix(ui): keep restored titles through reconnect roster updates - #178478
shannon0430 wants to merge 2 commits into
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 changes before merge. What this changesThe chat header uses the current scoped session observation when its selected roster row is absent. Example: Reconnect accepts “Synthetic cold-load conversation” before the pane roster catches up.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this PR narrowly repairs a current title-resolution gap, and the earlier fixture type error is repaired; no actionable introduced defect was found. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe Control UI combines retained roster rows, scoped live session observations, and cached transcript metadata to display conversation titles. flowchart TD
A[Gateway descriptors] --> B[Scoped session observation]
C[Retained session roster] --> E[Title resolver]
D[Cached transcript metadata] --> E
B --> E
E --> F[Chat header]
Technical reviewBest possible solution: Land the existing scoped-observation fallback after the required full chat CI run succeeds. Do we have a high-confidence way to reproduce the issue? The source exposes the missing live-observation fallback, and the supplied browser trace and base/head results exercise that exact transition; this read-only review executed no target code. Is this the best way to solve the issue? The patch is the smallest complete repair: consume the existing scoped observation at the shared title resolver while retaining roster precedence and existing invalidation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7538c9e4cbaf. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +73. Total +76 across 2 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label 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 HistoryReview history (1 earlier review cycle)
Reviewed October 20, 2026, 12:12 PM ET / 16:12 UTC (Revision 2). |
Resolved upstreamThe scoped-observation title fallback is now on official main through #178510 ( On pinned official main The product fix is already adopted upstream, so #178478 is superseded. No additional The contribution head |
|
@clawsweeper re-review Current head: The prior check-test-types-core-3 failure was diff-caused and is repaired using the existing public TestChatPane fixture wrapper. The canonical ui-chat type graph and all 29 session-menu tests pass; the final owner regression still fails against the original production code. Production bytes and the supplied browser/screenshot evidence are unchanged. The detailed author response is above. Current-head CI: https://github.com/openclaw/openclaw/actions/runs/39450848192 . Preflight and security-fast have passed; execution of the selected test jobs remains queued. This is not an overall-CI-success claim. The separate maintainer-owned ci:full label and current-head full run request remains in the PR body. |
|
🦞👀 Re-review progress:
|
Resolved upstream
The scoped-observation title fallback is now on official main through #178510 (
58c3f35e0e1894bc837871e5ca58b47be78031f2). #178474 (fe739f62fcfa1f91dfaa25f7a710292da190822c) also handles pending cached-title hydration.On pinned official main
79262d0571694dbf083b7d1bf5a206cc8fb93936, the original synthetic cached-tail Chromium case passes withen-USand CPU rate 4 (6.831 s case, 21.85 s wrapper). The official added pending-cache/first-title assertions and the retained title/scroll checks were kept; the local diagnostic locale/throttle adjustment was restored after the run. There is no private UI correction.The product fix is already adopted upstream, so #178478 is superseded. No additional
ci:fullrun is requested for that duplicate PR. This records source adoption, not a claim that an official package has been released.Closes #178470
What Problem This Solves
Fixes: a restored conversation briefly changes its header to New session when reconnect accepts its live descriptor before the pane roster catches up.
User Impact
User impact: the conversation keeps its accepted title through that reconnect transition. Clearing a title and changing conversations retain their existing behavior; no settings, authority, or migration changes are required.
Why This Change Was Made
The existing pane-scoped observation can already hold the accepted descriptor while the retained sidebar page and the pane-selected row do not contain it. That same observation retires the cached transcript fallback, leaving a temporary gap in header title resolution. The header now consumes its current scoped observation before consulting the cached fallback. Retained presentation and an explicit selected row keep their existing precedence. No new cache, request, config, or state owner is added.
Evidence
Pinned base:
d85fcb29bec40d33dc6055fe4144cbf468b8848c. Synthetic data only.en-USand Chromium CDP CPU rate 4 before navigation: base FAIL (New sessionvsSynthetic cold-load conversation, 9.058 s); candidate PASS (8.642 s, runner wall 27.67 s). No assertion, timeout, RPC reply, or retry changed. The locale/throttle/console capture are local diagnostic adjustments, not committed runtime/test controls.New sessionvsObserved conversation) without CPU throttling. It passes with the fix and covers a different session/agent key plus an actualsessions.patch({ label: null })acknowledgement whose JSON-compatible entry omitslabel.Production delta: +4 / -1 lines; test delta: +73 / -0 lines. The growth is one deterministic reconnect regression using the existing mounted-pane and session owners. No new test-only production seam.
Related #173266 already preserves cached title fields; this fixes the later live-reconciliation gap. #173344 addresses a different bootstrap route-key problem that prevents session listing. The retained-pane batch in #153034 is not expanded here. The known cached-title CI failures on #163267 and #75225 can track this primary product correction without copying it into both feature branches.
Synthetic title transition
Before: the sidebar retains the conversation title while the header transiently reads New session.
After: the same scoped live session row retains the title through reconciliation.
Final-head validation and maintainer CI action
Current head:
a787b693c3. The first CI run exposed a contributor-side test fixture type error (ApplicationContext.publishGatewaySnapshot, TS2339), not an inherited failure. The test now uses the existing public pane fixture operation. The canonicaltest/tsconfig/tsconfig.core.test.ui-chat.jsongraph, the complete 29-case changed suite, targeted lint and format pass. The earlier UI-component type graph did not include this file; no coverage is claimed from that graph for this test. Production code and browser proof are unchanged. The final regression still fails on the original production code.Current-head selected CI: 39450848192 completed SUCCESS on
a787b693c3337bfb0cba958b33011e833e9e4037: 35 successful jobs, 27 skipped, zero failures; all 62 jobs terminal. The repairedcheck-test-types-core-3and finalopenclaw/ci-gatepassed. This change-selected success does not replace the required full UI run below.