Prevent enterprise MCP tools from disappearing after reconnect - #318606
Prevent enterprise MCP tools from disappearing after reconnect#318606Will Stuckey (wstuckey) wants to merge 7 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the default account provider to refresh account state when network connectivity returns, and adjusts MCP registry timestamp/value handling to better preserve cached policy data.
Changes:
- Add a
mainWindowonlineevent listener to force-refresh the default account when the browser comes back online. - Initialize/fallback
mcpRegistryDataFetchedAtusing cachedaccountPolicyData. - Change MCP registry URL/access assignment to only occur when a registry result object is present.
|
@microsoft-github-policy-service agree |
|
joshspicer I'm attaching you to this because you got assigned to the related issue i opened up last month regarding this. This was a super simple fix and getting it merged would patch a huge issue with Enterprise MCPs! Thanks in advance! |
|
A very welcome fix! Great work Stuckey! Regards, |
|
This is a very annoying issue. LGTM! |
|
This issue has been very difficult to workaround. Thanks for the fix. |
|
Super painful bug, thanks for looking into it Will Stuckey (@wstuckey). |
26cbaa0 to
acadeb4
Compare
a2245f2 to
6a30aa6
Compare
|
joshspicer sorry to poke you, but can you take a look at this? getting this merged would really help my org |
Fixes #313493
Prevents enterprise-managed MCP tools from silently disappearing after network transitions by refreshing account policy data when connectivity returns and preserving known-good MCP registry data during transient lookup failures.
Verification:
npm run compile-check-ts-native