Skip to content

fix(ui): sidebar plus button appears brighter and boxed - #136608

Merged
Patrick-Erichsen merged 3 commits into
mainfrom
codex/match-new-session-button
Sep 3, 2026
Merged

Patrick-Erichsen merged 3 commits into
mainfrom
codex/match-new-session-button

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the sidebar's New session (+) control appeared brighter and boxed while the adjacent collapse and search controls were muted and borderless.

Why This Change Was Made

The New session link was using the floating shell-control style instead of the sidebar icon style introduced for the other header actions. All three actions now share one header-control visual role, while the existing native-shell visibility behavior remains limited to collapse and search.

User Impact

The plus icon now matches the color, optical size, stroke, background, hover treatment, and borderless surface of the other sidebar header controls.

Evidence

Before After
Before: the plus control is brighter and enclosed by a border After: the plus control matches the muted, borderless collapse and search controls, including visible icon size
  • Regression proof: style parity failed against the original implementation (panel background, 1px solid border, brighter color, full opacity). The follow-up visible-glyph check failed against the nominally equal 16px SVGs ([12, 12, 9]) and passes after optical sizing ([12, 12, 12]).
  • Focused E2E: native responsive layout — 6 passed; native sidebar toggle — 20 passed.
  • node scripts/check-changed.mjs -- ui/src/components/app-sidebar-render.ts ui/src/styles/layout.css ui/src/e2e/native-nav-responsive-layout.e2e.test.ts ui/src/e2e/native-nav-sidebar-toggle.e2e.test.ts — passed.
  • Final Autoreview — 0 accepted/actionable findings (0.99 confidence).
  • Production delta: +12/−17 (net −5); test delta: +46/−2.

@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 12:57 AM ET / 04:57 UTC.

ClawSweeper review

What this changes

The PR makes the sidebar New session control use the same header-icon styling as collapse and search, with browser E2E assertions for visual and optical-size parity.

Merge readiness

⛔ Blocked before merge - 3 items remain

The branch cleanly unifies the sidebar header control styling and adds focused browser coverage; current main still has the reported mismatch. No patch defect was found, but this MEMBER-authored PR carries the protected maintainer label and needs an explicit UI-owner disposition after exact-head checks finish.

Priority: P3
Reviewed head: 03741c398392a6216c2a361f25a97d32d112c9cd
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-negative visual repair with owner-boundary coverage and no supported correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The repository state identifies a MEMBER-authored UI PR, so the external-contributor proof gate does not apply; the captured PR body additionally reports before/after screenshots and focused browser E2E results.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository state identifies a MEMBER-authored UI PR, so the external-contributor proof gate does not apply; the captured PR body additionally reports before/after screenshots and focused browser E2E results.
Evidence reviewed 5 items Current-main behavior: Current main still renders New session with the floating shell-control class while collapse and search use sidebar icons, so the central visual mismatch remains outside this branch.
Canonical owner-boundary repair: The branch changes the sidebar renderer to give all three header actions the shared icon role, and moves the muted stroke/size rules to that role while retaining the desktop-only visibility class on collapse and search.
Behavioral browser coverage: The responsive-layout E2E verifies all three controls have equal computed visual properties and a 12px visible glyph width; the native-web-chrome test retains keyboard focus-ring coverage for New session.
Findings None None.
Security None None.

How this fits together

The Control UI sidebar renders agent navigation and session actions. Its header controls feed user navigation and new-session creation, while shared layout CSS determines their visible states.

flowchart LR
  A[Sidebar header] --> B[Collapse and search actions]
  A --> C[New session action]
  B --> D[Shared header icon styling]
  C --> D
  D --> E[Visible sidebar controls]
Loading

Decision needed

Question Recommendation
Should the UI owner approve this protected maintainer-labeled visual repair once the exact-head checks are green? Approve after green checks: Accept the tested visual unification because it preserves action behavior and native-shell visibility rules.

Why: Repository policy keeps MEMBER-authored and protected-label PRs open for explicit maintainer handling even when the patch has no actionable finding.

Before merge

  • Resolve merge risk (P1) - Relevant exact-head UI checks are still queued or running, so the merge gate is not complete.
  • Complete next step (P2) - Obtain explicit UI-owner disposition for the protected maintainer label, then require relevant exact-head checks to complete successfully before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source -5, Tests +44. Total +39 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 12 17 -5
Tests 2 46 2 +44
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 58 19 +39

Review metrics

