Skip to content

fix(ui): keep native titlebar buttons consistently borderless - #153241

Merged
roboclaw-bot merged 8 commits into
mainfrom
openclaw/unify-mac-app-buttons-without-borders
Sep 20, 2026
Merged

roboclaw-bot merged 8 commits into
mainfrom
openclaw/unify-mac-app-buttons-without-borders

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the Inbox button has a border and shadow beside borderless navigation buttons in the Mac app titlebar when the sidebar is collapsed.

User Impact

Native titlebar actions now share a borderless appearance. The unread badge, hover/open highlight, keyboard focus ring, click area, and navigation behavior are preserved. Native header clearance also accounts for the unread badge’s one-pixel overhang. Browser floating controls keep their existing contrast.

Why This Change Was Made

The floating Inbox inherited browser overlay decoration after moving into the native titlebar. Limit that decoration to non-titlebar hosts and use the existing native-web-chrome styling boundary. No native Swift, configuration, or migration changes.

Evidence

  • Focused bundled native-titlebar E2E fails before the fix on the Inbox border/background/shadow and passes afterward. Covers all six controls, hover, keyboard focus, Enter activation, and Escape dismissal.

  • All 12 Inbox browser-layout tests pass, including both stylesheet arrival orders and unchanged browser floating controls.

  • Targeted oxfmt, stylelint, and git diff --check pass.

  • Independent source audit and scoped autoreview passed with no actionable findings.

  • Isolated browser proof environment: the focused command completed successfully before the disposable Testbox was explicitly stopped. Stopping the environment marks its hosting workflow cancelled; that workflow conclusion is not a test-suite result.

  • Inspected, sanitized before/after screenshots are embedded below and have also been delivered in the originating chat. These are Chromium renders of the Mac native-web-chrome flow, not native macOS/WebKit runtime captures. Native runtime certification remains untested. This bounded CSS-only repair reuses the existing native-host selector and standard border/background properties; no native integration or interaction behavior changes. The bundled browser regression and both stylesheet-order tests are the applicable boundary proof.

  • Historical CI run 35476027916 reproduced a shared main-branch Chromium renderer crash, not a titlebar assertion failure. The canonical repair has now landed in fix(ui): open subagent details in Tasks instead of Review #153260 (03328bcdb525d61eca0f3a32e61c0a343a57964b); the alternative fix(ui): prevent chat crashes after copying a message #153281 was closed as superseded. This branch incorporates the landed repair while preserving the exact reviewed titlebar patch (stable patch ID unchanged). Fresh exact-head CI is required before native preparation and merge; the historical failed run is not being treated as green.

  • A later unchanged CI rerun passed the rail readiness case but exposed a responsive setup test measuring before the shell acknowledged a viewport change. The fixture now waits for its declared shell mode and stable control actionability; all geometry assertions are unchanged. Five responsive cases pass, and the unchanged native-titlebar and rail suites pass 26 cases. Fresh scoped review and formatting checks pass.

  • Reconciled the overlapping responsive-test repair from main, preserving its font-readiness and settled-layout waits alongside explicit shell-mode and trial-actionability checks. All 31 focused native-titlebar, responsive setup, and rail E2E cases passed on exact tree 1de09ee162523d2c7ab91679651725443afedef2 in CI-matched Testbox proof; the task-owned Testbox completed. Fresh scoped autoreview is clean. New exact-head CI must pass before native landing.

  • Exact-head CI exposed a real one-pixel clearance regression once the unread badge settled: the existing eight-pixel check measured seven. A deterministic badge/font/layout-ready reproduction failed the same way. The native-host safe-edge reservation now includes that overhang, without changing control or badge dimensions or weakening assertions. All 28 native-titlebar, responsive setup, and page-header E2E cases pass on final tree d786341cabe4fe0fd6894ee2d93c681524a07c47 in Testbox proof; scoped autoreview is clean and the lease is stopped. The original before/after images below remain the borderless-appearance proof; they are not claimed as a pixel measurement of this clearance repair.

Before

Mac titlebar before: bordered Inbox

After

Mac titlebar after: borderless Inbox

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits September 19, 2026 23:18
Remove the floating Inbox border, fill, shadow, and backdrop blur in native web-chrome titlebars while preserving browser floating chrome, hover and keyboard focus.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: e02eb098-869b-4b02-824a-fc4458a6991b
@clawsweeper

clawsweeper Bot commented Sep 19, 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 app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 19, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 19, 2026 23:24
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 11:38 PM ET / September 20, 2026, 03:38 UTC (Revision 8).

