You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -270,6 +270,8 @@ Your configuration will be picked up based on:
270
270
271
271
Check out the Codex docs for more [configuration options](https://developers.openai.com/codex/config-reference).
272
272
273
+
By default, the plugin pins review runs to Codex's read-only sandbox and maps write-capable rescue tasks to `workspace-write`. If your local environment cannot initialize the Codex sandbox, set `CODEX_COMPANION_SANDBOX_MODE=inherit` before starting Claude Code to let Codex apply your configured `sandbox_mode` directly. You can also set it to `read-only`, `workspace-write`, or `danger-full-access` to force a specific sandbox mode for plugin-launched Codex threads.
274
+
273
275
### Moving The Work Over To Codex
274
276
275
277
Delegated tasks and any [stop gate](#what-does-the-review-gate-do) run can also be directly resumed inside Codex by running `codex resume` either with the specific session ID you received from running `/codex:result` or `/codex:status` or by selecting it from the list.
Copy file name to clipboardExpand all lines: plugins/codex/agents/codex-rescue.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ Forwarding rules:
32
32
- If the user asks for a concrete model name such as `gpt-5.4-mini`, pass it through with `--model`.
33
33
- Treat `--effort <value>` and `--model <value>` as runtime controls and do not include them in the task text you pass through.
34
34
- Default to a write-capable Codex run by adding `--write` unless the user explicitly asks for read-only behavior or only wants review, diagnosis, or research without edits.
35
+
- If the user says Codex sandboxing, bwrap, bubblewrap, or Linux sandbox setup is failing, keep the single Bash call but prefix it with `CODEX_COMPANION_SANDBOX_MODE=inherit`. This lets Codex apply the user's configured sandbox mode instead of forcing the plugin's default task sandbox.
36
+
- If `CODEX_COMPANION_SANDBOX_MODE` is already present in the environment, preserve it. Do not unset it or replace it unless the user explicitly asks for a different sandbox mode.
35
37
- Treat `--resume` and `--fresh` as routing controls and do not include them in the task text you pass through.
Copy file name to clipboardExpand all lines: plugins/codex/skills/codex-cli-runtime/SKILL.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ Execution rules:
22
22
- Leave model unset by default. Add `--model` only when the user explicitly asks for one.
23
23
- Map `spark` to `--model gpt-5.3-codex-spark`.
24
24
- Default to a write-capable Codex run by adding `--write` unless the user explicitly asks for read-only behavior or only wants review, diagnosis, or research without edits.
25
+
- If the user reports `bwrap`, `bubblewrap`, Codex sandbox, or Linux sandbox setup failures, prefix the single `task` command with `CODEX_COMPANION_SANDBOX_MODE=inherit`. Example: `CODEX_COMPANION_SANDBOX_MODE=inherit node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" task --write "<raw arguments>"`.
26
+
- If `CODEX_COMPANION_SANDBOX_MODE` is already set in the environment, let it pass through unchanged unless the user explicitly requests another sandbox mode.
25
27
26
28
Command selection:
27
29
- Use exactly one `task` invocation per rescue handoff.
@@ -34,6 +36,7 @@ Command selection:
34
36
-`--fresh`: always use a fresh `task` run, even if the request sounds like a follow-up.
35
37
-`--effort`: accepted values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`.
36
38
-`task --resume-last`: internal helper for "keep going", "resume", "apply the top fix", or "dig deeper" after a previous rescue run.
39
+
- Sandbox override: `CODEX_COMPANION_SANDBOX_MODE=inherit` omits the app-server sandbox field so Codex uses its configured `sandbox_mode`. The variable also accepts `read-only`, `workspace-write`, and `danger-full-access`, but only set those explicit modes when the user asks for that exact sandbox behavior.
37
40
38
41
Safety rules:
39
42
- Default to write-capable Codex work in `codex:codex-rescue` unless the user explicitly asks for read-only behavior.
0 commit comments