Skip to content

fix: preserve conversation titles across split-pane agent switches - #157482

Merged
steipete merged 2 commits into
mainfrom
codex/fix-split-pane-titles688
Sep 24, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/fix-split-pane-titles688

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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.ts reproduced it at line 853 on exact CI merge 7efafead with 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:228 timeout 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 second board.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.

Before After
Inactive pane loses its title Both pane titles stay with their conversations

@steipete
steipete marked this pull request as ready for review September 24, 2026 18:28
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Sep 24, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 3:11 PM ET / 19:11 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 3aeeed8ba9c7f4a9eed93780f74ebfbf4f8457a1

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Direct before/after browser evidence and focused boundary coverage support a small, coherent fix with no identified patch blocker.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed chat-page binding and pane title resolution were exercised in a running Control UI with synthetic Gateway rosters matched to each agent. Inspected before/after screenshots show the inactive pane’s correct title restored while its transcript and draft remain visible; focused tests supplement rename and reconnect coverage. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed chat-page binding and pane title resolution were exercised in a running Control UI with synthetic Gateway rosters matched to each agent. Inspected before/after screenshots show the inactive pane’s correct title restored while its transcript and draft remain visible; focused tests supplement rename and reconnect coverage. No stored-data contract changes.
Evidence reviewed 8 items Current main still has the reported fallback: The fetched main revision resolves a title even when the active roster lacks the pane’s row, then passes that fallback to the pane.
Latest release retains the fallback: The tagged v2026.9.6 source also passes the unconditional fallback title; the branch’s correction has not shipped there.
Pane-scoped title binding: The introduced page binding supplies a presentation title only when it finds a matching session row, leaving absent rows to the pane’s own metadata.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +9, Tests +171, Docs 0. Total +180 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 4 21 12 +9
Tests 5 189 18 +171
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 211 31 +180

Review metrics

Metric Value Why it matters
Production and test LOC production +21/−12; tests and support +189/−18 The small production change shares title precedence across the header and menu; most added lines exercise agent switching and reconnect behavior.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The wrong title is visible in cross-agent split chats, while the conversation and unsent draft remain usable.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed chat-page binding and pane title resolution were exercised in a running Control UI with synthetic Gateway rosters matched to each agent. Inspected before/after screenshots show the inactive pane’s correct title restored while its transcript and draft remain visible; focused tests supplement rename and reconnect coverage. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed chat-page binding and pane title resolution were exercised in a running Control UI with synthetic Gateway rosters matched to each agent. Inspected before/after screenshots show the inactive pane’s correct title restored while its transcript and draft remain visible; focused tests supplement rename and reconnect coverage. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed chat-page binding and pane title resolution were exercised in a running Control UI with synthetic Gateway rosters matched to each agent. Inspected before/after screenshots show the inactive pane’s correct title restored while its transcript and draft remain visible; focused tests supplement rename and reconnect coverage. No stored-data contract changes.

Evidence

What I checked:

  • Current main still has the reported fallback: The fetched main revision resolves a title even when the active roster lacks the pane’s row, then passes that fallback to the pane. (ui/src/pages/chat/chat-page-pane-render.ts:91, 2c946b584e9d)
  • Latest release retains the fallback: The tagged v2026.9.6 source also passes the unconditional fallback title; the branch’s correction has not shipped there. (ui/src/pages/chat/chat-page-pane-render.ts:91, eb377ac59e6c)
  • Pane-scoped title binding: The introduced page binding supplies a presentation title only when it finds a matching session row, leaving absent rows to the pane’s own metadata. (ui/src/pages/chat/chat-page-pane-render.ts:91, 3aeeed8ba9c7)
  • Shared header and menu resolution: The pane uses the accepted presentation title first, then the existing session display-name resolver for its scoped row; the header and menu call that resolution. (ui/src/pages/chat/chat-pane-session-menu.ts:47, 3aeeed8ba9c7)
  • Regression coverage: Mounted-pane cases cover agent selection, a cross-agent title update, rename publication, reconnect precedence, and catalog-name precedence. (ui/src/pages/chat/chat-pane-session-menu.test.ts:37, 3aeeed8ba9c7)
  • Inspected browser proof: The PR body’s prepared before/after screenshots show the same split view: the inactive pane changes from “New session” to “Fresh pane isolation check,” with its transcript and unsent draft still visible. The body describes a running Control UI flow using request-matched synthetic Gateway rosters.

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Shakker: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-24T18:54:01.483Z sha 435cc63 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit a0905df into main Sep 24, 2026
123 of 125 checks passed
@steipete
steipete deleted the codex/fix-split-pane-titles688 branch September 24, 2026 19:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 24, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* 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]>
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…penclaw#157482)

* fix: preserve conversation titles across split-pane agent switches

* fix: preserve accepted roster title precedence
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant