mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
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:
co-authored by
Claude Opus 4.6
parent
57cfaccceb
commit
6ec5890283
@@ -255,6 +255,7 @@ export async function checkAndRefreshToken(provider, credentials) {
|
||||
});
|
||||
|
||||
creds.providerSpecificData = updatedSpecific;
|
||||
creds.copilotToken = copilotToken.token;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user