Skip to content

feat(macos): guide missing native permissions in chat - #169635

Merged
steipete merged 17 commits into
mainfrom
steipete/typed-permission-missing
Oct 13, 2026
Merged

steipete merged 17 commits into
mainfrom
steipete/typed-permission-missing

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Native Mac commands report missing privacy permissions as unrelated text errors, so agents retry or send people hunting through System Settings.

User Impact

Missing native permissions now produce an inline Grant card. It names the affected Mac and permissions, uses the existing native grant/settings/confirmation/relaunch flows, and offers Try again only after the native snapshot reports effective access. The agent is told to wait for user confirmation.

The error contract is additive: PERMISSION_MISSING with { capabilities, state }, where state is not-determined, denied, restart-required, stale-grant, or disabled-in-openclaw. Computer Control reports Accessibility, Event Posting, Screen Recording, and its local toggle together. Commands stay discoverable while disabled; execution remains gated. Camera enumeration requires only the existing OpenClaw camera toggle (cameraEnabled); capture/PTZ separately require macOS Camera access (camera). Grant therefore enables enumeration without requesting capture access. Automatic notification overlay fallback retains its behavior.

Why This Change Was Made

PermissionManager owns native checks and typed failures. The Gateway preserves the error through node, computer, and exec tools and publishes it on the existing, run-scoped notice stream. Live notices and persisted tool results render the same card, including when ordinary tool output is hidden. Existing app confirmation remains authoritative; each click handles only the current primary remediation, so stale Accessibility does not accidentally trigger a lower-priority Screen Recording relaunch; a remote node cannot grant permissions on the Mac showing its card. Permission owners carry the current document/node check through awaited authorization reads to the final OS request. First-use Accessibility remains explicitly requestable; an unsuccessful Event Posting request opens Settings and offers conditional relaunch recovery for cached denials.

Desktop shell contract

Cards consume the shell-neutral optional capability NativeDeviceSettingsCapability.resolvePermission(request): Promise<void>. The request is { nodeId, nodeName?, command, capabilities, state }. The Mac adapter sends { type: "resolve-permission", request } through the existing native device-settings transport; the Tauri shell can implement the same capability with its own transport. Cards contain no WebKit/platform detection.

Snapshots add optional device.nodeId and optional permission-entry state. Contract-1 permissions.entries retains the released seven IDs; optional permissions.additionalEntries carries Event Posting, and the current UI validates and merges it. The host validates the active local node before effects, including after native consent. Resolving the action promise only acknowledges dispatch. Snapshot changes, local capability switches, and location mode determine grant completion; Try again sends a short user message through the existing chat path. Without a matching shell capability, the card directs the user to the OpenClaw Mac app on the target device.

The Gateway advertises node-permission-errors in hello capabilities. Native and headless node transports send typed error details only when this capability is present, preserving the closed invoke-result shape accepted by older Gateways. Both the direct native socket and app-hosted child pipe preserve details.

Remaining live proof

The lead owns the signed-app TCC/consent/relaunch/retry, node/document authority-negative, and stable-upgrade VM proof. Local Swift execution and synthetic UI proof do not replace that live test. No operator app, LaunchAgent, or live Gateway was changed.

Evidence

  • Executed native tests: 35 app functions and one shared transport function pass (41 parameterized cases). PermissionManager/location: 10 functions, 37.82 s; device-settings bridge: 9, 4.13 s; runtime permission errors: 4, 2.66 s; camera PTZ: 5, 2.44 s; manifest discoverability: 6, 3.17 s; app-hosted worker pipe: 1, 6.21 s; shared negotiated-details test with legacy/current variants: 1, 27.88 s. Both DEVELOPER_DIR and SDK were pinned to /Applications/Xcode.app. App/shared test builds pass in 790.02 s / 525.09 s wall. An enclosing OS sandbox denied operator files/services and network; all task .build directories were removed afterward. This proves native owners with injected OS services, not actual TCC consent.
  • Fresh native camera/bridge proof: on final camera-fix sources, 24 functions across five suites pass (38 parameterized cases, 62.44 s wrapper / 1.018 s test bodies), including all nine device-settings bridge functions. Pinned-Xcode app/test build passes in 788.09 s wall / 753.60 s Swift. Final Swift formatting/lint pass (2.62 s / 6.10 s); changed-test formatting/lint pass (0.99 s / 1.59 s).
  • Camera recovery regression: the updated card file passes 12 cases (73.80 s full wall / 31.46 s Vitest); both new cases failed on the previous renderer. Enumeration becomes retryable while Camera TCC is absent, while capture stays blocked. Canonical type-aware UI lint passes (140.84 s).
  • Focused UI: 16 tests pass across permission-card, persisted-history, and voice-reconciliation files (93.52 s wrapper, 69.91 s Vitest). The complete native-device-settings file passes 68 cases (16.97 s), with canonical typed lint passing in 26.02 s after an unchanged-test relocation to avoid a main insertion conflict. UI types pass (961.66 s including artifact-lock wait); canonical type-aware lint on the changed transcript owners passes (77.73 s). Fresh synthetic mock-Gateway flow passes (42.06 s): Grant only dispatches, refreshed native state enables retry, and retry sends I granted Screen Recording, try again.
  • Generated/build proof: boot-manifest generation passes (157.36 s), grouped UI build passes (106.83 s). Chat uses 30 requests and New Session 28, below 35; startup CSS is 50,160 B, below 51,200 B. The canonical Gateway E2E runtime prerequisite passes in 31m 24.1s, including native loading/Doctor-closure verification of 54 built plugin modules and final build stamps.
  • Ratchets: max-lines, line-cap, assertion safety, database worker/dialect, timeout races, mock exports, config/docs, plugin inventory, protocol, native locales, and Lit migration all pass. Prompt snapshots regenerate with no source change, token delta 0. Changed Swift formatting/lint pass (15.73 s / 13.83 s).
  • Retained owner proof: prior focused Gateway/agent/node-host/protocol tests cover typed errors, authenticated notices, model guidance, serialization, and negotiated old-Gateway compatibility. The continuation's source changes are the existing transcript-adapter placement, typed fixture repairs, removal of the unused camera authorization owner, isolated Swift defaults, voice-caption relocation, and regenerated boot metadata.
  • Prior live transport: pnpm openclaw --profile zc-perm gateway call node.invoke exercised isolated CLI → Gateway port 19813 → headless node, system.run with argv ["/usr/bin/true"] and needsScreenRecording: true. It returned PERMISSION_MISSING, { capabilities: ["screenRecording"], state: "not-determined" }, node/command projection, and no-retry guidance. This ran at prior head 416ccd8fa2a3e3e5c754c04dc7a2e0421979b6d3; no current signed-app TCC proof is claimed.

Current head: 8e2bec12aff743c47b3882f03bfbee72b94be5c8. Committed-branch autoreview is scoped-clean, with no actionable P0–P2 findings. This head fixes ClawSweeper's sole code finding on c112b53: the node-invoke fixture now republishes its runtime config snapshot after isolated-state replacement. Final focused proof passes (341.20 s launcher); the equivalent import variant passed all 28 tests (266.39 s). The existing permission assertions and cleanup are retained. A prior local teardown finding was disproved by the complete owner: close returns before permission preflight; the final review included the intact source and confirmed the bypass.

Pinned CI attribution

CI run 38325822517 completed on 8e2bec12aff743c47b3882f03bfbee72b94be5c8: 90 success, 16 skipped, 6 failure, including the aggregate openclaw/ci-gate. The five failed test jobs contain 28 cases across eight files. All final failed-job logs were fetched once or reused from the prior lane.

Fresh comparisons use immutable branch base d4820c404e000fbcbf608240260368d044363abb. This is the branch's last main ancestor; the branch has no later main merge. CI separately tested synthetic merge 18507507d1b3f4651eefb19baaaf37448539dcef with newer main parent 981e312ce1a203642f06de9cbfee9b74d2451712. Source inspection attributes the sidebar and strict-config failures to that newer main. Passing local replays are not reported as repairs.

The separate CI same-session cancellation remains unresolved: local head and base pass the earlier supervisor-state assertion and fail later on the inherited early-reply assertion. CI contains no retained runtime diagnostic artifact exposing the cancellation reason.

