Merge pull request #14 from skelz0r/codex/bypass-sandbox
run codex with --dangerously-bypass-approvals-and-sandbox
- 作者
- Sylvain Zimmer
- 时间
- 2026/04/28 23:14
- 提交
- af58762
这是一个合并提交,下面是和第一个上一提交相比的改动。
run codex with --dangerously-bypass-approvals-and-sandbox
这是一个合并提交,下面是和第一个上一提交相比的改动。
| @@ -63,7 +63,7 @@ Creates a persistent VM for the current directory (or reuses it if one already e | ||
| 63 | 63 | Each agent runs with its respective auto-approve flag: |
| 64 | 64 | - `claude` runs with `--dangerously-skip-permissions` |
| 65 | 65 | - `opencode` does not yet have an auto-approve flag (waiting on [this PR](https://github.com/anomalyco/opencode/pull/11833)) |
| 66 | 删除:- `codex` runs with `--full-auto` | |
| 66 | 新增:- `codex` runs with `--dangerously-bypass-approvals-and-sandbox` | |
| 67 | 67 | |
| 68 | 68 | Any extra arguments are forwarded to the agent command: |
| 69 | 69 | |
| @@ -522,7 +522,7 @@ _agent_vm_codex() { | ||
| 522 | 522 | _agent_vm_print_resources "$vm_name" |
| 523 | 523 | |
| 524 | 524 | local exit_code=0 |
| 525 | 删除: limactl shell --workdir "$host_dir" "$vm_name" codex --full-auto "${args[@]}" | |
| 525 | 新增: limactl shell --workdir "$host_dir" "$vm_name" codex --dangerously-bypass-approvals-and-sandbox "${args[@]}" | |
| 526 | 526 | exit_code=$? |
| 527 | 527 | [[ -n "$rm" ]] && { echo "Removing VM..."; _agent_vm_destroy; } |
| 528 | 528 | return $exit_code |