Skip to content

Model selection times out in 3.5 seconds, fails prompt #342123

Closed

Description

@torerik81

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:

  1. Connect Insiders to a remote agent host over a tunnel (Linux/WSL dev box).
  2. 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

  1. added a commit that references this issue on Oct 16, 2026
    1278559
  2. added
    unreleased
    on Oct 16, 2026
  3. added this to the 1.143.0 milestone on Oct 16, 2026
  4. added
    insiders-released
    and removed
    unreleased
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

insiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions