Skip to content

feat: add request timeout and retry controls#126

Open
yuefengw wants to merge 1 commit into
lessweb:mainfrom
yuefengw:codex/request-timeout-retry
Open

feat: add request timeout and retry controls#126
yuefengw wants to merge 1 commit into
lessweb:mainfrom
yuefengw:codex/request-timeout-retry

Conversation

@yuefengw
Copy link
Copy Markdown

Summary

  • Add
    equestTimeoutMs and maxRetries settings for main model Chat Completion requests.
  • Retry only transient failures such as network disconnects, request timeouts, HTTP 408/409/425/429, and 5xx responses.
  • Preserve user interrupts and non-retryable 4xx/configuration failures without retrying.
  • Document the new settings in Chinese and English configuration guides.

Verification

pm run test:single -- src/tests/settings-and-notify.test.ts

pm run test:single -- src/tests/session.test.ts

pm test

pm run build

Closes #13.

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.

[功能请求] 增加可配置的超时和自动重试机制,以应对间歇性网络中断

1 participant