Repository navigation
Report a sandboxed shell instead of a missing permission - #21
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Inside Codex's
workspace-writeSeatbelt 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 readaccessibility: falseand asked the user to enable a switch that was already on.Change
statusaddssandboxed(sandbox_checkon the bridge's own pid).Desktoprefuses a sandboxed shell with "run outside the sandbox (in Codex, request escalation)" before the permission check.Verification (local, real product)
Built bridge, same machine, same shell (Kelp, which lacks the permission):
{"accessibility":false,"frontmost":"ChatGPT","frontmost_pid":60333,"locked":false,"sandboxed":false};observe Finder→ the existing missing-permission messagecodex sandbox -c sandbox_mode=workspace-write:{"accessibility":false,"frontmost":"","frontmost_pid":0,"locked":false,"sandboxed":true};observe Finder→ the new sandbox messageNot 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