File Head result / wall Pinned baseline result / wall Classification
ui/src/e2e/chat-flow.navigation-presentation.e2e.test.ts 9 passed (9); 88.18s 9 passed (9); 115.56s CI-only upstream sidebar weight change: active 600 versus expected 500; both pinned trees pass.
src/agents/embedded-agent-runner/run/lane-controller.test.ts 6 passed (6); 263.87s 6 passed (6); 217.90s CI-only upstream strict runtime-config reader with unprepared fixtures; both pinned trees pass.
src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts 18 passed (18); 196.64s 18 passed (18); 93.96s CI-only upstream strict runtime-config reader with unprepared fixtures; both pinned trees pass.
test/e2e/qa-lab/runtime/gateway-heartbeat-session-routing.e2e.test.ts 1 failed (1); 207.31s 1 failed (1); 521.78s Inherited local captured-creation-reference failure on both; older CI cron status-error signature not reached.
test/e2e/qa-lab/runtime/native-worker-slot.e2e.test.ts 1 failed (1); 157.36s 1 failed (1); 250.09s Inherited: reply completes while the placement turn claim remains set.
test/e2e/qa-lab/runtime/required-native-same-session.e2e.test.ts 1 failed (1); 192.89s 1 failed (1); 221.52s Inherited line 626 early-reply assertion. Separate CI line 507 cancelled/completed signature remains unresolved; both local runs pass it.
test/e2e/qa-lab/runtime/node-worker-launch-wire.e2e.test.ts 1 failed (1); 252.27s 1 failed (1); 195.26s Inherited: workspace manifest has not advanced at the immediate post-reply assertion (line 284).
test/e2e/qa-lab/runtime/paired-node-worker-upgrade-wire.e2e.test.ts 1 failed (1); 222.26s 1 failed (1); 183.73s Inherited: blocked upload count is zero immediately after reply, before upgrade execution.
test/e2e/qa-lab/runtime/paired-node-worker-lifecycle-wire.e2e.test.ts 2 passed (2); 329.05s 2 passed (2); 346.52s Both pass: earlier lifecycle failure not reproduced; no repair claimed.
test/e2e/qa-lab/runtime/skill-library-worker-wire.e2e.test.ts 1 failed (1); 122.40s 1 failed (1); 115.00s Inherited: collaborator authoring observes queued status pending instead of the expected ok at line 364 on both trees.
src/gateway/gateway.sessions-send-hot-reload.e2e.test.ts 1 passed (1); 83.97s 1 passed (1); 80.14s Both pass: original admission failure not reproduced; no repair claimed.
ui/src/pages/plugins/plugin-skills.e2e.test.ts 6 passed; 204.16s Earlier stable main: 6 passed; 82.67s Settled: upstream fixture repair a150e15 already ported; no new work.
src/gateway/server.agent-input-authority.test.ts 15 passed; 880.75s Earlier stable main: 15 passed; 858.91s Settled: upstream communication-binding repair 4efde33.
src/gateway/server.sessions-send-resume.test.ts 8 passed; 648.62s Earlier stable main: 8 passed; 857.88s Settled: upstream communication-binding repair 4efde33.
src/gateway/server.sessions-send-owner-continuation.test.ts 5 passed; 469.79s Earlier stable main: 5 passed; 286.73s Settled: upstream communication-binding repair 4efde33.
ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts 8 passed; 174.56s Earlier stable main 3c79: 3 failed / 5 passed; 181.62s Settled inherited: same three failures in current CI.
scripts/e2e/mcp-code-mode-gateway-client.ts Prior parser proof passed Prior exact CI base parser failed Settled inherited duplicate declaration; upstream repair 62fa099.
src/worker/worker.fault-injection.test.ts Prior CI diagnostic expectation failure Source-attributed upstream expectation mismatch Settled inherited; upstream repair 6315f8a.
src/node-host/invoke.test.ts Permission case passed; 341.20s New regression absent Ours, already fixed at 8e2bec1: prepare the runtime config snapshot.

The first 11 rows are fresh exact-head/pinned-base runs. The remaining eight rows retain already-settled prior-lane evidence and explicitly identify earlier-main comparisons. Wall time includes wrapper preparation; the first baseline E2E invocation includes the 6m 18.4s runtime build. Each fresh invocation selected one file with --maxWorkers=1; no test timeout or assertion was weakened.

Autoreview: retained committed-branch scoped-clean, no P0–P2 findings. No new source delta required another review. ClawSweeper reviewed the exact head 8e2bec12aff743c47b3882f03bfbee72b94be5c8, updated 2026-10-13T00:34:23Z, with no code findings. Signed native authority/recovery and upgrade proof remain outstanding.

All 28 current-head failing cases

Every failing case in run 38325822517

  • ui-e2e-bundled ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts > Control UI new-session page mocked Gateway E2E > keeps cloud startup visible through failure (false, disconnect: true, replacement: false, cold scope: false)
  • ui-e2e-bundled ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts > Control UI new-session page mocked Gateway E2E > keeps cloud startup visible through failure (false, disconnect: true, replacement: true, cold scope: false)
  • ui-e2e-bundled ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts > Control UI new-session page mocked Gateway E2E > keeps cloud startup visible through failure (false, disconnect: false, replacement: false, cold scope: true)
  • ui-e2e-bundled ui/src/e2e/chat-flow.navigation-presentation.e2e.test.ts > Control UI mocked Gateway E2E > keeps every sidebar session stable while selecting sessions and supports sort modes
  • test/e2e/qa-lab/runtime/paired-node-worker-upgrade-wire.e2e.test.ts > paired node worker Gateway upgrade wire > recovers a completed workspace after a same-version build update and continues the same session
  • test/e2e/qa-lab/runtime/required-native-same-session.e2e.test.ts > settles required native empty workspaces and same-session follow-ups through public RPC
  • test/e2e/qa-lab/runtime/skill-library-worker-wire.e2e.test.ts > skill library mock-provider E2E through real Gateway and node worker > pins the creator's bundle across ordinary collaborator authoring, edits, turn boundaries, removal and worker replacement
  • test/e2e/qa-lab/runtime/native-worker-slot.e2e.test.ts > settles native A, deletes it, then runs B on the same one-slot node
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > runtime-owned lane deadline handoff > publishes bounded deadlines to nested session and global leases
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > runtime-owned lane deadline handoff > publishes unlimited deadlines to nested session and global leases
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > runtime-owned lane deadline handoff > keeps seeded bounded execution behind its own deadline and cleanup grace
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > runtime-owned lane deadline handoff > keeps seeded unlimited execution behind its own deadline and cleanup grace
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > runtime-owned lane deadline handoff > keeps runtime bounded execution behind its own deadline and cleanup grace
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > runtime-owned lane deadline handoff > keeps runtime unlimited execution behind its own deadline and cleanup grace
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > runtime-owned lane deadline handoff > restores idle recovery from actual completion only once when controls close
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > runtime-owned lane deadline handoff > does not clear a maintenance deadline when controls never published one
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt control authority > ignores retained controls after closed
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt control authority > ignores retained controls after superseded
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt control authority > ignores retained controls after revoked
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt control authority > ignores retained controls after replaced admission
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt control authority > ignores retained controls after rotated lifecycle
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt control authority > ignores retained controls after aborted input
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt cancellation unwind > parent Stop releases an uncooperative lane after one 30-second grace
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt cancellation unwind > attempt Stop releases an uncooperative lane after one 30-second grace
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt cancellation unwind > runtime timeout releases an uncooperative lane after one 30-second grace
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.attempt-controls.test.ts > attempt cancellation unwind > commits Stop before a reentrant abort callback creates another attempt
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.test.ts > embedded run session lane > keeps the session lease alive until every concurrent global admission settles
  • agents-embedded-agent-run src/agents/embedded-agent-runner/run/lane-controller.test.ts > embedded run session lane > keeps a session alive while another run's stalled global task times out

Production +1,560/−527 (net +1,033); tests +1,200/−166 (net +1,034); docs +33/−0; generated files +22/−10, measured against base d4820c404e000fbcbf608240260368d044363abb. Growth adds the typed native owner, negotiated transport contract, shared card, and focused boundary proof; the camera follow-up itself adds six net production lines.

All captures below were inspected and contain synthetic mock-Gateway data. The before image uses a legacy untyped error fixture on the candidate UI; it is not an older app capture. The current mock-Gateway flow proves native action dispatch, refreshed permission completion, and the exact user retry message.

Legacy untyped error Native Grant card
Legacy error Grant card
All permission states, restored history, and narrow layout
denied restart-required
denied restart-required
stale-grant disabled-in-openclaw
stale-grant disabled-in-openclaw
ready browser
ready browser
persisted multiple-narrow
persisted multiple-narrow

Release-note context: macOS native permission failures now show a Grant card with explicit recovery and user-confirmed retry instead of free-text failure loops.

@clawsweeper

clawsweeper Bot commented Oct 12, 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 docs Improvements or additions to documentation app: ios App: ios app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL labels Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR adds chat cards that guide users through missing Mac permissions and offer user-confirmed retry after access becomes effective.

Example: A screen.snapshot request targets Example Mac without Screen Recording access.

  • Before: The tool returns a text error directing the user to System Settings.
  • After: Chat shows Grant Screen Recording and enables Try again after the native snapshot confirms access.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful implementation with inspected presentation and boundary tests; native authority and upgrade coverage remain incomplete.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users receive disconnected permission errors and must find the right Mac settings while agents may retry prematurely.
Reason: The maintainer-authored direction adds contextual recovery while retaining native confirmation, execution gates, and user-controlled retry.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open: this maintainer-authored PR provides useful native permission recovery, and no new actionable code defect was found.

Priority: P2
Reviewed head: 8e0b932123ee11d96c67c4a6d95a2dc2bac14b23

Before merge

  • Add real behavior proof - Authority-chain proof required: exercise a matching local node in a stable signed Mac app, reject a mismatched node, and retire the document or reassign the node during awaited consent or authorization reads; demonstrate rejection before capability writes, OS requests, Settings navigation, and relaunch. Inspected synthetic screenshots establish card presentation, and the reported earlier-head CLI run supports headless refusal transport. Native grant, denial, relaunch, and successful user-confirmed retry remain explicitly outstanding. Supply redacted screenshots, recording, or logs without IPs, API keys, phone numbers, or non-public endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security review attention item - Source checks preserve native authority, but final-effect rejection still needs validation.
  • Resolve merge risk - Before merge, demonstrate rejection of mismatched nodes and documents retired during consent before capability writes, OS permission requests, Settings navigation, or relaunch.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supply signed-app grant, denial, relaunch, successful user-confirmed retry, and final-effect authority-negative evidence, plus a v2026.10.2 upgrade preserving settings/history and native/headless transport interoperability.
Agent review details

How this fits together

Native permission owners check Mac capabilities, node transports carry typed refusals to the Gateway, and chat renders recovery actions through the existing device-settings bridge.

flowchart LR
  A[Agent tool request] --> B[Gateway node dispatch]
  B --> C[Mac permission owner]
  C --> D[Typed permission refusal]
  D --> E[Chat permission card]
  E --> F[Native consent and settings]
  F --> G[Refreshed permission snapshot]
  G --> E
Loading

Technical review

Best possible solution:

Keep the shared typed refusal and existing native permission owners, with snapshot-confirmed recovery and explicit user retry.

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

The base native runtime returns free-text camera, location, and computer permission refusals; source inspection establishes the recovery problem without executing target code.

Is this the best way to solve the issue?

The approach fits the existing owners: native code controls consent and effective access, the Gateway preserves typed refusals, and chat derives recovery state without automatically repeating commands.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Complete native authority validation (recommended)
    Record allowed local recovery and forbidden-node/document cases through the signed Mac app, including retirement during awaited consent or authorization reads.
  2. Hold the PR
    Leave the PR open until a disposable signed Mac environment can supply the outstanding native evidence.

