Skip to content

fix(automation): require screen recording only on macos - #867

Merged
nixuuu merged 2 commits into
devfrom
fix/agent-device-install-error
Nov 16, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/agent-device-install-error

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Change

[email protected] reports screen_recording: unknown on Linux because Screen Recording is a macOS TCC permission. The worker incorrectly treated that state as a readiness failure, so installation ended with “Grant Screen Recording permission for desktop screenshots”.

Desktop preflight now enforces Screen Recording only on macOS. Linux and Windows can report unknown; Accessibility and the platform check remain required. Documentation and platform-specific readiness tests are included.

The Claude live permission integration test now waits for the gateway to persist the target turn as running before sending the live permission update. This removes a CI-only race between the fixture trace and WorkerLink ingestion.

Fixes: #846

Verification

  • bun run check:tmp apps/worker/src/agent-tools/adapters.test.ts — 18 tests passed
  • bun run check:tmp tests/integration/claude-live-permissions.test.ts — 3 tests passed
  • bun run lint -- apps/worker/src/agent-tools/preflight.ts apps/worker/src/agent-tools/fixtures.test-support.ts apps/worker/src/agent-tools/adapters.test.ts
  • bun run lint -- tests/integration/claude-live-permissions.test.ts
  • bun run --filter @canopy/worker typecheck
  • bun run format -- apps/worker/src/agent-tools/preflight.ts apps/worker/src/agent-tools/fixtures.test-support.ts apps/worker/src/agent-tools/adapters.test.ts tests/integration/claude-live-permissions.test.ts
  • git diff --check

@nixuuu
nixuuu enabled auto-merge (squash) November 16, 2026 10:03
@nixuuu
nixuuu merged commit 77c030a into dev Nov 16, 2026
16 checks passed
@nixuuu
nixuuu deleted the fix/agent-device-install-error branch November 16, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant