Repository navigation
Conversation
|
🦞👀 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 20, 2026, 2:55 AM ET / 06:55 UTC (Revision 9). ClawSweeper reviewWhat this changesThe PR restores macOS permission requests, simplifies permission presentation, removes the unused Terminal permission, preserves mixed-version settings compatibility, and repairs validation fixtures. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. Both prior compatibility blockers are resolved, and this review found no additional actionable defects. Priority: P2 Review scores
Verification
How this fits togetherThe native Mac app reads operating-system permissions and sends their status to the Gateway-hosted Settings page. User actions return through the native bridge to request permission or open System Settings. flowchart LR
A[macOS permission state] --> B[Native permission owner]
B --> C[Settings snapshot]
C --> D[Dashboard Permissions page]
D --> E{User action}
E -->|Grant| F[Native permission request]
E -->|Settings| G[System Settings]
F --> A
G --> A
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +54, Tests +71, Docs +6, Other -357. Total -226 across 31 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep permission requests with the existing native owner, preserve shipped snapshot vocabulary, and provide explicit in-product System Settings recovery. Do we have a high-confidence way to reproduce the issue? Yes, from source: an ungranted binary permission becomes denied on current main, causing the page to open Settings without requesting registration; this review did not execute macOS. Is this the best way to solve the issue? Yes. Correcting the native status mapping reuses existing request dispatch, while input-only legacy filtering resolves compatibility without restoring the retired feature. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 025b994448d8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
a60d6e8 to
acc689d
Compare
Permission recovery UI — landing repair in validationThe Terminal permission remains removed. The updated page retains an explicit Open System Settings action alongside Grant for binary macOS Screen Recording and Accessibility states. These are mocked native-bridge captures, not additional TCC grant proof. Browser assertions verified both distinct native messages and no horizontal overflow at desktop and 390px widths. Before recovery action: After recovery action (working candidate; source review and tests in progress): |
|
Merged via squash.
|
…openclaw#153263) * fix: request missing macOS permissions and simplify permission status * test: await routed transcript startup event * test: measure responsive selector layout rows * test: isolate retired-agent cleanup fixture * test: settle palette searches and allocate Gateway port blocks * fix(macos): remove unused Terminal automation permission * fix(macos): preserve permission compatibility and recovery


