Skip to content

Claude workflows - Fix bubblewrap home mount setup - #10502

Merged
potatoqualitee merged 1 commit into
developmentfrom
codex/fix-claude-bwrap-home
Aug 2, 2026
Merged

Claude workflows - Fix bubblewrap home mount setup#10502
potatoqualitee merged 1 commit into
developmentfrom
codex/fix-claude-bwrap-home

Conversation

@potatoqualitee

Copy link
Copy Markdown
Member

Summary

  • pre-create Claude sandbox bind-mount targets under the runner's root-owned /home directory
  • apply the repair to both the issue agent and manual review workflows
  • preserve subprocess environment scrubbing and bubblewrap isolation

Root cause

With CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1, Claude runs Bash through bubblewrap. When a protected config target such as /home/.mcp.json does not exist, bubblewrap attempts to create it beneath root-owned /home and aborts before Bash starts.

Verification

  • reproduced the missing-target failure in an Ubuntu 24.04 container and confirmed pre-creation makes the same bind operation pass
  • actionlint passes for claude.yml and claude-code-review.yml
  • git diff --check passes

Claude Code runs every Bash command under bubblewrap when
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is set. The sandbox protects config dotfiles
by bind-mounting over them and has bwrap create the mount point when the file
is missing; one set of those paths lands in root-owned /home, so the create
fails and the sandbox aborts before bash starts. Every Bash tool call in the
session then dies with "bwrap: Can't create file at /home/.mcp.json:
Permission denied", which reads like a per-command permission denial but is
sandbox bootstrap failing. Pre-create those paths in the bubblewrap setup step
so bwrap binds over something that already exists.

Ref: anthropics/claude-code#17258

(do nothing)
@potatoqualitee
potatoqualitee marked this pull request as ready for review August 2, 2026 12:13
@potatoqualitee
potatoqualitee merged commit a9dd440 into development Aug 2, 2026
12 checks passed
@potatoqualitee
potatoqualitee deleted the codex/fix-claude-bwrap-home branch August 2, 2026 12:14
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