Skip to content

Commit 5813075

Browse files
authored
fix(ce-code-review): call codex via command to bypass shell wrappers (#1076)
1 parent 8559e4c commit 5813075

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

skills/ce-code-review/scripts/cross-model-adversarial-review.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ run_codex() {
119119
# = true), so the streamed reasoning keeps PEERLOG growing and gives the idle watchdog a
120120
# liveness signal -- otherwise a long, quiet reasoning phase on a big diff could be
121121
# misread as a stall and reaped.
122-
codex exec - -C "$REPO_ROOT" -s read-only -o "$OUT" \
122+
# `command codex` bypasses any interactive shell function/alias a user has wrapped
123+
# around codex, so we hit the real binary.
124+
command codex exec - -C "$REPO_ROOT" -s read-only -o "$OUT" \
123125
-c 'model_reasoning_effort="high"' -c 'hide_agent_reasoning=false' < "$PROMPT_FILE" > "$PEERLOG" 2>&1 &
124126
local pid=$!
125127
[ "$prev" = 0 ] && set +m # group is already assigned; restoring silences job-control noise

0 commit comments

Comments
 (0)