ClawSweeper review

What this changes

The PR makes the native titlebar Inbox borderless, preserves clearance around its unread badge, and strengthens appearance, keyboard, and responsive-layout checks.

Merge readiness

✅ Ready for maintainer review

The repair remains useful: current main and the latest release retain the unwanted decoration. No actionable correctness or security findings remain.

Likely related people: steipete — high-confidence routing candidate from prior stylesheet work.

Priority: P3
Reviewed head: cf001d7fda653424101b97886f0a44df39745992

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable styling repair with directly relevant visual evidence and meaningful regression coverage.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium captures show the shared Inbox stylesheet removing native-host decoration in the collapsed-sidebar flow. Reported bundled-browser checks supplement this with keyboard behavior and final badge clearance; native macOS/WebKit certification is expressly unclaimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after Chromium captures show the shared Inbox stylesheet removing native-host decoration in the collapsed-sidebar flow. Reported bundled-browser checks supplement this with keyboard behavior and final badge clearance; native macOS/WebKit certification is expressly unclaimed.
Evidence reviewed 7 items Current main still needs the repair: The fetched main stylesheet still applies border, background, shadow, and blur to floating Inbox controls without excluding the native titlebar host.
Latest release comparison: The same unwanted decoration is present in the stylesheet at the supplied latest release, v2026.9.5.
Scoped styling and clearance: The patch overrides inherited border/background only for native web chrome, excludes that host from floating shadow/blur, and reserves 41 pixels for the 32-pixel control, one-pixel badge overhang, and eight-pixel clearance. Existing hover and focus styles remain intact.
Findings None None.
Security None None.

How this fits together

The Control UI places its Inbox beside navigation controls when the native app’s sidebar collapses. Shared styles use the host’s chrome markers to control decoration and reserve space before the page title.

flowchart TD
  A[Native host markers] --> C[Shared Inbox styles]
  B[Collapsed sidebar and unread badge] --> C
  C --> D{Native titlebar host?}
  D -->|Yes| E[Borderless control and badge clearance]
  D -->|No| F[Floating browser decoration]
  E --> G[Inbox and page title]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +11, Tests +58. Total +69 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 13 2 +11
Tests 3 60 2 +58
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 73 4 +69

Review metrics

None.

Technical review

Best possible solution:

Keep native titlebar appearance within the existing host-specific stylesheet while preserving browser contrast, keyboard feedback, and badge-aware title clearance.

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

Yes, from source: collapsing the sidebar in a native web-chrome host selects the floating Inbox rules that still add decoration on main. The supplied before image corroborates this; no runtime reproduction was executed during this review.

Is this the best way to solve the issue?

Yes. Adjusting the existing host-specific CSS fixes the decoration at its owner, and the additional pixel follows the badge’s existing geometry without changing control dimensions or weakening assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against eadd90b8faaa.

Labels

Label justifications:

  • P3: This is a bounded visual consistency and spacing repair with existing interactions preserved.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium captures show the shared Inbox stylesheet removing native-host decoration in the collapsed-sidebar flow. Reported bundled-browser checks supplement this with keyboard behavior and final badge clearance; native macOS/WebKit certification is expressly unclaimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium captures show the shared Inbox stylesheet removing native-host decoration in the collapsed-sidebar flow. Reported bundled-browser checks supplement this with keyboard behavior and final badge clearance; native macOS/WebKit certification is expressly unclaimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium captures show the shared Inbox stylesheet removing native-host decoration in the collapsed-sidebar flow. Reported bundled-browser checks supplement this with keyboard behavior and final badge clearance; native macOS/WebKit certification is expressly unclaimed.

Evidence

