fix(github): sync top-level copilotToken after proactive refresh (#507)
checkAndRefreshToken() updated providerSpecificData.copilotToken but not the top-level creds.copilotToken. GithubExecutor.buildHeaders() reads the top-level key, so every request after a proactive refresh still sent the expired token, causing 401 "IDE token expired". Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
57cfaccceb
commit
6ec5890283
1 changed files with 1 additions and 0 deletions
|
|
@ -255,6 +255,7 @@ export async function checkAndRefreshToken(provider, credentials) {
|
|||
});
|
||||
|
||||
creds.providerSpecificData = updatedSpecific;
|
||||
creds.copilotToken = copilotToken.token;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue