Skip to content

fix(ui): align task toolbar with side-panel tabs - #138769

Merged
steipete merged 2 commits into
mainfrom
codex/restore-aligned-panel-headers
Sep 5, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/restore-aligned-panel-headers

Conversation

@steipete

@steipete steipete commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where opening a task side panel puts its tabs a full row below the task toolbar. Restore the aligned header band: toolbar over the main pane, tabs over the side pane, and both content panes starting at the same height.

Related: #138077, #138713.

Why This Change Was Made

The task header now occupies the main-header area of the existing panel grid. This removes the full-width wrapper that pushed the side tabs down, while retaining the same live chat, widget, browser, and terminal roots across swaps. Native window-control clearance follows whichever header is physically at the top left.

User Impact

Left and right layouts have one aligned header band, including after swapping Dashboard and Chat. Bottom and mobile layouts keep each header above its own pane. Focus/Restore, saved layouts, drafts, widget input, and terminal sessions continue to work.

Evidence

  • The extended geometry regression fails on the immutable pre-fix source: the task toolbar extends to x=1440 while its main pane ends at x=954. It passes with this repair, checking both header bounds and content alignment before/after swapping, left/right docking, reload, and stacked layouts.
  • The initial 11 bundled Chromium E2E cases pass, including native left-dock window-control clearance, retained composer identity, and split task headers. After CI follow-up, all 16 cases in the header-axis, tabbed-panel, task-layout, and dashboard-gallery suites pass. The 123 responsive cases pass again after the mobile repair; the 18 sidebar owner tests also passed.
  • A fresh 12-stage synthetic browser recording verifies the views and retained widget document/input, chat draft, saved layout, and terminal session. The before/after images below were inspected in full. No private user screenshots are used.
  • Independent Codex review is clean through P2. Formatting, lint, stylelint, i18n, dead-code, and selected static guards pass. Local typechecks hit the existing shared-install mismatch: @openclaw/fs-safe 0.7.0 lacks assertBeforeRename, while the repository pins 0.7.2. The first CI run passed production types and the UI owner shards; its test failures were resolved in the follow-up described below. Final-head CI passed on 6bed499fca7718e0e6db78ad1eaa8a2906fc4272, including all UI browser shards, production/test typechecks, and the real-Gateway browser suite.

Production: +12 net lines, replacing the full-width wrapper with shared grid placement and physical-left native clearance. Tests: +93 net lines, chiefly measured regression coverage in existing flows. Docs: +4 net lines. No persistence format, configuration, database schema, or Gateway protocol changes.

Before: toolbar above side tabs After: aligned header band
Before alignment After alignment
Swapped dashboard with Chat docked left

Aligned headers after swapping and docking left

CI and review follow-up

The first CI run found a tuple-inference error and geometry probes still tied to the former DOM hierarchy. The focused rerun then exposed the stale mobile CSS selectors. All are repaired, preserving the existing mobile breadcrumb, touch-target, safe-area, and content-offset assertions. The same run exposed an existing dashboard-gallery fixture mismatch introduced by #138635: startup resolved the session correctly, but the subsequent session-resolution request reported it missing. Both mock methods now share one resolution object; production routing is unchanged.

Both findings and rank-up moves in the ClawSweeper review are addressed: mobile rules target the new header owner, the zero-height clearance override targets only content, and header-axis probes measure the visible main pane. Desktop/mobile, light/dark, short-landscape, native, and rearrangement coverage passes.

Mobile after restoring the header styles Mobile layout with restored breadcrumb and navigation styles

@clawsweeper

clawsweeper Bot commented Sep 5, 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 maintainer Maintainer-authored PR labels Sep 5, 2026
@steipete
steipete marked this pull request as ready for review September 5, 2026 01:44
@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 5, 2026
@clawsweeper

clawsweeper Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 4, 2026, 10:00 PM ET / September 5, 2026, 02:00 UTC.

ClawSweeper review

What this changes

Moves the task toolbar into the side-panel layout grid to align it with neighboring tabs, and updates native window-control spacing, geometry tests, and dashboard documentation.

