Skip to content

Commit fc42fcb

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 7a8978c commit fc42fcb

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
@@ -477,10 +477,11 @@ When external delegation is active, follow this workflow for each tagged task. D
477477
**Use `cat ... | codex`, not shell redirects.** Codex CLI rejects `< file` with "stdin is not a terminal". Always pipe:
478478
479479
```bash
480-
cat /tmp/codex-task-XXXXX.txt | codex exec --approval-mode full-auto --quiet 2>&1
480+
cat /tmp/codex-task-XXXXX.txt | codex --approval-mode full-auto --quiet 2>&1
481481
```
482482
483-
Do not use: `codex exec ... < /tmp/codex-task-XXXXX.txt` (fails immediately).
483+
Do not use `exec` subcommand with piped stdin — `codex exec` does not accept `--approval-mode`.
484+
Do not use shell redirects (`< file`) — Codex rejects them with "stdin is not a terminal".
484485
485486
Piping also avoids `ARG_MAX` limits that would occur if passing the prompt as a CLI argument.
486487

0 commit comments

Comments
 (0)