Provenance checked

  • Native permission requests and Settings recovery keeps the original intent (fix: request missing macOS permissions and simplify permission status #153263: Binary Mac permission checks could skip first-use registration; explicit requests and Settings recovery were retained.)
  • Location request coordination keeps the original intent (859280e: Concurrent callers must share one request owner and resume together; cancelled timeout work must not affect successor requests.)
  • Native command discoverability and implicit authorization requests changes intended behavior with a stated reason (unknown: Base code hid disabled camera, location, and computer capabilities and could request camera access during capture; complete introduction provenance is unavailable because historical blobs are missing.)
  • Chat tool rendering keeps the original intent (75df19c: Chat tools and attachments moved to Solid presentation; permission cards reuse the existing transcript bridge and native owner projection.)
  • Node-host command execution ownership keeps the original intent (3df4459: The system.run owner consolidated policy, native routing, and lifecycle formatting while retaining caller adapters.)

Testing

Proof path: in-process harness.

Security

Needs attention: Source checks preserve native authority, but final-effect rejection still needs validation.

Evidence

What I checked:

PR surface

PR surface statistics unavailable: the file list is incomplete.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves recovery for native permission refusals without evidence of an urgent current regression.
  • merge-risk: 🚨 compatibility: The new shell capability and negotiated node-error details must interoperate with released native snapshots and v2026.10.2 Gateways.
  • merge-risk: 🚨 security-boundary: Chat-driven remediation reaches local capability changes, native consent, OS permission requests, Settings, and relaunch across document and node authority boundaries.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

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

  • Add final-effect proof for matching and mismatched nodes, including document retirement or node reassignment during native consent.
  • Complete the v2026.10.2-to-candidate upgrade with preferences and history intact and verify native/headless transport negotiation.

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.

History

Review history (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-12T09:36:33.005Z sha 52ea7bc :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T10:04:08.947Z sha 52ea7bc :: needs real behavior proof before merge. :: [P2] [P2] Remove the camera authorization helper retired by this cutover
  • reviewed 2026-10-12T10:34:34.042Z sha 73761aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T11:03:16.098Z sha 73761aa :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T23:38:53.056Z sha c112b53 :: needs real behavior proof before merge. :: [P2] Initialize runtime configuration in the new node-host fixture
  • reviewed 2026-10-13T00:33:42.379Z sha 8e2bec1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T01:55:50.380Z sha 8e2bec1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T02:09:02.553Z sha 367f77a :: needs real behavior proof before merge. :: none

Reviewed October 12, 2026, 11:44 PM ET / October 13, 2026, 03:44 UTC (Revision 14).

@steipete
steipete marked this pull request as ready for review October 12, 2026 06:31
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 12, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 12, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 12, 2026
@steipete
steipete force-pushed the steipete/typed-permission-missing branch from 416ccd8 to a49eee3 Compare October 12, 2026 08:57
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 8e0b932123ee11d96c67c4a6d95a2dc2bac14b23
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/server/ws-connection/connect-hello.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@steipete
steipete force-pushed the steipete/typed-permission-missing branch from a49eee3 to ed4cf82 Compare October 12, 2026 09:02
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 12, 2026
@steipete
steipete force-pushed the steipete/typed-permission-missing branch from 73761aa to c112b53 Compare October 12, 2026 23:09
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit c0888b4 into main Oct 13, 2026
162 of 167 checks passed
@steipete
steipete deleted the steipete/typed-permission-missing branch October 13, 2026 04:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
* feat(macos): guide missing native permissions in chat

* fix(ui): keep permission actions typed and grouped at startup

* style: satisfy permission card lint checks

* fix(macos): complete one permission remediation at a time

* fix: preserve permission recovery across desktop upgrades

* fix(ui): preserve permission cards in current chat rendering

* fix(ui): use the existing transcript bridge for permission cards

* test: align permission fixtures with current client contracts

* refactor(macos): remove retired camera permission helper

* fix: finish permission transcript and test isolation

* chore(ui): regenerate permission card boot manifest

* test(ui): clear file hint before viewer dismissal

Reuse the focused viewer fixture repair from 73f1acd. Preserve tooltip-first Escape and keyboard focus while keeping the existing single-Escape dismissal assertion.

* test(ui): group native permission contract coverage

* fix(macos): separate camera discovery consent from capture access

* test(node-host): prepare permission invoke config snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: ios App: ios app: macos App: macos app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant