Skip to content

fix: enforce audit timeout across retries - #148

Open
00200200 wants to merge 1 commit into
anthropics:mainfrom
00200200:codex/enforce-total-timeout
Open

00200200 wants to merge 1 commit into
anthropics:mainfrom
00200200:codex/enforce-total-timeout

Conversation

@00200200

Copy link
Copy Markdown

Summary

Enforce claudecode-timeout as a deadline for the complete Claude audit, including retry attempts.

Previously, each of the three subprocess attempts received the full configured timeout, so a stalled run could last up to three times longer than requested. The runner now tracks one monotonic deadline, passes only the remaining time to each subprocess, and bounds retry backoff to that remaining budget.

Fixes #124.

Validation

  • pytest -q claudecode (174 passed)
  • python3 -m py_compile claudecode/github_action_audit.py claudecode/test_claude_runner.py
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

claudecode-timeout input is not enforced — action runs past the configured limit on a stalled scan

1 participant