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:
Manuel B.
2026-04-06 10:02:09 +02:00
committed by GitHub
parent 57cfaccceb
commit 6ec5890283

View File

@@ -255,6 +255,7 @@ export async function checkAndRefreshToken(provider, credentials) {
});
creds.providerSpecificData = updatedSpecific;
creds.copilotToken = copilotToken.token;
}
}
}