Frequent "refresh credentials prompt" multiple times an hour #191488
Replies: 2 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, this is a token expiry plus flaky network combo. The OAuth token Copilot uses needs periodic refresh, and when that refresh request fails (dropped connection, timeout), VS prompts you instead of retrying quietly. Running multiple VS instances makes this worse, each one tries to manage auth independently. Try keeping a single instance open and see if the frequency drops. If you're on a corporate network or VPN, proxy configs sometimes drop long-lived connections and interfere with the background token refresh. Worth looping in your network team if that's your setup. A clean re-auth sometimes also helps if there's stale credential state: in VS go to Tools > Options > GitHub > Copilot, sign out completely, then sign back in. The mid-request interruption you're describing is the most painful part. Agent mode makes long calls, and if the token expires partway through it kills the whole thing. Not much to do about that beyond keeping the connection stable for the duration of a session. If it happens consistently even on a solid network with a single VS instance, that's worth escalating since it would point to something else going on. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Visual Studio
Body
Title pretty much sums up my issue. Additional context - using copilot in multiple visual studio 2026 enterprise instances, agent mode, claude opus 4.6, suspect that poor internet connection has something to do with this annoying behavior. One time "refresh credentials" screen popped up even while the agent was busy processing my request.
Beta Was this translation helpful? Give feedback.
All reactions