Repository navigation
Don't reuse a remembered remote agent host session type when this window lacks the host - #345156
Merged
Connor Peet (connor4312) merged 2 commits intoOct 30, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
…ion types Co-authored-by: hediet <[email protected]>
Copilot
AI
changed the title
[WIP] Fix new Chat Editor resource resolution error
Don't reuse a remembered remote agent host session type when this window lacks the host
Oct 30, 2026
Connor Peet (connor4312)
approved these changes
Oct 30, 2026
Connor Peet (connor4312)
marked this pull request as ready for review
October 30, 2026 15:41
Connor Peet (connor4312)
enabled auto-merge (squash)
October 30, 2026 15:41
Vritant Bhardwaj (vritant24)
approved these changes
Oct 30, 2026
Dirk Bäumer (dbaeumer)
approved these changes
Oct 30, 2026
Connor Peet (connor4312)
deleted the
copilot/fix-new-chat-editor-error
branch
October 30, 2026 18:34
Ross Wollman (rwoll)
added a commit
that referenced
this pull request
Oct 30, 2026
Resolve the conflict in isNewChatSessionTypeUsable with #345156, which now also rejects a remembered remote Agent Host type this window lacks. Keep that check unchanged and add the policy check for local Claude/Codex harnesses. *🤖 Authored with GitHub Copilot on behalf of @rwoll.* Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chat.userSelectedSessionTypeis stored per profile, so a session type for a remote agent host (remote-*) chosen in one window carries over to windows that don't have that host. In those windows Chat: New Chat Editor reuses it and opens a brokenuntitled-<uuid>editor: no chat editor is registered for that scheme, so the text model resolver fails withUnable to resolve resource.Changes
isNewChatSessionTypeUsable(chat/common/constants.ts): aremote-*type now also requires a registered chat session contribution in this window. Remote hosts register one per connected agent. If it's missing, the remembered selection falls back to the computed default.agent-host-*) are unchanged and stay usable before their contribution registers.constants.test.ts): covers a remembered remote type both without and with a registered contribution.Note for review
A remote type is now unusable until its host connects and registers, even in a window that does have the host. A New Chat Editor opened before that point uses the computed default instead of the remembered remote type.