Repository navigation
improve(ui): unify chat side rails in a tabbed panel - #123874
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 9:44 PM ET / August 16, 2026, 01:44 UTC. ClawSweeper reviewWhat this changesThe PR replaces Chat’s separate side rails with one resizable, per-session tabbed panel and updates its migration, embedded surface handling, tests, and Control UI documentation. Merge readinessKeep open. This is a protected maintainer-owned implementation candidate for the linked unified-panel proposal; supplied recordings show the UI behavior, but the final head is unavailable in this checkout for a complete independent source review. Priority: P2 Review scores
Verification
How this fits togetherChat routes optional surfaces such as Terminal, Browser, Files, and Tasks through a persisted sidebar layout. The proposed panel centralizes those requests into one tab strip, then renders the selected embedded surface. flowchart LR
A[Chat surface request] --> B[Chat pane]
B --> C[Per-session panel layout]
C --> D[Tabbed side panel]
D --> E[Selected embedded surface]
C --> F[Persisted UI settings]
Decision needed
Why: This is a user-facing navigation and persisted-layout policy change, so its acceptance cannot be resolved from code correctness alone. Before merge
Agent review detailsSecurityNone. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Review the exact final head and its merge ref, require exact-head CI to pass, then merge only if maintainers accept the per-session layout migration as the new Control UI contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a proposed Control UI navigation model, not a report of a currently failing behavior. Is this the best way to solve the issue? Unclear: the shared panel addresses the documented multi-rail UX problem, but the final source revision is unavailable here for an independent best-fix assessment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9c6539c97533. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (19 earlier review cycles; latest 8 shown)
|
* Control UI: unify chat rails in a tabbed panel * fix(ui): compact chat side panel navigation * Polish rail separators around the active tab * Soften rail tab separators * Inset the rail tab strip from the resize handle * Remove the rail tab strip bottom rule * Add compact close controls to rail tabs * Redistribute rail tabs after closing a surface * Restore bottom docking from the rail terminal * Fade clipped rail tab labels at the edge * Add drag reordering to rail tabs * Polish terminal tab chrome * Polish rail tab close controls * Regularize rail tab separators * Space rail tabs evenly * Add feedback to inactive rail tabs * Smooth rail tab selection * Hide unavailable rail menu items * Preserve browser multi-tab entry * Support bottom-docked rail tabs * Polish rail tab sizing * Refine side panel actions * Neutralize rail empty-state icons * Separate dark rail surfaces * Fade only clipped rail tab labels * Compact rail header controls * Refine the surface picker * Raise and tighten the surface empty state * Keep Browser and Tasks in the chat topbar * Unify surface list cards * Keep embedded rails inside their dock * Reveal rail tab close actions on demand * Show full rail labels only when clipped * Let rail tabs use available space * Align chat topbar surface controls * Unify rail surface empty states * Center rail tab glyphs * Fade clipped rail labels smoothly * Keep rail tab labels visible * Tighten rail tab separator and label fade * Keep the new-tab control beside the rail tabs * Keep rail tab separators from reflowing on activation * Anchor the new-tab control outside the rail tab scroll * Scroll rail tabs at the floor instead of clipping them * Tighten spacing between rail tabs * Report an unusable terminal open response as a readable failure * Keep the terminal session menu inside the panel * Share one dock destination cluster across rails, terminal and browser * Align the terminal mini rail with its management icons * Tidy panel pickers, browser chrome and task detail retry * Type the sidebar callbacks object so tsgo:ui passes * Space out the panel picker rows * Measure tab strip edges by rect and cancel superseded installs * Validate every terminal session field and release unusable sessions * Fold the terminal rail stretch rules into one * test(ui): match rail tab checks to the tabbed panel header Anchoring the new-tab control outside the scroll area wrapped the strip in .side-panel__header-tabs, and every query written as a direct-child chain started matching nothing. The assertions did not fail loudly: they compared an empty label list, so three side-panel journeys and the background-tasks rail went red on a selector detail rather than on behaviour. Give the label query one named owner scoped to the panel's own header, so Terminal and Browser strips in the panel body stay excluded while header layout can keep moving. Freeing that width also means two short tabs now fit where they used to be squeezed, so the closing step asserts the honest invariant - a strip that fits again releases the fade - while the overflow and tooltip regime stays proven earlier in the same journey. Settle the shared side-panel helper on whichever surface renders: an empty panel offers its type list and a populated one offers the header menu, and probing before either existed left it waiting for a control that never comes. Also drop a shadowed seed binding and an unused locator that oxlint flagged in the same file. * fix(ui): adapt session discussion slot to the unified panel layout * test(ui): capture the bottom dock evidence with a resting divider * fix(ui): drop the dead previousDock toggle path * test(ui): align sibling suites with the tabbed panel decisions * fix(ui): keep narrow-pane hides above the icon-button styling cascade * fix(ui): create tooltip descriptions via ownerDocument * fix(lint): merge duplicate terminal header styles and drop dead branches * refactor(ui): extract embedded panel templates from the pane render * refactor(ui): delete rail-era dead exports * test(ui): repair type drift after the rebase * fix(ui): keep the workspace toggle module-local and settle test caps * fix(ui): give side-panel tabs their runtime and their own header actions The tabbed side panel dropped two things the old rails owned. The discussion tab lost its only runtime registration, so `openclaw-session-discussion` was never defined and the tab rendered as a permanently blank box; it now loads through the per-slot lazy runtime map like the other panel types. Panels also have no header of their own anymore, so any action on the active panel's content had to reach the shared header. The header now takes panel contributed actions instead of a discussion-only open-url special case, which brings back the side-chat "Clear thread" overflow menu — its gateway reset had no reachable entry point at all in the embedded rail. * test(ui): anchor the sidebar scroll proof to the panel host The bounding contract moved from `.sidebar-column__panel` to `.side-panel__panel`; mounting the detail panel under the removed class let it grow instead of scroll, so the test failed for its harness rather than for the behavior it guards. * refactor(ui): move side-panel wiring out of the chat render monolith `chat-pane-render.ts` crossed its line budget. The region callbacks are layout policy, so they resolve in the layout module with the pane injecting only what it owns, and the two panel-action producers collapse into the single header contribution the region consumes. * fix(ui): keep one terminal intent queue per document A session route mounts the side-panel terminal beside the shell instance kept for the bottom dock. Each owned a private action array over one sessionStorage key, so their whole-array writes erased each other's intents and a freshly mounted panel drained through a reconnect fence it never saw. The queue, its persisted record, and the fence now belong to the document; panels bind as executors while connected. The chat pane records a toggle intent where it observes it, instead of parking the raw event in memory and handing it to a panel that may not be mounted yet — a service-worker reload in that window dropped the request, thread id and all, with nothing explaining why. That makes the deferred-restore handshake dead weight, so it goes. * fix(ui): let the panel that starts a terminal intent finish it Opening a catalog terminal from a chat route mounts the side-panel terminal right after the request, which swapped the queue's executor mid-flight and stranded the in-flight action; the panel's own mount restore then opened a plain session instead. The executor that began an action stays responsible for it as long as it can still run. * test(ui): cover closed legacy side docks * refactor(ui): split side panel controllers * fix(ui): stabilize embedded panel handoffs * style(ui): format browser panel refresh * test(ui): settle catalog prepend paint incrementally * docs(ui): describe the unified chat side panel * test(ui): settle catalog clock transitions --------- Co-authored-by: Jason (Json) <[email protected]>
Continue the y01 largest-owner, export/caller and duplicate-helper audit. Delegate composer mounting to the canonical interop boundary while retaining field equality, keyed renderer identity and foreground picker cleanup. Remove test-only panel refresh methods and commit counters; exercise the actual view, polling and committed DOM instead. Trust admitted immutable composer metadata and the full tool-stream owner contract. Narrow sidebar traversal to its normalized single column and simplify browser/Gateway realtime decoding. Both shipping Lit/Solid paths and rendered markup remain unchanged. No config, protocol, storage, dependency, security-boundary or Phase E backend changes. Best-effort tradeoffs accepted - Malformed internal tool-stream hosts: #158032 introduced shape probes during a bookkeeping refactor, not a human incident. Real owners have complete state; a broken internal caller now fails rather than silently skipping cleanup. #125197's human steering/order report still justifies the unchanged causal reconciliation algorithm; no report ties malformed-host probes to that bug. - In-place mutation of admitted draft metadata: #158335 added reply persistence and #166682 moved the annotation copies, without a mutation incident. Actual editors replace records/arrays. A future in-place mutator must follow that contract or it may alter a pending snapshot. Durable receipts/revisions stay. - Non-JSON relay events: #146676 added transport machinery without a human cyclic-frame incident. Frames already crossed JSON decoding; an impossible internal cycle or BigInt now throws. Activation count/byte bounds remain. - Older Gateway close-disposition support: #171377 added a compatibility path, but UI/Gateway ship together and the current server advertises the field. Unsupported skew now rejects. Accepted-answer durability from the real human report #171310 and fixes #171377/#172159 remains intact. - Blob/typed-array/arbitrary Google message representations: c399fb7 added these alternate decoder branches without a linked human report. The browser WebSocket is configured as arraybuffer before listeners. Unsupported synthetic representations are ignored; actual strings/ArrayBuffers still decode, and removal of the artificial await needs no post-await stale check. - Extra sidebar columns after normalization: #123874 flattened the flexible #113712 layout to one tabbed panel. A broken internal producer is no longer searched as a multi-column layout; persisted legacy flattening still runs. The earlier commit records the original eight accepted best-effort scenarios. Coverage and remaining justified owners are logged in .local/y01-ledger.md for coordinator bundling. Combined candidate removes 416 net production lines against 5716bb1 (tests/support excluded).
Continue the y01 largest-owner, export/caller and duplicate-helper audit. Delegate composer mounting to the canonical interop boundary while retaining field equality, keyed renderer identity and foreground picker cleanup. Remove test-only panel refresh methods and commit counters; exercise the actual view, polling and committed DOM instead. Trust admitted immutable composer metadata and the full tool-stream owner contract. Narrow sidebar traversal to its normalized single column and simplify browser/Gateway realtime decoding. Both shipping Lit/Solid paths and rendered markup remain unchanged. No config, protocol, storage, dependency, security-boundary or Phase E backend changes. Best-effort tradeoffs accepted - Malformed internal tool-stream hosts: #158032 introduced shape probes during a bookkeeping refactor, not a human incident. Real owners have complete state; a broken internal caller now fails rather than silently skipping cleanup. #125197's human steering/order report still justifies the unchanged causal reconciliation algorithm; no report ties malformed-host probes to that bug. - In-place mutation of admitted draft metadata: #158335 added reply persistence and #166682 moved the annotation copies, without a mutation incident. Actual editors replace records/arrays. A future in-place mutator must follow that contract or it may alter a pending snapshot. Durable receipts/revisions stay. - Non-JSON relay events: #146676 added transport machinery without a human cyclic-frame incident. Frames already crossed JSON decoding; an impossible internal cycle or BigInt now throws. Activation count/byte bounds remain. - Older Gateway close-disposition support: #171377 added a compatibility path, but UI/Gateway ship together and the current server advertises the field. Unsupported skew now rejects. Accepted-answer durability from the real human report #171310 and fixes #171377/#172159 remains intact. - Blob/typed-array/arbitrary Google message representations: c399fb7 added these alternate decoder branches without a linked human report. The browser WebSocket is configured as arraybuffer before listeners. Unsupported synthetic representations are ignored; actual strings/ArrayBuffers still decode, and removal of the artificial await needs no post-await stale check. - Extra sidebar columns after normalization: #123874 flattened the flexible #113712 layout to one tabbed panel. A broken internal producer is no longer searched as a multi-column layout; persisted legacy flattening still runs. The earlier commit records the original eight accepted best-effort scenarios. Coverage and remaining justified owners are logged in .local/y01-ledger.md for coordinator bundling. Combined candidate removes 416 net production lines against 5716bb1 (tests/support excluded).
* refactor(ui): consolidate chat owners and remove obsolete adapters Keep both live rendering routes and the existing DOM, text, persisted shapes, security boundaries, draft durability, and ordinary session concurrency. Consolidate effective-tool loading, header registration, transcript refs, history target capture, and PCM output ownership. Remove unused adapters after their completed native-control cutovers and redundant internal work. Best-effort tradeoffs accepted: - Pending-page/live-update overlap: #145240 records synthetic request-order proof, not a cited human incident. Displayed disposition can briefly lag until the next ordinary refresh; durable receipts remain authoritative. - Synchronous rail self-retirement: #153245 records a synthetic benchmark, not a cited human incident. Focus restoration is best effort in that case. - Obsolete intersection callbacks: #142227 records synthetic E2E proof, not a cited stale-delivery incident. Target maps ignore retired rows; a late callback can request redundant layout. - Obsolete mutation callbacks: the same #142227 provenance. Native disconnect remains; a late delivery can resample the current scroller. - Obsolete resize callbacks: #162617 records synthetic performance traces, not a cited stale-delivery incident. Native cleanup remains; a late callback can sample current layout. - Wrong bundled Gateway PR identity: #148070/#147952 describe the feature, not a wrong-target incident. The producer constructs the exact requested target; a contract violation now displays its returned result. - Cross-tab prefetch election: #125128 covered a retired five-session idle sweep with synthetic performance proof. Two tabs can now redundantly read one explicitly hover/focus-intended target; per-tab limits remain. - Malformed internal sidebar maps: #113712 introduced feature normalization, not a cited incident. Settings validates load/save and all callers use that output; impossible malformed typed values are not repaired at every update. * refactor(ui): consolidate chat lifecycle and internal state paths Continue the y01 largest-owner, export/caller and duplicate-helper audit. Delegate composer mounting to the canonical interop boundary while retaining field equality, keyed renderer identity and foreground picker cleanup. Remove test-only panel refresh methods and commit counters; exercise the actual view, polling and committed DOM instead. Trust admitted immutable composer metadata and the full tool-stream owner contract. Narrow sidebar traversal to its normalized single column and simplify browser/Gateway realtime decoding. Both shipping Lit/Solid paths and rendered markup remain unchanged. No config, protocol, storage, dependency, security-boundary or Phase E backend changes. Best-effort tradeoffs accepted - Malformed internal tool-stream hosts: #158032 introduced shape probes during a bookkeeping refactor, not a human incident. Real owners have complete state; a broken internal caller now fails rather than silently skipping cleanup. #125197's human steering/order report still justifies the unchanged causal reconciliation algorithm; no report ties malformed-host probes to that bug. - In-place mutation of admitted draft metadata: #158335 added reply persistence and #166682 moved the annotation copies, without a mutation incident. Actual editors replace records/arrays. A future in-place mutator must follow that contract or it may alter a pending snapshot. Durable receipts/revisions stay. - Non-JSON relay events: #146676 added transport machinery without a human cyclic-frame incident. Frames already crossed JSON decoding; an impossible internal cycle or BigInt now throws. Activation count/byte bounds remain. - Older Gateway close-disposition support: #171377 added a compatibility path, but UI/Gateway ship together and the current server advertises the field. Unsupported skew now rejects. Accepted-answer durability from the real human report #171310 and fixes #171377/#172159 remains intact. - Blob/typed-array/arbitrary Google message representations: c399fb7 added these alternate decoder branches without a linked human report. The browser WebSocket is configured as arraybuffer before listeners. Unsupported synthetic representations are ignored; actual strings/ArrayBuffers still decode, and removal of the artificial await needs no post-await stale check. - Extra sidebar columns after normalization: #123874 flattened the flexible #113712 layout to one tabbed panel. A broken internal producer is no longer searched as a multi-column layout; persisted legacy flattening still runs. The earlier commit records the original eight accepted best-effort scenarios. Coverage and remaining justified owners are logged in .local/y01-ledger.md for coordinator bundling. Combined candidate removes 416 net production lines against 5716bb1 (tests/support excluded). * test(ui): align talk fixtures with transport contracts Require detach disposition when append rejection closes the relay. The UI and Gateway ship together; the prior fallback's omitted field is no longer valid. Close the Google socket before start settles when testing startup rejection. Synchronous frame decoding removed the fixture's former artificial decode microtask; waiting one turn now settles start before the close. Preserve all error, callback, microphone, socket and timer assertions. No production change or new best-effort tradeoff. The preceding commit records the accepted transport assumptions and their provenance. * refactor(agents): consolidate runner lifecycle plumbing Share lifecycle hook capture, native policy loops and gated diagnostic content construction. Combine initial session metadata updates through the existing writer and reuse the persisted-input notifier. Keep delivery evidence in a typed WeakMap without mutating or wrapping frozen error objects. Security checks, public contracts, transcript durability, parallel tool correlation and ordinary shutdown settlement remain. No schema, configuration, dependency, protocol or public SDK signature changes. The standalone session memory backend and its lifecycle machinery are untouched. Best-effort tradeoffs accepted: - Reusing the same engine during active disposal no longer has a WeakRef tombstone rejection. #168789 cites synthetic #143426/#143592 disposal cases, not a human production report. Misuse may fail in the engine normally; closing admission and actual resource settlement remain. - Fresh bounded primitive diagnostics are not redundantly cloned before publication (#108304). Listener egress still isolates its payloads. - Internal delivery-evidence readers receive the attachment-time snapshot, not another defensive copy (0ea0807). No human mutation report was found; unsupported internal mutation could affect a later reader. Confirmed-send suppression and attachment-time copying remain. Lane y08: 105 net production lines removed (165 added / 270 removed), excluding tests; tests add 67 net lines. Below-500 branch-only handoff for coordinator bundling after recent, older and largest-owner audits found no further sound candidate. No PR or hosted-CI success is claimed. Proof: production and affected test types, changed-file lint/format, runtime and madge cycles (zero), lint-suppressions (3/3), and independent P2 review passed. Maintenance resources (6/6), CLI spawn (40/40), and restart recovery (33/33) completed. Support proof was stopped after ten minutes without an assertion result; Gateway cancellation timed out during startup/imports with no assertion result, and deletion was not reached. CLI reliability was only partially exercised in an earlier interrupted selection. These are unresolved proof gaps, not attributed main failures. * refactor(agents): remove duplicate runner preparation work Trust canonical inline model modalities and waiter-owned cleanup. Fold the sole-caller HTTP setup wrapper and stage warning predicate into their owners, and remove an unused diagnostic clock option. This pass removes 32 net production lines; the branch total is 137. Core and affected test types, lint, format, cycle checks, stage timing and suppression tests pass. Independent P2 review is clean. Wider focused runtime selections remain incomplete under host load; coordinator bundling needs broad CI proof. * refactor: withdraw inconclusive stream cleanup and repair bundle ratchets Retain current main stream-state contracts after the UI failure replay could not establish an exact-main comparison. Shrink the delivery-evidence assertion allowance and keep its frozen/primitive regression intact in a focused unit file.
…w#173015) * refactor(ui): consolidate chat owners and remove obsolete adapters Keep both live rendering routes and the existing DOM, text, persisted shapes, security boundaries, draft durability, and ordinary session concurrency. Consolidate effective-tool loading, header registration, transcript refs, history target capture, and PCM output ownership. Remove unused adapters after their completed native-control cutovers and redundant internal work. Best-effort tradeoffs accepted: - Pending-page/live-update overlap: openclaw#145240 records synthetic request-order proof, not a cited human incident. Displayed disposition can briefly lag until the next ordinary refresh; durable receipts remain authoritative. - Synchronous rail self-retirement: openclaw#153245 records a synthetic benchmark, not a cited human incident. Focus restoration is best effort in that case. - Obsolete intersection callbacks: openclaw#142227 records synthetic E2E proof, not a cited stale-delivery incident. Target maps ignore retired rows; a late callback can request redundant layout. - Obsolete mutation callbacks: the same openclaw#142227 provenance. Native disconnect remains; a late delivery can resample the current scroller. - Obsolete resize callbacks: openclaw#162617 records synthetic performance traces, not a cited stale-delivery incident. Native cleanup remains; a late callback can sample current layout. - Wrong bundled Gateway PR identity: openclaw#148070/openclaw#147952 describe the feature, not a wrong-target incident. The producer constructs the exact requested target; a contract violation now displays its returned result. - Cross-tab prefetch election: openclaw#125128 covered a retired five-session idle sweep with synthetic performance proof. Two tabs can now redundantly read one explicitly hover/focus-intended target; per-tab limits remain. - Malformed internal sidebar maps: openclaw#113712 introduced feature normalization, not a cited incident. Settings validates load/save and all callers use that output; impossible malformed typed values are not repaired at every update. * refactor(ui): consolidate chat lifecycle and internal state paths Continue the y01 largest-owner, export/caller and duplicate-helper audit. Delegate composer mounting to the canonical interop boundary while retaining field equality, keyed renderer identity and foreground picker cleanup. Remove test-only panel refresh methods and commit counters; exercise the actual view, polling and committed DOM instead. Trust admitted immutable composer metadata and the full tool-stream owner contract. Narrow sidebar traversal to its normalized single column and simplify browser/Gateway realtime decoding. Both shipping Lit/Solid paths and rendered markup remain unchanged. No config, protocol, storage, dependency, security-boundary or Phase E backend changes. Best-effort tradeoffs accepted - Malformed internal tool-stream hosts: openclaw#158032 introduced shape probes during a bookkeeping refactor, not a human incident. Real owners have complete state; a broken internal caller now fails rather than silently skipping cleanup. openclaw#125197's human steering/order report still justifies the unchanged causal reconciliation algorithm; no report ties malformed-host probes to that bug. - In-place mutation of admitted draft metadata: openclaw#158335 added reply persistence and openclaw#166682 moved the annotation copies, without a mutation incident. Actual editors replace records/arrays. A future in-place mutator must follow that contract or it may alter a pending snapshot. Durable receipts/revisions stay. - Non-JSON relay events: openclaw#146676 added transport machinery without a human cyclic-frame incident. Frames already crossed JSON decoding; an impossible internal cycle or BigInt now throws. Activation count/byte bounds remain. - Older Gateway close-disposition support: openclaw#171377 added a compatibility path, but UI/Gateway ship together and the current server advertises the field. Unsupported skew now rejects. Accepted-answer durability from the real human report openclaw#171310 and fixes openclaw#171377/openclaw#172159 remains intact. - Blob/typed-array/arbitrary Google message representations: 2a4c20f added these alternate decoder branches without a linked human report. The browser WebSocket is configured as arraybuffer before listeners. Unsupported synthetic representations are ignored; actual strings/ArrayBuffers still decode, and removal of the artificial await needs no post-await stale check. - Extra sidebar columns after normalization: openclaw#123874 flattened the flexible openclaw#113712 layout to one tabbed panel. A broken internal producer is no longer searched as a multi-column layout; persisted legacy flattening still runs. The earlier commit records the original eight accepted best-effort scenarios. Coverage and remaining justified owners are logged in .local/y01-ledger.md for coordinator bundling. Combined candidate removes 416 net production lines against 7f7310a (tests/support excluded). * test(ui): align talk fixtures with transport contracts Require detach disposition when append rejection closes the relay. The UI and Gateway ship together; the prior fallback's omitted field is no longer valid. Close the Google socket before start settles when testing startup rejection. Synchronous frame decoding removed the fixture's former artificial decode microtask; waiting one turn now settles start before the close. Preserve all error, callback, microphone, socket and timer assertions. No production change or new best-effort tradeoff. The preceding commit records the accepted transport assumptions and their provenance. * refactor(agents): consolidate runner lifecycle plumbing Share lifecycle hook capture, native policy loops and gated diagnostic content construction. Combine initial session metadata updates through the existing writer and reuse the persisted-input notifier. Keep delivery evidence in a typed WeakMap without mutating or wrapping frozen error objects. Security checks, public contracts, transcript durability, parallel tool correlation and ordinary shutdown settlement remain. No schema, configuration, dependency, protocol or public SDK signature changes. The standalone session memory backend and its lifecycle machinery are untouched. Best-effort tradeoffs accepted: - Reusing the same engine during active disposal no longer has a WeakRef tombstone rejection. openclaw#168789 cites synthetic openclaw#143426/openclaw#143592 disposal cases, not a human production report. Misuse may fail in the engine normally; closing admission and actual resource settlement remain. - Fresh bounded primitive diagnostics are not redundantly cloned before publication (openclaw#108304). Listener egress still isolates its payloads. - Internal delivery-evidence readers receive the attachment-time snapshot, not another defensive copy (8c995fb). No human mutation report was found; unsupported internal mutation could affect a later reader. Confirmed-send suppression and attachment-time copying remain. Lane y08: 105 net production lines removed (165 added / 270 removed), excluding tests; tests add 67 net lines. Below-500 branch-only handoff for coordinator bundling after recent, older and largest-owner audits found no further sound candidate. No PR or hosted-CI success is claimed. Proof: production and affected test types, changed-file lint/format, runtime and madge cycles (zero), lint-suppressions (3/3), and independent P2 review passed. Maintenance resources (6/6), CLI spawn (40/40), and restart recovery (33/33) completed. Support proof was stopped after ten minutes without an assertion result; Gateway cancellation timed out during startup/imports with no assertion result, and deletion was not reached. CLI reliability was only partially exercised in an earlier interrupted selection. These are unresolved proof gaps, not attributed main failures. * refactor(agents): remove duplicate runner preparation work Trust canonical inline model modalities and waiter-owned cleanup. Fold the sole-caller HTTP setup wrapper and stage warning predicate into their owners, and remove an unused diagnostic clock option. This pass removes 32 net production lines; the branch total is 137. Core and affected test types, lint, format, cycle checks, stage timing and suppression tests pass. Independent P2 review is clean. Wider focused runtime selections remain incomplete under host load; coordinator bundling needs broad CI proof. * refactor: withdraw inconclusive stream cleanup and repair bundle ratchets Retain current main stream-state contracts after the UI failure replay could not establish an exact-main comparison. Shrink the delivery-evidence assertion allowance and keep its frozen/primitive regression intact in a focused unit file.
Closes #123286
What Problem This Solves
The chat currently gives each lateral surface its own rail column. Opening several surfaces at once multiplies headers and resize boundaries, consumes conversation width, and becomes difficult to navigate on smaller screens.
Why This Change Was Made
This PR replaces the multi-column model with one full-height, resizable side panel whose open surfaces are represented as tabs. The shared panel owns its tab strip, type picker, empty states, expand/minimize controls, and resize boundary; Review, Terminal, Browser, Files, Side chat, Tasks, Desktop, Discussion, and Board chat use that same path when available.
Tab order, active tab, width, visibility, and expanded state persist per session through the existing sidebar layout settings. Minimizing preserves the tabs; closing the last tab leaves the panel open on the type selector; reopening a session restores its persisted panel state. Legacy persisted multi-column layouts normalize into one ordered right-side panel.
The type picker only advertises existing bindings:
Ctrl+\`` for Terminal and⇧⌘B` for Files. No new shortcuts are introduced.Pathfinder fix: terminal open contract
While pairing on the tab strip, the Terminal tab could render a raw JavaScript error as the panel's entire contents:
Cannot read properties of undefined (reading 'split'). The RPC boundary inui/src/components/terminal/terminal-connection.tscast theterminal.openresponse withclient.request<TerminalOpenResult>(...)without validating it, so a response missingshellreachedshellBasename()and the resulting TypeError surfaced through theopenSessionNowcatch aserror.message. The protocol requiresshell: NonEmptyString(packages/gateway-protocol/src/schema/terminal.ts:35), so that boundary now validatessessionIdandshelland raises a typedTerminalOpenUnusableSessionError, which the panel maps to the existingterminal.unavailablecopy. Bisecting against the pre-pairing head with an identical fixture reproduces the crash unchanged, so it predates this PR; it lands here because the pairing pass surfaced it.User Impact
Users can keep the conversation visible while switching among side-panel tabs, close tabs independently, add available types from the
+menu, resize or expand the single panel, and use the same navigation model on desktop and mobile. Session Companion is now a regular Side chat tab rather than a separate rail.Evidence
The screenshots use the canonical Control UI E2E harness and mock gateway (
ui/src/test-helpers/control-ui-e2e.ts), with the populated scenario declared inui/src/e2e/chat-rail-columns.e2e.test.ts. Each crop is the union of the chat header, transcript, and side-panel bounds from the tested page.Mobile expanded state:
Validation on commit
34d84e48999d166b03ffc9b80f95c082a3c53ea2:Follow-up pairing pass (head
e8f5e4cdf01)Interactive design pass with the maintainer against the mocked Control UI, verified visually at every step:
tasks.getfails, instead of dead-ending whenever the Tasks tab is closed.tsgo:uipasses; the five type errors it reported were already present at the branch basea6724b3316dand are fixed here.Rebase refresh (head
5ed8c0914d2)Rebased onto current
main, carrying the branch over the session-catalog ownership refactor (#123899): the session discussion logic moved to the inheritedChatPaneDiscussionmodule and was adapted to the unified panel layout, the per-surface terminal button stays deleted (catalog terminal opens keep the agent id through the sidebar callers and the embedded panel binding), and the catalog pane tests follow main's split intochat-pane-catalog.test.ts. Every screenshot above was regenerated by the same harness at this head, now with 8 states per theme plus mobile; the bottom-dock scene blurs the freshly dragged divider so the frame shows its resting state. Focused validation at this head: 79 chat-pane unit tests, 5/5 rail E2E cases, and a clean lint pass on the touched files.Review finding disposition (head
965d375ec00)The remaining review finding — seed the new per-session panel from the legacy global Browser/Desktop dock records on upgrade — is intentionally skipped. The legacy records are transient UI preference, not data: nothing is lost on upgrade, the Browser surface stays one click away in the chat topbar action this PR deliberately keeps, and Desktop remains in the panel's add-tab menu. Importing the old global open state into every new session layout would also resurface panels in sessions that never used them. The CI fallout from the rebase (sibling suites asserting the pre-unification dock model, lint caps, and dead rail-era exports) was repaired on this head instead: 9k focused UI assertions, the rail E2E matrix, and the UI/type shards all pass locally.