What Problem This Solves
Fixes OpenClaw being absent from macOS Screen Recording settings after clicking its permission action, and makes the Permissions page easier to scan without colored status dots.
User Impact
Grant now requests access for ungranted macOS permissions. The unused Automation (Terminal) setting and its native permission probe are removed. Screen Recording and Accessibility also retain an explicit System Settings recovery action; confirmed denials still open System Settings. The approved Quiet text design uses neutral labels, a small checkmark for granted access, and aligned action buttons on desktop and narrow layouts.
No permission grants are changed automatically, and no migration or manual reset is required.
Why This Change Was Made
macOS's binary permission checks cannot distinguish a first request from a prior denial. Mapping every missing grant to
deniedskipped the native request and opened a settings pane with no app entry. Preserve requestable states using the existingnotDeterminedwire value, which shipped Gateway dashboards understand. Keep explicit iOS denial handling unchanged. New dashboards accept and discard the retiredautomationentry from shipped native apps at the input boundary, without restoring its row or command.Evidence
Before
Visual baseline, with the permission-state fix already applied:
After
Narrow layout
CI follow-up
The first CI run exposed an unrelated transcript fixture startup race: a one-second polling deadline expired before the shared SQLite worker reached provider startup. The fixture now awaits its existing provider event while retaining exact-once, routed ownership, status, and summary assertions. A temporary 1.1-second worker delay reproduced both failures before the repair and passed both afterward; that diagnostic delay is not part of the patch. All 19 transcript tests, targeted lint/typechecks, and fresh independent review pass.
The same run also reported a Chromium page crash during a chat context-menu right-click, without a crash dump. All nine unchanged chat-action browser tests pass locally. No retry logic, timeout increases, skipped tests, or weaker assertions were added. The updated head requires fresh hosted CI.
Additional CI investigation
The rebased main context exposed a responsive-layout test defect: inline button baseline offsets (0.34375 pixels) were rounded into two rows even though the flex items shared one row. Row classification now measures the actual layout item; button touch size, viewport containment, and overlap assertions remain unchanged. The original failure reproduces, all five repaired cases pass, and a deliberate extra-row mutation still fails. Independent P0–P2 review and targeted lint pass. No production layout change is included.
Shared-worker fixture follow-up
The next CI run exposed another unrelated fixture isolation failure: a preceding test initialized a process-global worker owner whose captured transport survived module reset and bypassed the cleanup test's mock. The fixture now mocks its immediate cleanup-store opening boundary, retaining every schema-policy and close assertion. The original fails and the repair passes in the same pinned predecessor order (4 tests). Deliberately removing production context forwarding still fails both policy observations; that diagnostic mutation was restored. The final cleanup test and two real shared-worker schema tests, targeted lint/typechecks, and independent P0–P2 review all pass. No production change, skipped test, or retry was added.
Signed macOS proof (Megaclaw)
ai.openclaw.mac.pr153263.debug, built from7478002a92c08fb93d8ab0c93c1bb11115ab3ee8, passed deep/strict signature verification on Megaclaw. It runs at a fixed separate path with task-owned profile/state and a loopback Gateway; the installed app is preserved. No Studio was used for the permission flow.kTCCServiceScreenCapturerequest attributed to this signed bundle. macOS then added OpenClaw-Permissions-153263 to Screen & System Audio Recording; the entry was absent beforehand.Latest CI recovery
The Gateway lifecycle fixture used a single ephemeral port even though startup claims five derived ports. A deterministic same-order witness reproduced the claimed-port failure. It now uses the existing block-aware test allocator; production code and assertions are unchanged, and all eight lifecycle cases pass.
The palette fixture raced the legitimate debounced search at 59 characters. Both viewports reproduced the extra request under the valid interleaving. Main landed an equivalent repair while this work was in progress; the real merge conflict was resolved using main's canonical palette file unchanged. Integrated Gateway, palette, native-bridge, and device-page proof passes 96 tests, selected repository checks pass, and independent P0–P2 fixture review is clean.
Current landing validation
v2026.9.5decoder and native fixture reproduce both pre-fix mixed-version failures. Six diagnostic cells verify the repaired input boundary in both upgrade directions, snapshot update events, and exact request-permission dispatch. This is real decoder boundary proof, not a live mixed-version app claim.10dea8emacOS CI ran 1,794 tests with one issue: that exact stale fixture. Earlier presence failures did not recur. Its UI11 job also passed. The known native-i18n/tooling failures share the corrected inventory cause, and core-types/Node12 share the corrected import cause. Fresh exact-head CI is still required after publication.Current head:
e146f0006e08e2a71f790e5b92b87c9f02ff9158. Fresh independent P0–P2 review passed with no actionable findings. All 108 focused tests, six mixed-version diagnostic cells, UI types/i18n/stylelint, native i18n, and canonical macOS lint pass. All 24 selected repository checks passed, and exact-head CI completed successfully, including macOS Swift tests and iOS smoke. Required CI and dependency-review gates are green. Native preparation and merge completed successfully. Landed as0a0909158896573253978ddcbb4eb9d0b901cc7c; remote main ancestry verified.Remove unused Terminal permission
The Terminal-specific permission had no feature callers beyond its own probe and settings wiring. Removed the row, native owner, bridge enum, and obsolete tests; updated the shared iOS switch and fixtures. Generic Apple Events signing support remains because approved native-host commands can control other apps (for example the Apple Notes skill). No existing OS grants or operator settings are modified.
Focused UI tests: 74 passed. UI typecheck, i18n verification, Swift formatting and canonical macOS lint passed. Independent P0–P2 review is scoped-clean. The local native build stalled in a filesystem atomic rename before compilation; it is not a compiler-failure result. Exact-head hosted macOS Swift CI subsequently passed; interactive grant/denial limitations remain as stated above. These screenshots use the real Control UI with a synthetic native bridge.
Before
After