@devries-cameron20 / t3code-1 / commits / 596e1590df
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Read stdin before validating required image flag in codex test stub

- Move stdin capture earlier in fake codex script setup - Ensure stdin-based assertions remain available even when image validation fails

Julius Marminge committed Mar 1, 2026 at 16:34 UTC 596e1590dfd602ffcf1efd77b5d9a0eac465f374
1 file changed +1 -1
apps/server/src/git/Layers/CodexTextGeneration.test.ts
+1 -1
@@ -41,11 +41,11 @@ function makeFakeCodexBinary(dir: string) {
41 " fi",
42 " shift",
43 "done",
44 + 'stdin_content="$(cat)"',
45 'if [ "$T3_FAKE_CODEX_REQUIRE_IMAGE" = "1" ] && [ "$seen_image" != "1" ]; then',
46 ' printf "%s\\n" "missing --image input" >&2',
47 " exit 2",
48 "fi",
48 - 'stdin_content="$(cat)"',
49 'if [ -n "$T3_FAKE_CODEX_STDIN_MUST_CONTAIN" ]; then',
50 ' printf "%s" "$stdin_content" | grep -F -- "$T3_FAKE_CODEX_STDIN_MUST_CONTAIN" >/dev/null || {',
51 ' printf "%s\\n" "stdin missing expected content" >&2',