Repository navigation
fix(ui): keep native titlebar buttons consistently borderless - #153241
Conversation
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
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 11:38 PM ET / September 20, 2026, 03:38 UTC (Revision 8). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +11, Tests +58. Total +69 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
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
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]>
|
Merged via squash.
|
…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]>
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 --checkpass.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
1de09ee162523d2c7ab91679651725443afedef2in 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
d786341cabe4fe0fd6894ee2d93c681524a07c47in 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
After
Worked on by
Work sessions
View the OpenClaw team session