Repository navigation
fix: preserve conversation titles across split-pane agent switches - #157482
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 24, 2026, 3:11 PM ET / 19:11 UTC (Revision 2). ClawSweeper reviewWhat this changesThe Control UI now resolves each split chat pane’s header and menu title from an accepted session roster entry or that pane’s session metadata, with regression tests and documentation updated. Merge readiness✅ Ready for maintainer review Keep this PR open. Current main and the latest release still show the title fallback that causes the reported symptom. The focused correction has convincing browser proof, and this review found no actionable patch defect. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI chat page combines a split-pane layout with session rows supplied by the Gateway. Each pane uses that information to render its conversation header and menu while retaining its own transcript and draft. flowchart LR
A[Gateway session rows] --> B[Session roster]
C[Split pane session key] --> D[Page title binding]
B --> D
D --> E[Pane title resolution]
F[Pane session metadata] --> E
E --> G[Header and menu]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +9, Tests +171, Docs 0. Total +180 across 10 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Each pane should consistently show its conversation’s current name in the header and menu across agent switches, reconnects, and renames while keeping transcript and draft ownership scoped to that pane. Do we have a high-confidence way to reproduce the issue? Yes. The original-code browser screenshot shows the title loss, and current main still contains the same fallback path; this reviewer did not rerun the browser scenario. Is this the best way to solve the issue? Yes. The patch keeps accepted roster titles when available and uses existing pane-scoped metadata when they are not, without introducing another title store. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2c946b584e9d. LabelsLabel changes: No label changes. Label 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.
|
* commit 'a0905dfe5c17053a3f0ef2aa0cf8f421bce9381c': (75 commits) fix: preserve conversation titles across split-pane agent switches (#157482) test(gateway): settle resumed work before checking announcement fix(update): avoid socket-arrival assumptions in deadline tests (#157504) fix(ci): include Android Access in release coordination refactor: share LINE message context test fixtures (#157488) refactor(matrix): reuse startup verification account key (#157310) perf(config): avoid repeated environment scans during publication (#156457) chore(i18n): refresh native locales (#157495) fix(update): show quiet step progress and date recorded outcomes (#153407) feat(gateway): preserve browser sign-in requirements before connecting (#157454) test(scripts): await CLI admission fixture lifetimes (#157424) fix(ci): preserve consumer selection across core type stripes (#157373) fix(wizard): preserve typed plugin enum values (#127577) (#138090) fix(qa): title mock Code Mode fixture calls refactor: simplify SQLite worker lifecycle and test fixtures (#157458) test: prebuild run-node signal fixture (#157478) refactor(exec): reuse approval policy rule keys (#157198) fix(ci): reuse prepared runtime for changed-target E2E shards (#157365) fix(config): apply Gateway writes without waiting for file events (#157372) fix: count recorded nested tool operations once (#157438) ...
* refactor(acp): consolidate scalar runtime option validation * chore: merge main for ACP validation * commit 'a0905dfe5c17053a3f0ef2aa0cf8f421bce9381c': (75 commits) fix: preserve conversation titles across split-pane agent switches (#157482) test(gateway): settle resumed work before checking announcement fix(update): avoid socket-arrival assumptions in deadline tests (#157504) fix(ci): include Android Access in release coordination refactor: share LINE message context test fixtures (#157488) refactor(matrix): reuse startup verification account key (#157310) perf(config): avoid repeated environment scans during publication (#156457) chore(i18n): refresh native locales (#157495) fix(update): show quiet step progress and date recorded outcomes (#153407) feat(gateway): preserve browser sign-in requirements before connecting (#157454) test(scripts): await CLI admission fixture lifetimes (#157424) fix(ci): preserve consumer selection across core type stripes (#157373) fix(wizard): preserve typed plugin enum values (#127577) (#138090) fix(qa): title mock Code Mode fixture calls refactor: simplify SQLite worker lifecycle and test fixtures (#157458) test: prebuild run-node signal fixture (#157478) refactor(exec): reuse approval policy rule keys (#157198) fix(ci): reuse prepared runtime for changed-target E2E shards (#157365) fix(config): apply Gateway writes without waiting for file events (#157372) fix: count recorded nested tool operations once (#157438) ... Co-authored-by: Vincent Koc <[email protected]>
…penclaw#157482) * fix: preserve conversation titles across split-pane agent switches * fix: preserve accepted roster title precedence
…#157446) * refactor(acp): consolidate scalar runtime option validation * chore: merge main for ACP validation * commit 'a2532ef8d2eb80fd2fd391ef7ea645c051f8be9c': (75 commits) fix: preserve conversation titles across split-pane agent switches (openclaw#157482) test(gateway): settle resumed work before checking announcement fix(update): avoid socket-arrival assumptions in deadline tests (openclaw#157504) fix(ci): include Android Access in release coordination refactor: share LINE message context test fixtures (openclaw#157488) refactor(matrix): reuse startup verification account key (openclaw#157310) perf(config): avoid repeated environment scans during publication (openclaw#156457) chore(i18n): refresh native locales (openclaw#157495) fix(update): show quiet step progress and date recorded outcomes (openclaw#153407) feat(gateway): preserve browser sign-in requirements before connecting (openclaw#157454) test(scripts): await CLI admission fixture lifetimes (openclaw#157424) fix(ci): preserve consumer selection across core type stripes (openclaw#157373) fix(wizard): preserve typed plugin enum values (openclaw#127577) (openclaw#138090) fix(qa): title mock Code Mode fixture calls refactor: simplify SQLite worker lifecycle and test fixtures (openclaw#157458) test: prebuild run-node signal fixture (openclaw#157478) refactor(exec): reuse approval policy rule keys (openclaw#157198) fix(ci): reuse prepared runtime for changed-target E2E shards (openclaw#157365) fix(config): apply Gateway writes without waiting for file events (openclaw#157372) fix: count recorded nested tool operations once (openclaw#157438) ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Fixes conversation titles changing to “New session” when a split pane belonging to another agent becomes active.
User Impact
Each pane keeps its own conversation title as users switch panes or rename a session. Transcripts and unsent drafts stay with their existing panes. The existing retained-roster presentation during reconnect is preserved.
Why This Change Was Made
The page supplied every pane with a title from the active agent’s session list, including a fallback when that list omitted another agent’s conversation. The page now supplies a title only when its presentation roster contains the conversation. The pane retains that accepted presentation when present and otherwise falls back to its existing scoped metadata. Header and menu titles share this resolution; catalog names retain their priority.
Evidence
First observed through the running UI: focusing either agent made the other pane lose its known title while preserving its transcript and draft. A mounted header-boundary regression fails on the original code, and a page-binding regression covers the foreign pane omitted from the active roster. The final selected five-suite group passes all 89 cases, including a header rename through the real session mutation and list-publication owner, the actual page binding, and the existing paired-roster reconnect control. This took 18.15 seconds on the exact CI merge with the correction applied; the extended mounted and presentation cases took 429 and 12 milliseconds. The original mounted RED took 8.44 seconds.
CI exposed a title-precedence regression in the first candidate: an older explicit scoped label could hide a newer accepted roster title. The unchanged
chat-run-lifecycle.e2e.test.tsreproduced it at line 853 on exact CI merge7efafeadwith Node 24.19.0 (15 cases passed, one failed; 53.67 seconds). Removing that competing priority makes the same complete file pass 16/16 in 58.84 seconds, without changing its assertions.The first CI run consumed 17,612 summed job-seconds across 94 jobs. It also reported a separate
solo-widget-chrome.e2e.test.ts:228timeout awaiting the second board update. One diagnostic replay used the exact CI merge, original 654-file include plan and 8/8 shard, three workers, and Node 24.19.0: all 79 selected files and 375 cases passed in 312.28 seconds (target case 1.744 seconds). The trace recorded the enabled Remove click through selection, retained-owner guards, and the secondboard.update. This does not explain or fix the hosted timeout; the original failure and reproduction gap remain disclosed. No retry, longer timeout, or weaker assertion was added.UI production types and Markdown syntax passed for the initial candidate and remain valid for this narrow branch deletion. Final owning chat fixture types pass in 44.38 seconds, scoped typed lint in 8.09 seconds, and formatting, line-cap, and diff checks pass. Fresh isolated review of the complete corrected patch found no actionable P0–P2 issues.
A matched synthetic Gateway browser flow creates the split through the UI, opens another agent’s existing conversation, types an unsent Unicode draft, switches focus, and reloads. Original code loses the inactive pane’s title; the fix preserves both exact titles, transcripts, and draft. The mock uses request-matched agent rosters, matching the live failure boundary.