fix: Codex sandbox compatibility and command line accuracy#633
Conversation
roborev: Combined Review (
|
Two issues prevented Codex reviews from working: 1. Large diffs: Codex --sandbox read-only blocks .git/ access, so snapshot files are unreadable. The worker now reads the .git/ snapshot and inlines the diff content into the prompt sent via stdin. The DB keeps the truncated prompt; only the agent sees the full diff. 2. Broken bwrap: On systems without unprivileged user namespace support, the bwrap sandbox fails entirely. Add global config option `disable_codex_sandbox` that switches Codex to --full-auto mode. Hot-reloadable via config watcher. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2486ae7 to
f3d62af
Compare
roborev: Combined Review (
|
--full-auto still uses bwrap internally, so systems without unprivileged user namespace support still fail. Use --dangerously-bypass-approvals-and-sandbox instead, which truly disables the sandbox. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Two fixes: - Worker saves the actual agent command line to the job DB on each run. TUI displays the stored value instead of reconstructing it client-side (which missed daemon-only config like disable_codex_sandbox). Reconstructed as fallback for old jobs. - Use --dangerously-bypass-approvals-and-sandbox instead of --full-auto when sandbox is disabled, since --full-auto still uses bwrap internally. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
roborev: Combined Review (
|
Summary
--sandbox read-onlyblocks.git/access, making large-diff snapshot files unreadable. The worker now reads the.git/snapshot and inlines the diff content into the prompt sent via stdin. The DB keeps the truncated prompt; only the agent sees the full diff. Non-Codex agents continue using.git/snapshots directly.disable_codex_sandboxconfig option: On systems where bwrap fails (missing unprivileged user namespace support), add a global config toggle that switches Codex from--sandbox read-onlyto--dangerously-bypass-approvals-and-sandbox. Hot-reloadable via config watcher.CommandLine()to the job record when starting each run. The TUI displays this stored value instead of reconstructing it client-side, which missed daemon-only config likedisable_codex_sandbox.🤖 Generated with Claude Code