Skip to content

fix: retry transient OpenAI Codex request failures#47

Merged
F16shen merged 2 commits intoAI-Shell-Team:mainfrom
guanzi008:fix/openai-codex-retry-stability
Mar 16, 2026
Merged

fix: retry transient OpenAI Codex request failures#47
F16shen merged 2 commits intoAI-Shell-Team:mainfrom
guanzi008:fix/openai-codex-retry-stability

Conversation

@guanzi008
Copy link
Copy Markdown
Contributor

Summary

  • retry transient OpenAI Codex backend failures instead of failing on the first malformed/incomplete response
  • retry transport-level request errors up to five attempts while keeping token refresh single-shot
  • add coverage for transient backend failures, transport timeouts, and retry exhaustion

Testing

  • .venv/bin/pytest -q tests/test_openai_codex.py

Comment thread src/aish/providers/openai_codex.py Outdated
@F16shen F16shen merged commit b7c46cb into AI-Shell-Team:main Mar 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants