Skip to content

fix(macos): restore dashboard frame double-click zoom - #118976

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
pe/fix-macos-titlebar-double-click
Aug 3, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
pe/fix-macos-titlebar-double-click

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

What Problem This Solves

The macOS dashboard uses custom drag regions around its unified titlebar. Those regions always began a window drag, so the second click of a double-click was consumed and the normal titlebar zoom/maximize gesture never ran.

This routes left-mouse double-clicks on both native and WebView-backed drag surfaces to AppKit window zoom while preserving normal single-click dragging.

Evidence

Native proof limitation

A full macOS app build/test and visual Crabbox run were not available locally: this Mac has Command Line Tools but not full Xcode, no Parallels VM or SSH-accessible Mac is configured, and the AWS Mac no-spend/quota preflight requires unavailable broker-admin access. The PR macOS CI lane is therefore the authoritative full-Xcode validation gate.

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: S maintainer Maintainer-authored PR labels Aug 3, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the pe/fix-macos-titlebar-double-click branch 3 times, most recently from 54719ad to 574366f Compare August 3, 2026 21:43
@Patrick-Erichsen
Patrick-Erichsen force-pushed the pe/fix-macos-titlebar-double-click branch from 574366f to 5a80b11 Compare August 3, 2026 21:44
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. P2 Normal backlog priority with limited blast radius. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:02 PM ET / 22:02 UTC.

ClawSweeper review

What this changes

The PR adds a shared macOS dashboard drag-gesture handler that turns a left-button double-click into AppKit window zoom while retaining single-click dragging for native and WebView-backed titlebar surfaces.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. The branch centralizes the two dashboard drag entry points so a second left click calls AppKit zoom instead of starting another drag; current main still unconditionally calls performDrag on both routes. No actionable patch defect was found. The maintainer label keeps normal macOS-owner review in the loop, and the still-running macos-swift check should complete on the exact PR head before merge.

Likely related people: steipete is the strongest historical contributor signal (medium confidence); Vincent Koc is the most recent checkout-history contributor on the current controller path (medium confidence).

Priority: P2
Reviewed head: 5a80b11e23222833ac0312ffb156042a23be789b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-boundary repair with direct regression coverage and credible native AppKit proof; only normal exact-head macOS validation and owner review remain.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body provides after-fix AppKit behavior evidence, including an observed performZoom frame change and isZoomed=true, in addition to focused routing coverage; redact any future native screenshots or logs before posting.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides after-fix AppKit behavior evidence, including an observed performZoom frame change and isZoomed=true, in addition to focused routing coverage; redact any future native screenshots or logs before posting.
Evidence reviewed 7 items Current-main defect path: Current main routes every native drag-region mouse down directly to window.performDrag(with:), so the custom view does not preserve the titlebar double-click zoom gesture.
Shared owner boundary: The Control UI WebView bridge validates a trusted window-drag request and then also calls performDrag; the branch changes that caller to use the same shared gesture decision as native drag regions.
Proposed canonical repair: The new helper checks for a left mouse-down with click count two, invokes performZoom(nil), and otherwise preserves the existing drag call; both changed sources now use this one decision point.
Findings None None.
Security None None.

How this fits together

The macOS dashboard overlays custom native drag views around a unified titlebar and receives drag requests from the hosted Control UI WebView. Both paths hand an in-flight mouse event to the dashboard NSWindow, which either begins a drag or performs the standard zoom action.

flowchart LR
  A[Native dashboard drag region] --> C[Dashboard drag gesture]
  B[Control UI WebView drag message] --> D[Trusted drag request]
  D --> C
  C --> E{Left double-click?}
  E -->|Yes| F[AppKit window zoom]
  E -->|No| G[Window drag]
  F --> H[Dashboard frame changes]
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - The PR is mergeable but behind main; refresh the exact-head macOS Swift result after any rebase or new commit. The existing evidence is strong for the AppKit route, but a full interactive macOS dashboard recording would provide stronger end-user confirmation if a macOS owner considers it necessary.
  • Complete next step (P2) - No repair lane is needed: the submitted patch is coherent, already includes the relevant test, and the protected maintainer label requires normal human review rather than automated cleanup.
Agent review details

Security

None.

PR surface

Other +61. Total +61 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 4 73 12 +61
Total 4 73 12 +61

