You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model selection times out in 3.5 seconds, fails prompt #342123
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.143.0-insider (e9f10b9), remote server 6756a73
OS Version: Windows 11 Enterprise 10.0.26300 (client), Linux/WSL: Ubuntu 24.04.4 LTS (remote agent host via tunnel)
Steps to Reproduce:
Connect Insiders to a remote agent host over a tunnel (Linux/WSL dev box).
Start a new chat and send a message, or change the model.
Many chats fail with:
(modelSelectionFailed) Copilot runtime managed-settings query exceeded 3.5 seconds while waiting for native MDM or GitHub policy resolution.
The error started with #341682 (Insiders 2026-10-16). It fails after about 3.6 s, on send, eager createSession, and model change (resolveChatConfig → resolveCopilotManagedSettings). It keeps recurring, so the 1-hour policy cache doesn't seem to help. The local Windows agent host works fine.
Likely cause: managedSettings.resolve now sits on the chat hot path with a hard 3.5 s timeout and no fallback. The SDK docs say it can hit the network and should stay off latency-critical paths.
Suggested fix: on timeout, fall back to the last known policy or to device-only policy and refresh in the background. Prefetch at client start.
Activity
chat: Fix failures when organization settings load slowly (#342167)