Metric Value Why it matters
Production versus test delta production −5 net (12 added, 17 removed); tests +44 net (46 added, 2 removed) The visual bug repair is net-negative in production code, while the added browser coverage protects style parity and optical glyph sizing.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Merge the UI-owner-approved implementation after relevant exact-head checks pass, retaining one shared sidebar-header icon style while preserving native-titlebar visibility behavior.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Merge the UI-owner-approved implementation after relevant exact-head checks pass, retaining one shared sidebar-header icon style while preserving native-titlebar visibility behavior.

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

Yes—source-reproducible: current main applies the floating shell-control class to New session while its adjacent sidebar controls use the sidebar icon treatment.

Is this the best way to solve the issue?

Yes: assigning one shared sidebar-header role at the renderer and CSS owner removes the special-case native override while preserving the separate desktop-control visibility contract.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a small Control UI visual consistency repair with no evidence of functional, security, or delivery impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The repository state identifies a MEMBER-authored UI PR, so the external-contributor proof gate does not apply; the captured PR body additionally reports before/after screenshots and focused browser E2E results.

Evidence

What I checked:

  • Current-main behavior: Current main still renders New session with the floating shell-control class while collapse and search use sidebar icons, so the central visual mismatch remains outside this branch. (ui/src/components/app-sidebar-render.ts:184, d4bc84d7fd8a)
  • Canonical owner-boundary repair: The branch changes the sidebar renderer to give all three header actions the shared icon role, and moves the muted stroke/size rules to that role while retaining the desktop-only visibility class on collapse and search. (ui/src/components/app-sidebar-render.ts:184, 03741c398392)
  • Behavioral browser coverage: The responsive-layout E2E verifies all three controls have equal computed visual properties and a 12px visible glyph width; the native-web-chrome test retains keyboard focus-ring coverage for New session. (ui/src/e2e/native-nav-responsive-layout.e2e.test.ts:149, 03741c398392)
  • Feature history: The local history identifies the sidebar-header move as commit eb0d883 and the browser-tab New session control as commit 4b49d9e; the affected area has continuing Control UI ownership. (eb0d8830e7dc)
  • Review-state check: The captured GitHub context reports relevant exact-head UI E2E checks queued or in progress; their eventual result remains a merge gate, not a code-quality finding.

Likely related people:

  • Vyctor H. Brzezowski: 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)
  • Patrick-Erichsen: 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 (4 earlier review cycles)
  • reviewed 2026-09-02T21:04:31.901Z sha 4a92221 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T21:14:58.693Z sha 4a92221 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T21:57:50.008Z sha e41af1d :: blocked before merge. :: none
  • reviewed 2026-09-02T23:00:01.196Z sha e41af1d :: blocked before merge. :: none

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@Patrick-Erichsen
Patrick-Erichsen merged commit 158bae6 into main Sep 3, 2026
163 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@Patrick-Erichsen
Patrick-Erichsen deleted the codex/match-new-session-button branch September 3, 2026 05:37
vyctorbrzezowski added a commit that referenced this pull request Sep 3, 2026
…ost its border (#137317)

The Control UI sidebar header controls read as misaligned: the new-session `+`
sat 5px further from search than search sat from the sidebar-collapse control.

The `+` used to render as a bordered chrome button, and #134365 gave it
`margin-inline-start: 5px` as optical alignment so that filled box would not
crowd the two borderless glyphs beside it. #136608 correctly re-based the `+`
onto the borderless header-control base but kept the offset, so with no box
left to sit inside it became pure extra gap.

Delete the offset instead of tuning a new number: `.sidebar-brand__actions`
already declares `gap`, so it becomes the single owner of control spacing and
all three controls share one 28x28 hit box and one gap. The `+` stays
borderless. Measured collapse -> search / search -> `+`: 0px / 5px before,
0px / 0px after, in Light, Dark and RTL.

Closes #137316
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
)

* fix(ui): match sidebar new-session control

* test(ui): assert rendered sidebar border state

* fix(ui): balance new-session icon size
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
…ost its border (openclaw#137317)

The Control UI sidebar header controls read as misaligned: the new-session `+`
sat 5px further from search than search sat from the sidebar-collapse control.

The `+` used to render as a bordered chrome button, and openclaw#134365 gave it
`margin-inline-start: 5px` as optical alignment so that filled box would not
crowd the two borderless glyphs beside it. openclaw#136608 correctly re-based the `+`
onto the borderless header-control base but kept the offset, so with no box
left to sit inside it became pure extra gap.

Delete the offset instead of tuning a new number: `.sidebar-brand__actions`
already declares `gap`, so it becomes the single owner of control spacing and
all three controls share one 28x28 hit box and one gap. The `+` stays
borderless. Measured collapse -> search / search -> `+`: 0px / 5px before,
0px / 0px after, in Light, Dark and RTL.

Closes openclaw#137316
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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