Outcome
Long-running SDK sessions can refresh GitHub App credentials without restarting the session or forcing repeated OAuth flows.
Scope
- Add a supported credential-provider mechanism for lazy or proactive refresh
- Support S2S installation token re-minting before or after the one-hour expiry
- Support U2S refresh tokens and discoverable token lifetime policies
- Retry safely when a token expires during a turn
- Replace reliance on the experimental
session.auth.setCredentials workaround
- Preserve existing static token behavior
Acceptance criteria
Dependencies
Coordinate runtime credential update behavior with the bundled CLI. The basic gitHubToken acceptance fix remains tracked in github/copilot#30423.
References
Outcome
Long-running SDK sessions can refresh GitHub App credentials without restarting the session or forcing repeated OAuth flows.
Scope
session.auth.setCredentialsworkaroundAcceptance criteria
Dependencies
Coordinate runtime credential update behavior with the bundled CLI. The basic
gitHubTokenacceptance fix remains tracked in github/copilot#30423.References