Skip to content

Remote agent host sessions often fail to open in Insiders 1.143 ("Couldn't load this conversation", and re-opening doesn't retry) #341828

Closed

Description

Telemetry (agents/sessionOpen, Insiders, last 3 days) shows a jump on 1.143 builds in remote agent host opens that never bind the chat. Those opens end as timeout or cancelled, with no model bound:

Older Insiders 1.143 Insiders
Remote agent host, external low very high (most users hit)
Remote agent host, internal low elevated (most users hit)
Local agent host low low (unaffected)

By build, for remote: 16d22415b6 is normal, 4c6cba1504 is elevated, and 9ebdca5c15 is higher still. Older builds stay normal over the same hours, so this is client-side, not a service change.

Likely cause: f9eda24 (#340702). It's the only commit in 16d22415b6..4c6cba1504 that changes how the Agents window loads chats.

  1. Failed loads stay stuck.
    • The error path of ChatView._loadChat now keeps _currentChatResource and shows "Couldn't load this conversation. / Retry".
    • Before, it cleared _currentChatResource, so the next setChat reloaded the chat and recovered. That next setChat came from re-clicking the session, or from ChatGroupView re-running its autorun.
    • Now every later setChat for that chat takes the !chatChanged early return and never reloads.
  2. Replacing a provider cancels loads in progress.
    • Disposing a chat session content provider registration now cancels any content resolution in progress.
    • Remote agent hosts dispose and re-register their provider when the connection's clientId changes, for example on reconnect.
    • So a load that is waiting on the remote subscription rejects with a CancellationError that did not come from the view's own token. It then ends up stuck as in (1).
    • This part is reasoned from the code, not reproduced.

Local hosts register their provider once, which would explain why only remote is affected.

Suggested fix:

  • When the user re-opens a chat whose load failed (a setChat on a chat left unbound after the failure), retry the load.
  • Treat a CancellationError that isn't from the view's own token (the provider was replaced) as a reason to retry, not as a failure.
  • Optionally, report modelBindFailed instead of letting the open time out.

I can share the dashboard queries if useful.

Activity

  1. added
    bug
    regression
    on Oct 15, 2026
  2. Harini410 commented on Oct 15, 2026

    @Harini410

    Hi! I’ve submitted PR #341871 to address this issue and am continuing to work through the review feedback. If you have any additional feedback or suggestions, I’d appreciate them. Thank you!

  3. Harini410 commented on Oct 16, 2026

    @Harini410

    The fix for this issue is available in PR #341871.

    I went through several iterations based on Copilot's review feedback to address the identified concerns and refine the solution. The latest review recommends approval, with zero open findings.

    Thank you for your patience and for the valuable feedback throughout the process. I appreciate the time taken to review the changes and help improve the solution.

  4. added
    unreleased
    on Oct 16, 2026
  5. Harini410 commented on Oct 16, 2026

    @Harini410

    Thanks for the explanation, Giuseppe! I understand the difference between the two approaches now. I appreciate you taking the time to review my work and explain your reasoning. I learned a lot from working through this issue and the review feedback.

  6. 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

buginsiders-releasedperfregressionverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions