Skip to content

refactor(ui): simplify chat header actions - #137688

Closed
Patrick-Erichsen wants to merge 1 commit into
codex/expand-sidebar-dashboardsfrom
codex/simplify-chat-header-actions
Closed

Patrick-Erichsen wants to merge 1 commit into
codex/expand-sidebar-dashboardsfrom
codex/simplify-chat-header-actions

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The chat header duplicates Background tasks and Open split view even though both actions are already available from the session ellipsis menu.

Why This Change Was Made

  • Removes the standalone Background tasks header shortcut and its now-unused renderer.
  • Removes the standalone Open split view shortcut.
  • Keeps both actions in the session menu and tests their activation paths.

User Impact

The chat header is less crowded without losing either action.

Evidence

  • pnpm exec vitest run --config test/vitest/vitest.ui.config.ts ui/src/pages/chat/chat-pane-terminal.test.ts ui/src/pages/chat/components/chat-pane-header.test.ts
  • node scripts/check-changed.mjs
  • pnpm ui:build
  • Autoreview: scoped clean, no accepted/actionable findings.
  • Visual proof: pending because the required Codex in-app Browser backend is not currently registered; the local mock preview remains available at http://127.0.0.1:5187/chat/main.

Stack

  1. feat: add first-class dashboard command #137685
  2. feat(ui): expand dashboard sessions from sidebar #137687
  3. This PR

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Before

The existing header duplicates Background tasks and Open split view next to the ellipsis menu:

Existing duplicated header actions

After proof will be added once the Codex in-app Browser backend is registered.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 4:40 AM ET / 08:40 UTC.

ClawSweeper review

What this changes

Removes the standalone Background tasks and Open split view buttons from the chat header while retaining their session-menu actions and updating tests.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: this useful cleanup is not implemented on current main, and both prior findings remain unresolved.

Likely related people: Patrick-Erichsen and Peter Steinberger, low-confidence routing candidates from prior area work.

Priority: P2
Reviewed head: f403b04a85d56d44eed382f18409972f68aa0cd2

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful simplification, but the catalog entry-point regression and inaccurate guide prevent a clean correctness verdict.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER classification exempts ordinary contributor proof. The captured discussion reports before/after isolated-gateway screenshots of the regular-chat header and retained menus; attachment access failed here, so those images were not independently inspected, and they do not address the catalog finding.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER classification exempts ordinary contributor proof. The captured discussion reports before/after isolated-gateway screenshots of the regular-chat header and retained menus; attachment access failed here, so those images were not independently inspected, and they do not address the catalog finding.
Evidence reviewed 10 items Pinned introduction and clean checkout: The complete local base-to-head diff removes both shortcuts and changes only the five supplied UI files. HEAD matches the pinned original head; git diff --check passed and the checkout remained clean. The stale test merge was not used.
Catalog header loses its split entry point: The retained Layout action is rendered only inside a session menu guarded by row && this.state. Catalog conversations can have no matching session row; removing the standalone control leaves those headers without a Split View entry point.
Caller and layout owner: Wide single-pane chat supplies onOpenSplitView without excluding catalog conversations. Split-right/down callbacks are supplied only after split mode starts. chat-page-pane-render.ts forwards these callbacks, and chat-pane-layout-render.ts passes the selected session into the header.
Findings 2 actionable findings [P2] Retain Split View for catalog chats
[P3] Update the documented Tasks and Split View entry points
Security None None.

How this fits together

The Control UI chat header receives the selected conversation and callbacks from the chat page. It exposes actions that open task panels or change the conversation layout.

flowchart TD
  A[Selected conversation] --> B[Chat page layout callbacks]
  B --> C[Chat header]
  C --> D{Session row available?}
  D -->|Yes| E[Session menu]
  E --> F[Tasks panel or split view]
  D -->|No| G[No session menu]
  G --> H[Split View header action missing]
Loading