Review metrics

Metric Value Why it matters
Production versus test delta production +15, tests +46 The small production increase creates one shared owner-boundary helper and is paired with focused regression coverage for both gesture outcomes.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain one shared gesture decision for both dashboard drag producers, merge it after exact-head macOS validation and owner review, and keep the regression test guarding single-click drag plus double-click zoom.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain one shared gesture decision for both dashboard drag producers, merge it after exact-head macOS validation and owner review, and keep the regression test guarding single-click drag plus double-click zoom.

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

Yes—current main has a direct source-level reproduction path: both custom dashboard drag routes send a double-clicking mouse-down event to performDrag without checking click count. The PR body also supplies a deterministic AppKit harness result, but this read-only review did not execute it locally.

Is this the best way to solve the issue?

Yes. Routing the two existing producers through one small AppKit gesture helper is the narrowest maintainable repair and avoids one-sided native-versus-WebView behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded macOS dashboard interaction regression with visible but limited blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix AppKit behavior evidence, including an observed performZoom frame change and isZoomed=true, in addition to focused routing coverage; redact any future native screenshots or logs before posting.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides after-fix AppKit behavior evidence, including an observed performZoom frame change and isZoomed=true, in addition to focused routing coverage; redact any future native screenshots or logs before posting.

Label justifications:

  • P2: This is a bounded macOS dashboard interaction regression with visible but limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides after-fix AppKit behavior evidence, including an observed performZoom frame change and isZoomed=true, in addition to focused routing coverage; redact any future native screenshots or logs before posting.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix AppKit behavior evidence, including an observed performZoom frame change and isZoomed=true, in addition to focused routing coverage; redact any future native screenshots or logs before posting.

Evidence

What I checked:

Likely related people:

  • steipete: The local shortlog records Peter Steinberger as the dominant contributor across the dashboard controller and its smoke-test surface. (role: historical area contributor; confidence: medium; files: apps/macos/Sources/OpenClaw/DashboardWindowController.swift, apps/macos/Tests/OpenClawIPCTests/DashboardWindowSmokeTests.swift)
  • Vincent Koc: The current checkout's available blame boundary attributes the existing native drag-region implementation to this commit; earlier provenance is partially unavailable in the promisor checkout. (role: recent controller-path contributor; confidence: medium; commits: 5150670c72d9; files: apps/macos/Sources/OpenClaw/DashboardWindowController.swift)

Rank-up moves

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

  • Let the in-progress macos-swift check finish on the current head; rerun it after any rebase or code update.

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.

@Patrick-Erichsen
Patrick-Erichsen merged commit 00b459a into main Aug 3, 2026
166 of 172 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the pe/fix-macos-titlebar-double-click branch August 3, 2026 22:14
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
…r-admin-20260803

* origin/main: (89 commits)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  test(gateway): cover node exec approval relay (#118825)
  test(qa): add Active Memory recall coverage (#118963)
  test(qa): promote package-backed Docker artifact proof (#118826)
  test(qa): cover diagnostic event boundary (#118844)
  test(gateway): cover WebSocket runtime contracts (#118797)
  fix(signal): drain accepted websocket messages before shutdown (#118975)
  fix(plugins): remove stale load paths during uninstall (#118930)
  test(qa): cover bundled runtime discovery (#118922)
  chore(clawhub): cover plugin release policy contracts (#118971)
  test(qa): cover support export and stability (#118956)
  fix(feishu): enforce exact signed webhook request boundaries (#118758)
  ...
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…ansports-20260803

* origin/main: (120 commits)
  test(ui): add service-worker update primary QA proof (#118805)
  test(qa): cover CLI onboarding and plugin install sources (#118882)
  test(qa): cover remote logging boundaries (#118951)
  fix(sms): retry transient MMS failures before durable adoption (#118994)
  test(qa): cover video generation invocation (#118864)
  test(qa): cover media reference intake (#118858)
  test(qa): cover image generation task lifecycle (#118915)
  feat(sms): track Twilio delivery status (#118665)
  test(tasks): cover TaskFlow registry lifecycle (#118983)
  test(gateway): verify SSH tunnel fallback (#118818)
  fix(security): harden network tool output at canonical owner boundaries (#118984)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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