Skip to content

fix(py): validate account usage timeouts before Duration conversion#24

Merged
upsetbit merged 1 commit into
masterfrom
agent/fix-py-account-usage-timeout-validation
Jul 16, 2026
Merged

fix(py): validate account usage timeouts before Duration conversion#24
upsetbit merged 1 commit into
masterfrom
agent/fix-py-account-usage-timeout-validation

Conversation

@upsetbit

Copy link
Copy Markdown
Contributor

Summary

  • convert Python account usage timeouts with the non-panicking Duration API
  • surface invalid values as typed invalidRequest errors before starting Codex
  • cover synchronous and asyncio callers for negative, NaN, infinite, and oversized finite values

Testing

  • UV_VENV_CLEAR=1 just ci
  • 1,000 synchronous and 1,000 asyncio adversarial timeout calls

Closes #19

@upsetbit upsetbit merged commit 9396dd5 into master Jul 16, 2026
11 checks passed
@upsetbit upsetbit deleted the agent/fix-py-account-usage-timeout-validation branch July 16, 2026 17:23
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.

fix(py): validate account usage timeouts before Duration conversion

1 participant