Before merge

  • Retain Split View for catalog chats (P2) - The prior finding remains unresolved. For a wide single-pane catalog conversation without a session row, chat-page.ts:618 supplies onOpenSplitView, but chat-pane-header.ts:469 omits the session menu. Removing this direct control therefore removes that header's split entry point; split-right/down controls exist only after split mode starts. Retain an opener when the session menu is absent and cover its activation.
  • Update the documented Tasks and Split View entry points (P3) - The prior documentation finding also remains unresolved. Removing these shortcuts makes the guide's title-bar Tasks toggle, visible running-count badge, and standalone Split View instructions inaccurate. Describe Ellipsis → Panels and Ellipsis → Layout, including the retained catalog entry point after repair.
  • Resolve merge risk (P1) - Merging the unconditional Split View removal would eliminate an existing header entry point for catalog conversations without a session row.
  • Complete next step (P2) - Restore and test Split View access when no session menu exists, and update the Control UI guide for the retained Tasks and Split View entry points.

Findings

  • [P2] Retain Split View for catalog chats — ui/src/pages/chat/components/chat-pane-header.ts:529-533
  • [P3] Update the documented Tasks and Split View entry points — docs/web/control-ui.md:770
Agent review details

Security

None.

PR surface

Source -104, Tests +17. Total -87 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 281 385 -104
Tests 2 20 3 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 301 388 -87

Review metrics

Metric Value Why it matters
Production versus test LOC Production net −104; tests net +17 Production shrink includes substantial template reflow; the functional reduction removes shortcut rendering without adding configuration or API surface.

Mantis proof suggestion

A web UI chat interaction capture would directly verify the catalog entry point that the supplied regular-chat evidence does not exercise. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis verify Split View access from a wide single-pane catalog conversation without a session row, compare it with a regular chat's Layout menu, and return redacted screenshots and interaction results.

Merge-risk options

Maintainer options:

  1. Preserve access when the menu is absent (recommended)
    Keep a conditional split opener for headers without a session menu and cover its activation while preserving the simplified regular-chat header.

Technical review

Best possible solution:

Use the existing session menu for regular chats, retain the split opener where that menu is absent, and document the resulting entry points.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: render a connected, wide, single-pane catalog conversation without a session row; the PR removes its direct split opener while suppressing the replacement menu. No runtime reproduction was executed.

Is this the best way to solve the issue?

No, the unconditional removal is too broad: reusing the existing menu is appropriate for regular chats, but retaining the opener only when that menu is absent preserves access without introducing another menu implementation.

Full review comments:

  • [P2] Retain Split View for catalog chats — ui/src/pages/chat/components/chat-pane-header.ts:529-533
    The prior finding remains unresolved. For a wide single-pane catalog conversation without a session row, chat-page.ts:618 supplies onOpenSplitView, but chat-pane-header.ts:469 omits the session menu. Removing this direct control therefore removes that header's split entry point; split-right/down controls exist only after split mode starts. Retain an opener when the session menu is absent and cover its activation.
    Confidence: 0.99
  • [P3] Update the documented Tasks and Split View entry points — docs/web/control-ui.md:770
    The prior documentation finding also remains unresolved. Removing these shortcuts makes the guide's title-bar Tasks toggle, visible running-count badge, and standalone Split View instructions inaccurate. Describe Ellipsis → Panels and Ellipsis → Layout, including the retained catalog entry point after repair.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b22ebb1b509c.

Labels

Label justifications:

  • P2: This is a bounded UI cleanup with a concrete catalog-navigation regression, rather than an urgent core workflow failure.
  • merge-risk: 🚨 compatibility: The proposed removal leaves existing catalog-chat headers without their Split View entry point because those conversations lack the replacement session menu.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied MEMBER classification exempts ordinary contributor proof. The captured discussion reports before/after isolated-gateway screenshots of the regular-chat header and retained menus; attachment access failed here, so those images were not independently inspected, and they do not address the catalog finding.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The supplied MEMBER classification exempts ordinary contributor proof. The captured discussion reports before/after isolated-gateway screenshots of the regular-chat header and retained menus; attachment access failed here, so those images were not independently inspected, and they do not address the catalog finding.

Evidence

