feat: codex-run.sh watchdog wrapper + stub tests

This commit is contained in:
admin committed 2026-07-07 15:58:24 +05:00
1 parent d0035498fa
commit fa433da81a
4 files changed
+114

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# fake codex: emits thread.started, writes last message file, exits 0
out=""
prev=""
for a in "$@"; do [[ $prev == "-o" ]] && out=$a; prev=$a; done
echo '{"type":"thread.started","thread_id":"test-thread-123"}'
echo '{"type":"turn.completed"}'
echo "stub answer" > "$out"
exit 0