Skip to content

fix: keep Task progress double-clicks from changing the window - #207937

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
openclaw/corrigir-minimizacao-ao-clicar-duas-vezes-7bf745
Nov 29, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
openclaw/corrigir-minimizacao-ao-clicar-duas-vezes-7bf745

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

What Problem This Solves

In the Mac app, double-clicking the text of a step in Task progress could change the window instead of keeping the interaction in the card. The Details button itself did not trigger the problem.

User Impact

Clicks inside the card stay in the card. Empty titlebar space still supports window dragging and double-clicks. No settings or layout changes are needed.

Why This Change Was Made

The Details panel is rendered outside the header, but Solid still delivers its mouse events to the header. The shared window-drag handler now checks that the pointer actually hit the drag surface or one of its descendants before passing the gesture to the desktop host.

Evidence

  • The browser regression opens Details, double-clicks its button, and double-clicks a step in the rendered card. Before the fix the step sent two window-drag requests; after the fix it sent none.
  • All 11 desktop titlebar browser tests and all 8 window-drag unit tests passed. The existing tests cover dragging and double-clicking blank header space. The final focused regression passed again after simplifying the test capture.
  • UI typecheck, focused lint, formatting, and diff checks passed. The browser test exercises the bundled Control UI with a synthetic Gateway and records requests at the macOS bridge; it does not launch AppKit or assert an OS animation.

@clawsweeper

clawsweeper Bot commented Nov 29, 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.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR prevents mouse events from portaled content from starting a native window drag through its logical header ancestor.

Example: Double-click the Task progress step “Verify the progress card” in the macOS Details panel.

  • Before: The header handler can send two native window-drag requests.
  • After: The handler sends no window-drag requests because the header is outside the physical event path.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch appears correct and has a relevant reported red/green browser regression; evidence stops at a mocked native bridge.
Proof confidence 🦐 gold shrimp (3/6) This PR is exempt from contributor proof requirements; supplied evidence exercises rendered Control UI content with a synthetic Gateway and mocked macOS bridge, without native AppKit output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Double-clicking Task progress text in the Mac app can change the native window instead of keeping the interaction within Details.
Reason: The maintainer-authored direction restores the intended distinction between passive titlebar chrome and panel content with a small shared-owner repair.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored draft addresses a current event-routing bug with a focused fix and no actionable findings.

Reviewed head: 3567794d45e42d257b84c9260e5642a8f9030d73

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI header handlers translate mouse gestures into native window-drag bridge messages; the desktop host handles the resulting window gesture.

flowchart TD
  A[Mouse press] --> B[Solid event delivery]
  B --> C[Shared window drag handler]
  C --> D[Physical path and interactive checks]
  D --> E[Native WebKit bridge]
  E --> F[Desktop window gesture]
Loading

Technical review

Best possible solution:

Keep the physical event-path check in the shared drag handler so portaled content retains normal interaction while passive header space remains draggable.

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

The header binding, portaled Details content, and missing current-main path check establish the failure route; the PR reports red/green browser reproduction, which this read-only review did not rerun.

Is this the best way to solve the issue?

The fix restores the existing drag-surface invariant at its shared owner without adding state, changing native contracts, or scattering event suppression across cards.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +5, Tests +33. Total +38 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 6 1 +5
Tests 1 33 0 +33
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 39 1 +38

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 28, 2026, 10:36 PM ET / November 29, 2026, 03:36 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 29, 2026 04:09
@vyctorbrzezowski
vyctorbrzezowski merged commit 1fcefc4 into main Nov 29, 2026
154 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/corrigir-minimizacao-ao-clicar-duas-vezes-7bf745 branch November 29, 2026 04:43
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit '1b246c09b0c1d41ed0f090f07fc50381decba90d': (574 commits)
  fix: stop the manual handoff UI test from hanging after completion (#207945)
  fix: surface favorites and recommended models in picker search (#201450)
  fix: show the saved quota reset when chat skips its only model (#207210)
  fix: avoid reloading unchanged plugins after Gateway boot (#207949)
  fix: keep Task progress double-clicks from changing the window (#207937)
  fix(doctor): continue repairs past retained conflicting exec approvals (#207951)
  test(reply): make account isolation assertion decisive (#207793)
  fix: keep task progress compact when reopening Details (#207943)
  fix(ui): restore the saved reading position after an empty search (#207673)
  fix: remove four Memory Wiki settings that had no effect (#207882)
  test(ios): verify send-at-tap feedback and work grouping (#207913)
  test(agents): reject unsuccessful live replay completions (#207724)
  fix(cron): keep a started cron turn running when its job is edited (#207947)
  improve(ui): put waiting for a free agent under automation timing (#201282)
  chore(ui): refresh control ui locales (#207514)
  fix: distinguish unresolved delivery failures from delivery history (#207897)
  test(doctor): require security check in proxy ordering assertion (#207912)
  fix: keep update rollback tests in sync with shipped workers (#207822)
  test(agents): fix provider header filtering coverage (#207732)
  refactor: remove the bundled GBrain adapter (#207924)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit 'a012e91c821705e443e42660c34e352623fb0a70': (584 commits)
  fix: confirm recovered config edits while the Gateway is busy (#207918)
  fix: make desktop chat presence avatars slightly smaller (#207966)
  fix: list and select routed Claude models without requiring Claude CLI (#207806)
  fix(ci): check out verifier before plugin preflight reuse
  test(reply): prove channel replacement on user messages (#207813)
  fix(release): bootstrap smoke uses persistent agent creation
  fix(ui): stop model picker Enter checks from failing on cold opens (#207963)
  fix: explain when a provider policy stops a chat reply (#207411)
  fix: show context usage during Claude CLI turns (#207036)
  fix: align the side panel with its resize divider (#207936)
  fix: stop the manual handoff UI test from hanging after completion (#207945)
  fix: surface favorites and recommended models in picker search (#201450)
  fix: show the saved quota reset when chat skips its only model (#207210)
  fix: avoid reloading unchanged plugins after Gateway boot (#207949)
  fix: keep Task progress double-clicks from changing the window (#207937)
  fix(doctor): continue repairs past retained conflicting exec approvals (#207951)
  test(reply): make account isolation assertion decisive (#207793)
  fix: keep task progress compact when reopening Details (#207943)
  fix(ui): restore the saved reading position after an empty search (#207673)
  fix: remove four Memory Wiki settings that had no effect (#207882)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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