What I checked:

  • Pinned introduction and clean checkout: The complete local base-to-head diff removes both shortcuts and changes only the five supplied UI files. HEAD matches the pinned original head; git diff --check passed and the checkout remained clean. The stale test merge was not used. (f403b04a85d5)
  • Catalog header loses its split entry point: The retained Layout action is rendered only inside a session menu guarded by row && this.state. Catalog conversations can have no matching session row; removing the standalone control leaves those headers without a Split View entry point. (ui/src/pages/chat/chat-pane-header.ts:469, f403b04a85d5)
  • Caller and layout owner: Wide single-pane chat supplies onOpenSplitView without excluding catalog conversations. Split-right/down callbacks are supplied only after split mode starts. chat-page-pane-render.ts forwards these callbacks, and chat-pane-layout-render.ts passes the selected session into the header. (ui/src/pages/chat/chat-page.ts:618, f403b04a85d5)
  • Regular and compact menu coverage: The changed integration test supplies a normal session row and invokes the retained Tasks and Split View callbacks. Existing menu tests cover desktop and compact action dispatch; header tests explicitly recognize catalog rendering without a session menu, but do not cover its split opener. (ui/src/pages/chat/chat-pane-terminal.test.ts:277, f403b04a85d5)
  • Documentation still describes removed controls: The Control UI guide describes a title-bar Tasks toggle with a running-count badge and a standalone Split View action beside the other toggles. Neither instruction is updated by this PR. Public docs: docs/web/control-ui.md. (docs/web/control-ui.md:770, f403b04a85d5)
  • Current-main necessity and release check: Current main still contains both standalone controls. Its two header files are identical to the pinned PR base, establishing that the findings concern introduced removals rather than base drift. The latest-release tree was available, but its source blobs were unavailable; no shipped-version regression claim is made. (ui/src/pages/chat/chat-pane-header.ts:551, b22ebb1b509c)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Restore catalog/no-session Split View access and cover activation while retaining the simplified regular-chat header.
  • Update the Control UI guide to describe the retained menu locations.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-04T01:49:25.117Z sha c3fdc8f :: blocked before merge. :: [P2] Retain Open split view for catalog chats
  • reviewed 2026-09-04T03:05:05.624Z sha edbe56e :: blocked before merge. :: [P2] Retain Open split view for catalog chats
  • reviewed 2026-09-04T03:42:06.608Z sha b8581d4bd8313406ac03445009ad5891337e2b88 :: blocked before merge. :: [P2] Retain Open split view for catalog chats
  • reviewed 2026-09-04T03:58:13.714Z sha 6797528 :: blocked before merge. :: [P2] Retain Open split view for catalog chats
  • reviewed 2026-09-04T05:04:53.718Z sha f151dd1e8c8eecdbd7c50b339b2338fd6f24e477 :: blocked before merge. :: [P2] Retain Open split view for catalog chats
  • reviewed 2026-09-04T05:37:51.145Z sha 4bb0cee :: blocked before merge. :: [P2] Retain Open split view for catalog chats
  • reviewed 2026-09-04T06:56:50.574Z sha 66f1b41 :: blocked before merge. :: [P2] Retain Split View for catalog chats
  • reviewed 2026-09-04T07:59:20.341Z sha add705c :: blocked before merge. :: [P2] Retain Split View for catalog chats | [P3] Update the documented Tasks and Split View entry points

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Before / after proof

Before: original header actions

After — the top-level header only keeps Browser, Side panel, and ellipsis:

After: simplified chat header

After — Show background tasks remains under Ellipsis → Panels:

After: background tasks in Panels submenu

After — Open split view remains under Ellipsis → Layout:

After: split view in Layout submenu

Browser assertions from the real isolated gateway capture found zero top-level .chat-background-tasks-status and .chat-open-split-view controls while both menu actions remained present.

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 4, 2026 01:43
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/simplify-chat-header-actions branch from c3fdc8f to edbe56e Compare September 4, 2026 02:56
@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/simplify-chat-header-actions branch from edbe56e to b8581d4 Compare September 4, 2026 03:34
@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/simplify-chat-header-actions branch from b8581d4 to 6797528 Compare September 4, 2026 03:50
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/simplify-chat-header-actions branch 2 times, most recently from f151dd1 to 4bb0cee Compare September 4, 2026 05:29
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/simplify-chat-header-actions branch from 4bb0cee to 66f1b41 Compare September 4, 2026 06:24
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/simplify-chat-header-actions branch from 66f1b41 to add705c Compare September 4, 2026 07:48
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 4, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/simplify-chat-header-actions branch from add705c to f403b04 Compare September 4, 2026 08:28
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Closing this chat/dashboard-header branch as superseded by the incoming Workboard/session implementation.

@RomneyDa
RomneyDa deleted the codex/simplify-chat-header-actions branch October 22, 2026 00:18
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 maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant