Skip to content

Commit 6607916

Browse files
committed
fix(macos): route Peekaboo through app bridge
1 parent dd7f2ef commit 6607916

4 files changed

Lines changed: 22 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Docs: https://docs.openclaw.ai
3030
- Memory, state, diagnostics, and config: split header-too-large embedding batches, keep QMD memory search enabled in transient mode, avoid SQLite WAL on NFS volumes, preserve recovery scheduling outside stuck-session warning backoff, and keep shell environment fallbacks contained in config write tests. (#92650, #92618, #92639, #91247, #92752) Thanks @mushuiyu886, @TurboTheTurtle, @849261680, and @gnanam1990.
3131
- UI/mobile/TUI: preserve dashboard session parent lineage, WebChat backscroll, reset soft command args, sidebar session picker interactivity, collapsed workspace files, resolved `/model` confirmation refs, and stale foreground iOS Gateway reconnects. (#90658, #92622, #91353, #92705, #92779, #92773, #92552) Thanks @luoyanglang, @TurboTheTurtle, @zhouhe-xydt, @NianJiuZst, @shakkernerd, @NarahariRaghava, and @Solvely-Colin.
3232
- Release and test reliability: extend slow Gateway/full-suite watchdogs, split local full-suite shards when throttled, stabilize plugin auth marker fixtures, avoid brittle provider-ref error text, and keep QA Lab bootstrap selection assertions aligned with flow-only scenarios. (#92652)
33+
- macOS Peekaboo bridge: update the embedded Peekaboo package to 3.5.2 and route bundled-skill CLI commands through the OpenClaw app bridge so they inherit its Screen Recording and Accessibility grants.
3334
- Agent routing: route subagent RPC callbacks addressed to an agent-shaped `--to` target to the correct session key instead of falling back to the main session, so WeChat (and other channel) session-key callbacks reach the intended subagent session. (#90231) Thanks @zhangguiping-xydt.
3435
- QQBot delivery: keep markdown table chunks self-contained across message boundaries by preserving table state across block deliveries, flushing unfinished table-row fragments as plain text, and detecting short pipe-terminated rows by column count so split rows are not sent as malformed markdown. (#92428) Thanks @sliverp.
3536

apps/macos/Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/macos/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let package = Package(
1919
.package(url: "https://github.com/swiftlang/swift-subprocess.git", from: "0.4.0"),
2020
.package(url: "https://github.com/apple/swift-log.git", from: "1.10.1"),
2121
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.9.0"),
22-
.package(url: "https://github.com/steipete/Peekaboo.git", exact: "3.4.1"),
22+
.package(url: "https://github.com/steipete/Peekaboo.git", exact: "3.5.2"),
2323
.package(path: "../shared/OpenClawKit"),
2424
.package(path: "../swabble"),
2525
],

skills/peekaboo/SKILL.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ cache and support `--json`/`-j` for scripting. Run `peekaboo` or
3131
`peekaboo <cmd> --help` for flags; `peekaboo --version` prints build metadata.
3232
Tip: run via `polter peekaboo` to ensure fresh builds.
3333

34+
## OpenClaw Bridge
35+
36+
The OpenClaw macOS app hosts Peekaboo Bridge at
37+
`~/Library/Application Support/OpenClaw/bridge.sock`. Before running Peekaboo
38+
from OpenClaw, select that socket so the CLI uses the app's Screen Recording
39+
and Accessibility grants instead of starting its standalone daemon:
40+
41+
```bash
42+
export PEEKABOO_BRIDGE_SOCKET="${PEEKABOO_BRIDGE_SOCKET:-$HOME/Library/Application Support/OpenClaw/bridge.sock}"
43+
```
44+
45+
Confirm routing with `peekaboo bridge status --json`; `hostKind` must be `gui`
46+
and the socket path must end in `OpenClaw/bridge.sock`.
47+
3448
## Features (all CLI capabilities, excluding agent/MCP)
3549

3650
Core
@@ -187,8 +201,9 @@ peekaboo type "Line 1\nLine 2" --delay 10
187201
Notes
188202

189203
- Requires Screen Recording + Accessibility permissions.
190-
- In OpenClaw subprocesses, use the default Bridge path. Do not pass
191-
`--no-remote` unless the calling process has its own Screen Recording grant.
204+
- In OpenClaw subprocesses, set `PEEKABOO_BRIDGE_SOCKET` as shown above. Do not
205+
pass `--no-remote` unless the calling process has its own Screen Recording
206+
grant.
192207
- Diagnose subprocess capture failures with `peekaboo bridge status --json`,
193208
then `peekaboo permissions status --json`, then a normal Bridge-routed
194209
capture such as `peekaboo image --mode screen --json`.

0 commit comments

Comments
 (0)