Skip to content

Report a sandboxed shell instead of a missing permission - #21

Merged
max1874 merged 1 commit into
mainfrom
max/status-sandbox
Nov 12, 2026
Merged

max1874 merged 1 commit into
mainfrom
max/status-sandbox

Conversation

@max1874

@max1874 max1874 commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Problem

Inside Codex's workspace-write Seatbelt sandbox, AXIsProcessTrusted() reads false and the window list is empty, even when the host app (ChatGPT/Codex) has the Accessibility permission. On 2026-11-12 a Codex agent read accessibility: false and asked the user to enable a switch that was already on.

Change

  • status adds sandboxed (sandbox_check on the bridge's own pid).
  • Desktop refuses a sandboxed shell with "run outside the sandbox (in Codex, request escalation)" before the permission check.
  • The skill tells the agent to escalate instead of asking for the permission; README sample updated; CLI test mock carries the new field.

Verification (local, real product)

Built bridge, same machine, same shell (Kelp, which lacks the permission):

  • outside: {"accessibility":false,"frontmost":"ChatGPT","frontmost_pid":60333,"locked":false,"sandboxed":false}; observe Finder → the existing missing-permission message
  • codex sandbox -c sandbox_mode=workspace-write: {"accessibility":false,"frontmost":"","frontmost_pid":0,"locked":false,"sandboxed":true}; observe Finder → the new sandbox message

Not covered: a granted, unsandboxed shell (accessibility true) was not run from this session; that path only gains a field that reads false.

🤖 Generated with Claude Code

Inside Codex's workspace-write Seatbelt sandbox, AXIsProcessTrusted() reads
false and the window list comes back empty even when the host app holds the
Accessibility permission. On 2026-11-12 a Codex agent took that reading at
face value and asked the user to enable a switch that was already on.

status now reports `sandboxed` (sandbox_check on our own pid), Desktop refuses
with "run outside the sandbox" before the permission check, and the skill
tells the agent to escalate rather than ask for the permission.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@max1874
max1874 merged commit 1e12b5b into main Nov 12, 2026
2 checks passed
@max1874
max1874 deleted the max/status-sandbox branch November 12, 2026 12:35
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