fix: pass codex flags through in the stdin-prompt branch

Follow-up to the previous fix: the stdin branch dropped "$@", so
options like -s read-only silently never reached codex. Stub now
records argv and tests assert flags + stdin prompt arrive together;
verified live (-s read-only => codex reports READONLY).
This commit is contained in:
admin committed 2026-07-07 16:58:04 +05:00
1 parent 32aaaa9b7a
commit 0cfec6880c
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -6,5 +6,5 @@ for a in "$@"; do [[ $prev == "-o" ]] && out=$a; prev=$a; done
echo '{"type":"thread.started","thread_id":"test-thread-123"}'
echo '{"type":"turn.completed"}'
stdin_content=$(cat)
echo "stub answer|$stdin_content" > "$out"
echo "stub answer|args=$*|$stdin_content" > "$out"
exit 0