Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/docker-auth-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ fi

if $roundtrip; then
$claude_ok && { claude -p "reply with exactly OK" --model sonnet 2>/dev/null | grep -qi OK || claude_ok=false; }
$codex_ok && { codex exec -m gpt-5.4-mini -c model_reasoning_effort="low" --skip-git-repo-check \
# Use the account's default model: a ChatGPT-account login rejects an explicit
# `-m gpt-5.4-mini` ("not supported when using Codex with a ChatGPT account"),
# which would make this live check a false negative.
$codex_ok && { codex exec -c model_reasoning_effort="low" --skip-git-repo-check \
"reply with exactly OK" 2>/dev/null | grep -qi OK || codex_ok=false; }
fi

Expand Down
5 changes: 4 additions & 1 deletion scripts/docker-login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ docker volume create "$CODEX_VOL" >/dev/null

# --- live, truthful "is it actually working?" checks (a present-but-stale token fails) ---
codex_live_ok() {
# Use the account's default model: an explicit `-m gpt-5.4-mini` is rejected by a
# ChatGPT-account login ("not supported when using Codex with a ChatGPT account"),
# which would make this check a false negative and trigger a needless re-login.
docker run --rm -v "$CODEX_VOL":/home/pentester/.codex --entrypoint bash "$IMAGE" -lc '
codex exec -m gpt-5.4-mini -c model_reasoning_effort="low" --skip-git-repo-check \
codex exec -c model_reasoning_effort="low" --skip-git-repo-check \
"reply with exactly OK" 2>/dev/null | grep -qiw ok' >/dev/null 2>&1
}
claude_live_ok() {
Expand Down