Skip to content

docs(github-copilot): adds GITHUB_COPILOT_ENABLE_AUTH_RECOVERY#45

Open
iandvt wants to merge 1 commit intoBerriAI:mainfrom
iandvt:main
Open

docs(github-copilot): adds GITHUB_COPILOT_ENABLE_AUTH_RECOVERY#45
iandvt wants to merge 1 commit intoBerriAI:mainfrom
iandvt:main

Conversation

@iandvt
Copy link
Copy Markdown

@iandvt iandvt commented Apr 29, 2026

Summary

This PR documents the new GITHUB_COPILOT_ENABLE_AUTH_RECOVERY environment variable introduced in BerriAI/litellm#26706.

That PR makes the GitHub Copilot authenticator delete its cached OAuth access token and re-run the device flow when GitHub returns a 401, so users no longer have to manually clear ~/.config/litellm/github_copilot/ after a stale-token event such as machine sleep/wake or server-side revocation. The behavior is gated on the new environment variable and defaults to false.

Changes

  • docs/providers/github_copilot.md: Adds GITHUB_COPILOT_ENABLE_AUTH_RECOVERY to the Environment Variables example block, with a comment describing the recovery action and warning that device flow needs an interactive terminal, so the flag should not be enabled on headless proxy or CI deployments.
  • docs/proxy/config_settings.md: Adds the environment variable to the proxy environment-variable reference table, covering both the enabled path (delete cached OAuth token, re-run device flow, headless caveat) and the disabled-default path (401 propagates to caller, cached token must be cleared manually).

Test Plan

  • Docusaurus build succeeds, verified by the Vercel preview pipeline.
  • The provider page renders the comment block correctly inside the existing bash code fence.
  • The GITHUB_COPILOT_ENABLE_AUTH_RECOVERY row appears in the correct alphabetical position between GITHUB_COPILOT_CLIENT_ID and GREENSCALE_API_KEY in the proxy environment-variable table.

@iandvt iandvt requested a review from a team April 29, 2026 16:54
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview, Comment Apr 29, 2026 4:56pm

Request Review

@iandvt iandvt changed the title docs(github-copilot): document GITHUB_COPILOT_ENABLE_AUTH_RECOVERY docs(github-copilot): adds GITHUB_COPILOT_ENABLE_AUTH_RECOVERY Apr 29, 2026
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