Regression provenance

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

Merge readiness

⛔ Needs changes before merge - 3 items remain

The alignment repair remains necessary on the pinned main revision, but removing the wrapper leaves mobile styling and a sibling geometry test broken.

Priority: P2
Reviewed head: 301e6c1ff3c1363c6a310d6c4eeedde8e03a6dcb

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The shared-grid approach and retention coverage are useful, but two concrete consumers of the old DOM hierarchy still need migration.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored presentation repair is exempt from the external-contributor proof gate and changes no authority boundary. The captured body reports Chromium alignment and retention runs plus a recording, with an explicit upload-rate-limit blocker; pending media was not independently inspected.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored presentation repair is exempt from the external-contributor proof gate and changes no authority boundary. The captured body reports Chromium alignment and retention runs plus a recording, with an explicit upload-rate-limit blocker; pending media was not independently inspected.
Evidence reviewed 9 items Verified introduced change and merge boundary: The checkout is the pinned original head. Its recorded parent is 39dfbc8. The test merge records e2b49d2 followed by this exact head, and its delta contains only the nine introduced UI, test, and documentation paths; unrelated endpoint drift was excluded.
Current main still has the reported layout: Pinned main renders the task header before the entire sidebar region inside the full-width chat-pane-layout wrapper. The requested main-header grid placement is absent, so the two previously merged related PRs do not make this repair redundant.
Unmigrated mobile styling: The mobile stylesheet still requires the removed chat-pane-layout ancestor for its 40px navigation control, stacked identity trail, header spacing, and content-only clearance reset. The chat and dashboard route loader imports this stylesheet. These selectors remain unchanged in the verified test merge.
Findings 2 actionable findings [P2] Retarget mobile header styles to the new grid hierarchy
[P2] Update the sibling header-axis probe for the relocated header
Security None None.

How this fits together

The Control UI task layout positions Chat, Dashboard, and other panels according to the selected arrangement. Its shared grid places headers and content while keeping live panel contents mounted across swaps and docking changes.

flowchart TD
  A[Saved arrangement and layout controls] --> B[Task panel grid]
  B --> C[Task toolbar]
  B --> D[Side-panel tabs]
  C --> E[Main view]
  D --> F[Side view]
  E --> G[Retained chat and panel content]
  F --> G
Loading

Before merge

  • Retarget mobile header styles to the new grid hierarchy (P2) - Removing .chat-pane-layout disables the mobile rules in ui/src/styles/chat/composer-progress.css:8 and ui/src/styles/chat/composer-progress.css:16. At mobile and short-landscape widths, the identity trail loses its two-row layout, the navigation button loses its 40px mobile sizing, and content inherits the extra 52px header offset. The chat/dashboard routes still load this stylesheet. Migrate its selectors to the new header owner and keep the zero-clearance override scoped to content rather than the header.
  • Update the sibling header-axis probe for the relocated header (P2) - The introduced sidebar-region__header parent contains the toolbar but no descendant .sidebar-region, so this unchanged probe now returns undefined for contentTop. All four desktop/mobile and light/dark variants reach an invalid numeric assertion at line 100, independently of repairing the mobile CSS. Resolve the visible main-content region from the owning pane or sidebar grid and preserve the alignment assertion.
  • Complete next step (P2) - Migrate the mobile stylesheet and header-axis geometry probe to the new grid hierarchy, then verify the focused mobile and panel-layout regressions.

Findings

  • [P2] Retarget mobile header styles to the new grid hierarchy — ui/src/pages/chat/chat-pane-layout-render.ts:256-260
  • [P2] Update the sibling header-axis probe for the relocated header — ui/src/e2e/chat-header-axis.e2e.test.ts:90-92
Agent review details

Security

None.

PR surface

Source +12, Tests +85, Docs +4. Total +101 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 4 39 27 +12
Tests 3 110 25 +85
Docs 2 6 2 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 155 54 +101

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +12 net; tests +85 net; docs +4 net The small production increase supports physical-left native clearance while replacing the old wrapper, and most growth extends existing behavioral coverage.

Technical review

Best possible solution:

Keep one shared grid with preserved mobile breadcrumbs, touch targets, and content offsets; retain only the native-selector expansion needed to place window-control clearance on the physical-left header.

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

Yes—from source: pinned main places the toolbar above the whole split, while this head removes the ancestor required by mobile styles and the header-axis geometry probe. No browser execution was performed in this read-only review.

Is this the best way to solve the issue?

Not yet. Moving the toolbar into the existing grid fixes the correct owner boundary, but the responsive stylesheet and sibling geometry probe must follow the new hierarchy.

Full review comments:

  • [P2] Retarget mobile header styles to the new grid hierarchy — ui/src/pages/chat/chat-pane-layout-render.ts:256-260
    Removing .chat-pane-layout disables the mobile rules in ui/src/styles/chat/composer-progress.css:8 and ui/src/styles/chat/composer-progress.css:16. At mobile and short-landscape widths, the identity trail loses its two-row layout, the navigation button loses its 40px mobile sizing, and content inherits the extra 52px header offset. The chat/dashboard routes still load this stylesheet. Migrate its selectors to the new header owner and keep the zero-clearance override scoped to content rather than the header.
    Confidence: 0.99
  • [P2] Update the sibling header-axis probe for the relocated header — ui/src/e2e/chat-header-axis.e2e.test.ts:90-92
    The introduced sidebar-region__header parent contains the toolbar but no descendant .sidebar-region, so this unchanged probe now returns undefined for contentTop. All four desktop/mobile and light/dark variants reach an invalid numeric assertion at line 100, independently of repairing the mobile CSS. Resolve the visible main-content region from the owning pane or sidebar grid and preserve the alignment assertion.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded Control UI layout repair with an introduced mobile presentation regression, not an emergency or a priority increase based on CI state.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This member-authored presentation repair is exempt from the external-contributor proof gate and changes no authority boundary. The captured body reports Chromium alignment and retention runs plus a recording, with an explicit upload-rate-limit blocker; pending media was not independently inspected.

Label justifications:

  • P2: This is a bounded Control UI layout repair with an introduced mobile presentation regression, not an emergency or a priority increase based on CI state.
  • 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: This member-authored presentation repair is exempt from the external-contributor proof gate and changes no authority boundary. The captured body reports Chromium alignment and retention runs plus a recording, with an explicit upload-rate-limit blocker; pending media was not independently inspected.

Evidence

What I checked:

  • Verified introduced change and merge boundary: The checkout is the pinned original head. Its recorded parent is 39dfbc8. The test merge records e2b49d2 followed by this exact head, and its delta contains only the nine introduced UI, test, and documentation paths; unrelated endpoint drift was excluded. (7190aa875de6)
  • Current main still has the reported layout: Pinned main renders the task header before the entire sidebar region inside the full-width chat-pane-layout wrapper. The requested main-header grid placement is absent, so the two previously merged related PRs do not make this repair redundant. (ui/src/pages/chat/chat-pane-layout-render.ts:259, d8262bf1500b)
  • Unmigrated mobile styling: The mobile stylesheet still requires the removed chat-pane-layout ancestor for its 40px navigation control, stacked identity trail, header spacing, and content-only clearance reset. The chat and dashboard route loader imports this stylesheet. These selectors remain unchanged in the verified test merge. (ui/src/styles/chat/composer-progress.css:16, 7190aa875de6)
  • Sibling geometry probe still assumes the old parent: The header-axis suite searches the header's parent for a descendant sidebar-region. The new parent is sidebar-region__header, which contains no such descendant, leaving contentTop undefined before the numeric assertion at line 100. The suite enumerates desktop/mobile and light/dark variants and also defines the expected stacked mobile identity trail. (ui/src/e2e/chat-header-axis.e2e.test.ts:90, 301e6c1ff3c1)
  • Shared owner and retained-content boundary: ChatPaneRender calls the changed layout renderer, which passes the header into renderSidebarRegion. The sidebar runtime continues rendering stable panel roots and changing their grid roles rather than remounting them. Existing owner tests and the extended task-panel E2E cover drafts, widget identity, docking, focus, reload, and terminal retention. No Codex runtime/protocol dependency signal is present in this change. (ui/src/pages/chat/components/chat-sidebar-region.runtime.ts:242, 301e6c1ff3c1)
  • Proof snapshot and inspection scope: The supplied body at sourceRevision 35f6da579b2bbc13d7bc3a3947498c4c782e1a8fd3193256c4205807091aa91b reports failing pre-fix geometry, passing focused Chromium checks, and a 12-stage synthetic recording. It explicitly says image uploads are rate-limited and pending; no current-PR media link was supplied. Those execution claims were not independently rerun. Read-only source inspection and git diff --check completed; live GitHub retrieval failed because the API was unreachable. (301e6c1ff3c1)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: 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.

  • Migrate the mobile header selectors and content-only offset reset, preserving the existing mobile identity and navigation-control behavior.
  • Repair the header-axis content lookup and rerun its desktop/mobile variants alongside the task-panel geometry coverage.

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.

@steipete
steipete merged commit 6832f3b into main Sep 5, 2026
132 checks passed
@steipete
steipete deleted the codex/restore-aligned-panel-headers branch September 5, 2026 02:38
@steipete

steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 5, 2026
Apply the upstream fixture correction from #138769 so chat startup and dashboard navigation resolve the same session.
steipete added a commit that referenced this pull request Sep 5, 2026
…8707)

* refactor(anthropic): replace Agent SDK with direct CLI transport

* fix(anthropic): preserve direct CLI invocation contracts

* test(gateway): request exact CLI announcement proof marker

* test(ui): preserve dashboard resolution across navigation

Apply the upstream fixture correction from #138769 so chat startup and dashboard navigation resolve the same session.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
* fix(ui): align task toolbar with side-panel tabs

* fix(ui): preserve mobile headers in aligned panel layouts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
…nclaw#138707)

* refactor(anthropic): replace Agent SDK with direct CLI transport

* fix(anthropic): preserve direct CLI invocation contracts

* test(gateway): request exact CLI announcement proof marker

* test(ui): preserve dashboard resolution across navigation

Apply the upstream fixture correction from openclaw#138769 so chat startup and dashboard navigation resolve the same session.
vincentkoc added a commit to LiuwqGit/openclaw that referenced this pull request Sep 5, 2026
* refs/remotes/origin/main: (602 commits)
  fix(plugins): trace trust refusals and repair legacy provenance (openclaw#138746)
  perf(sqlite): reuse compiled plugin state point reads (openclaw#138758)
  refactor: type chat prefetch dependencies and clean loading tests (openclaw#138793)
  ci: reduce Doctor test startup and core lint jobs (openclaw#138796)
  feat(update): retain run history and share outcome reports (openclaw#138690)
  chore(deps): update @openclaw/fs-safe to 0.8.1 (openclaw#138500)
  fix: preserve global board ownership from pinning to notifications (openclaw#138675)
  fix(gateway): deliver session catalog updates from slow hosts (openclaw#138674)
  perf(sessions): index pending conversation replies (openclaw#127182)
  perf(auth): reuse ordered provider alias entries (openclaw#138805)
  docs(diagnostics): clarify whole-process CPU metrics (openclaw#138804)
  perf(memory): narrow source reads and stream embedding cache rows (openclaw#138766)
  fix: allow older source on newer Testbox checkouts (openclaw#138782)
  fix(agents): preserve recovered task progress and lifecycle ownership (openclaw#138785)
  perf(codex): reduce rollout tail scan CPU (openclaw#138784)
  perf(gateway): stop projecting history deltas at the byte budget (openclaw#138655)
  fix(build): bound native declaration inputs to checkout (openclaw#138742)
  fix(cli): preserve foreground Gateway argument handling (openclaw#138765)
  fix(ui): align task toolbar with side-panel tabs (openclaw#138769)
  fix(logbook): drain accepted work before closing SQLite (openclaw#138754)
  ...

# Conflicts:
#	src/agents/embedded-agent-runner/compact.queued.ts
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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