Skip to content

fix: retry Copilot token renewal server errors - #591

Merged
ericdallo merged 3 commits into
editor-code-assistant:masterfrom
emecii:fix/copilot-token-renewal-errors
Sep 15, 2026
Merged

ericdallo merged 3 commits into
editor-code-assistant:masterfrom
emecii:fix/copilot-token-renewal-errors

Conversation

@emecii

@emecii emecii commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #551.

GitHub Copilot token renewal now retries one transient gateway/service response after a 250 ms delay. The retry allowlist is limited to HTTP 500, 502, 503, and 504; 511 and other statuses remain single-shot. Failed responses retain the original body in both the exception message and data for diagnosis.

Validation:

  • clojure -M:test --focus eca.llm-providers.copilot-test — 13 tests, 77 assertions
  • bb test — 934 tests, 5,374 assertions
  • clj-kondo on changed source/tests — 0 errors, 0 warnings
  • Whole-tree clj-kondo only reports the pre-existing unresolved dir in test/eca/features/hooks_test.clj:259

Implementation assistance: OpenAI Codex.

  • Added an Unreleased changelog entry.

Comment thread src/eca/llm_providers/copilot.clj Outdated
Comment thread src/eca/llm_providers/copilot.clj Outdated
Comment thread src/eca/llm_providers/copilot.clj
Comment thread src/eca/llm_providers/copilot.clj Outdated
@emecii
emecii force-pushed the fix/copilot-token-renewal-errors branch from 5dce7f8 to 2b066bb Compare September 10, 2026 16:01
@emecii
emecii force-pushed the fix/copilot-token-renewal-errors branch from 2b066bb to 431742e Compare September 12, 2026 01:08
@ericdallo
ericdallo requested a review from zikajk September 14, 2026 13:37

@zikajk zikajk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@ericdallo
ericdallo merged commit 796c3d9 into editor-code-assistant:master Sep 15, 2026
9 checks passed
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.

oauth-renew-token` crashes with full HTML body when GitHub returns 5xx Unicorn page

3 participants