Skip to content

Commit ce597e3

Browse files
huntharoclaude
andcommitted
fix(ce-work-beta): use codex not codex exec for piped stdin delegation
`codex exec` does not accept `--approval-mode` flag. When piping a prompt via stdin, use `codex --approval-mode full-auto --quiet` directly (no `exec` subcommand). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6418f4a commit ce597e3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • plugins/compound-engineering/skills/ce-work-beta

plugins/compound-engineering/skills/ce-work-beta/SKILL.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,11 @@ When external delegation is active, follow this workflow for each tagged task. D
479479
**Use `cat ... | codex`, not shell redirects.** Codex CLI rejects `< file` with "stdin is not a terminal". Always pipe:
480480
481481
```bash
482-
cat /tmp/codex-task-XXXXX.txt | codex exec --approval-mode full-auto --quiet 2>&1
482+
cat /tmp/codex-task-XXXXX.txt | codex --approval-mode full-auto --quiet 2>&1
483483
```
484484
485-
Do not use: `codex exec ... < /tmp/codex-task-XXXXX.txt` (fails immediately).
485+
Do not use `exec` subcommand with piped stdin — `codex exec` does not accept `--approval-mode`.
486+
Do not use shell redirects (`< file`) — Codex rejects them with "stdin is not a terminal".
486487
487488
Piping also avoids `ARG_MAX` limits that would occur if passing the prompt as a CLI argument.
488489

0 commit comments

Comments
 (0)