What I checked:

  • Current main still needs the repair: The fetched main stylesheet still applies border, background, shadow, and blur to floating Inbox controls without excluding the native titlebar host. (ui/src/styles/sidebar-attention-floating.css:7, eadd90b8faaa)
  • Latest release comparison: The same unwanted decoration is present in the stylesheet at the supplied latest release, v2026.9.5. (ui/src/styles/sidebar-attention-floating.css:7, ec9c1a13db89)
  • Scoped styling and clearance: The patch overrides inherited border/background only for native web chrome, excludes that host from floating shadow/blur, and reserves 41 pixels for the 32-pixel control, one-pixel badge overhang, and eight-pixel clearance. Existing hover and focus styles remain intact. (ui/src/styles/sidebar-attention-floating.css:30, cf001d7fda65)
  • Inspected visual evidence: Viewed the two prepared before/after images referenced by the captured PR body. They visibly show the bordered Inbox becoming borderless beside unchanged navigation controls. The author identifies these as Chromium renders with native-host markers; they establish appearance, not native WebKit certification or the later pixel-clearance measurement.
  • Behavioral regression coverage: The existing bundled UI scenario now checks six borderless controls, hover fill, keyboard focus, Enter activation, and Escape dismissal. Badge/font/layout readiness precedes the unchanged eight-pixel clearance assertion. Browser-layout tests cover both stylesheet arrival orders and retain ordinary browser decoration checks. The captured body reports 28 focused cases passing after the final clearance repair; this read-only review did not execute tests. (ui/src/e2e/native-nav-sidebar-toggle.e2e.test.ts:506, cf001d7fda65)
  • Re-review continuity: The GitHub comparison against the previous reviewed head confirms that the latest increment adds the badge-clearance reservation and measurement-readiness waits. The prior review contained no findings; its native-runtime limitation remains a qualification of the browser evidence, not a newly discovered code defect. (ui/src/styles/sidebar-attention-floating.css:30, cf001d7fda65)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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 (7 earlier review cycles)
  • reviewed 2026-09-19T23:29:44.826Z sha 338d9b5 :: blocked before merge. :: none
  • reviewed 2026-09-19T23:45:35.243Z sha 338d9b5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-19T23:57:11.374Z sha 338d9b5 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T01:06:57.484Z sha 2720c4b :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T02:51:43.078Z sha a932588 :: blocked before merge. :: none
  • reviewed 2026-09-20T03:04:36.287Z sha a932588 :: blocked before merge. :: none
  • reviewed 2026-09-20T03:20:41.737Z sha c7daad5 :: blocked before merge. :: none

roboclaw-bot and others added 4 commits September 20, 2026 00:59
Refresh the authored branch with the landed prerequisite without changing the reviewed borderless-titlebar patch.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: de1c9117-329e-4f38-8175-8d3bea0d3ba3
Wait for the viewport-specific shell state and stable control actionability before recording layout. Preserve every row-count, size, bounds, and non-overlap assertion. The unchanged rail suite and native titlebar suite pass; the corrected responsive suite passes all five cases.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 80b5d233-d82b-43b4-8b79-ab076f10374a
roboclaw-bot and others added 2 commits September 20, 2026 03:12
Resolve the overlapping responsive-test repair by retaining main's font and settled-layout waits alongside shell-mode and control-actionability checks. All 31 native-titlebar, responsive setup, and rail E2E cases pass on the exact merged tree; scoped autoreview is clean.

Co-authored-by: steipete <[email protected]>
Reserve the badge's one-pixel overhang in native titlebar clearance. Await the actual badge and settled layout before measuring; preserve the eight-pixel assertion and all behavior checks. Deterministic before proof fails at seven pixels; all 28 native-titlebar, responsive setup, and page-header cases pass after the fix. Scoped autoreview is clean.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit 80c8e96 into main Sep 20, 2026
90 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/unify-mac-app-buttons-without-borders branch September 20, 2026 04:13
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
…aw#153241)

* fix(ui): keep native titlebar buttons consistently borderless

Remove the floating Inbox border, fill, shadow, and backdrop blur in native web-chrome titlebars while preserving browser floating chrome, hover and keyboard focus.

Co-authored-by: steipete <[email protected]>

* fix(ui): keep native titlebar buttons consistently borderless

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: e02eb098-869b-4b02-824a-fc4458a6991b

* fix(ui): keep native titlebar buttons consistently borderless

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: de1c9117-329e-4f38-8175-8d3bea0d3ba3

* test(ui): wait for responsive shell before measuring setup controls

Wait for the viewport-specific shell state and stable control actionability before recording layout. Preserve every row-count, size, bounds, and non-overlap assertion. The unchanged rail suite and native titlebar suite pass; the corrected responsive suite passes all five cases.

Co-authored-by: steipete <[email protected]>

* fix(ui): keep native titlebar buttons consistently borderless

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 80b5d233-d82b-43b4-8b79-ab076f10374a

* fix(ui): preserve title clearance beyond the borderless Inbox badge

Reserve the badge's one-pixel overhang in native titlebar clearance. Await the actual badge and settled layout before measuring; preserve the eight-pixel assertion and all behavior checks. Deterministic before proof fails at seven pixels; all 28 native-titlebar, responsive setup, and page-header cases pass after the fix. Scoped autoreview is clean.

Co-authored-by: steipete <[email protected]>

---------

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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