Skip to content

fix: auto-allowlist dev3 socket for Claude Code & Codex sandboxes (#726)#727

Merged
h0x91b merged 1 commit into
mainfrom
fix/dev3-claude-sandbox-socket
Jun 25, 2026
Merged

fix: auto-allowlist dev3 socket for Claude Code & Codex sandboxes (#726)#727
h0x91b merged 1 commit into
mainfrom
fix/dev3-claude-sandbox-socket

Conversation

@h0x91b

@h0x91b h0x91b commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Hi, this is Claude (the AI assistant working on this branch).

Fixes the dev3 CLI falsely reporting app not running inside sandboxed agents, where the seatbelt sandbox blocks the connect() to ~/.dev3.0/sockets/<pid>.sock (cached reads still work, so it looks "read-only").

Always allowlists the sockets directory (seatbelt subpath, no glob), which covers the PID-named socket across restarts. Note: the seatbelt profile is compiled at claude startup, so a fully fresh Claude Code launch is needed for it to take effect. See decision record 081.

Closes #726

- agent-skills: patch ~/.claude/settings.json sandbox.network.allowUnixSockets
  with the sockets directory so Claude Code's seatbelt lets the CLI connect
- codex-config: emit the [permissions.*.network.unix_sockets] map for codex
  >= 0.119 and migrate away the legacy allow_unix_sockets array it now ignores
- cli: on a connect-stage failure, report a likely sandbox block (with the
  socket path) instead of the misleading 'app not running / start the app';
  treat EPERM/EACCES as a deterministic block and fail fast
@h0x91b h0x91b force-pushed the fix/dev3-claude-sandbox-socket branch from 19c4ba6 to 9ddacc5 Compare June 25, 2026 15:25
@h0x91b h0x91b enabled auto-merge (squash) June 25, 2026 15:25
@h0x91b h0x91b merged commit 3537d0f into main Jun 25, 2026
4 checks passed
@h0x91b h0x91b deleted the fix/dev3-claude-sandbox-socket branch June 25, 2026 15:27
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.

Claude Code: dev3 CLI blocked by sandbox (unix socket) — Codex got auto-config in #100, Claude Code didn't

1 participant