Repository navigation
smoke: wait for the new local chat in the Chat Sessions Local tests - #347394
Merged
Bryan Chen (bryanchen-d) merged 1 commit intoNov 11, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, although runtime validation is pending and missing dependencies limited the reported TypeScript check.
No open issues 🎉
What changed in this PR
This PR addresses a cold-window race in the Chat Sessions smoke tests by waiting for a new local chat session before sending a prompt, rather than accepting an intermediate Agent Host session.
Changes:
- Uses
waitForNewLocalChatViewSessionfor Local sessions opened in the chat view. - Removes the unused
waitForChatViewSessionChangeautomation helper.
No actionable findings remain. Runtime validation is still pending; the reported TypeScript check was limited by missing dependencies.
| File | Description |
|---|---|
test/smoke/src/areas/chat/chatSessions.test.ts |
Waits for a new local session and documents the cold-window race. |
test/automation/src/chat.ts |
Removes the unused generic session-change wait helper. |
Review effort: Balanced
Since #346729 removed the Copilot CLI row, Test Local session is the first test of the Chat Sessions suite and runs in a cold window. There, smoketest.openLocalChat still waits for workbench.action.chat.newLocalChat to register while the chat view binds its default Agent Host Copilot session. waitForChatViewSessionChange accepted that binding, so the prompt went to the Agent Host session and the local reply never came (13 Linux smoke failures on 12 unrelated PRs since). Use waitForNewLocalChatViewSession, as the other local chat suites do since #345913, and remove the looser wait, which has no other callers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bryan Chen (bryanchen-d)
force-pushed
the
copilot/vscode/chat-sessions-local-wait
branch
from
November 10, 2026 20:20
93a9dce to
591542e
Compare
Bryan Chen (bryanchen-d)
marked this pull request as ready for review
November 11, 2026 00:42
Bryan Chen (bryanchen-d)
enabled auto-merge (squash)
November 11, 2026 00:42
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 11, 2026
Bryan Chen (bryanchen-d)
deleted the
copilot/vscode/chat-sessions-local-wait
branch
November 11, 2026 00:45
Justin Chen (justschen)
added a commit
to justschen/vscode
that referenced
this pull request
Nov 11, 2026
Resolve the conflict in test/smoke/src/areas/chat/chatSessions.test.ts by taking main's version: microsoft#347394 landed the same Local-session readiness fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 Sessions › Test Local sessionhas failed 13 Linux Electron-Smoke jobs on 12 unrelated PRs since #346729 merged (Nov 10, 07:27 UTC). Before that, in 988 Linux smoke jobs over the previous 48 h, the only hit was on #346729's own branch. It times out after 120 s waiting forMOCKED_CHAT_SESSIONS_LOCAL_RESPONSE.Mechanism
#346729 removed the
Copilot CLIrow, soTest Local sessionis now the first test of the suite and runs in a cold window.smoketest.openLocalChatfirst waits up to 60 s forworkbench.action.chat.newLocalChatto register. Meanwhile the chat view binds its default session, which is Agent Host Copilot.openSessionwaited withwaitForChatViewSessionChange, which accepts any new binding, so it returned on that Agent Host session.Materialized untitled session agent-host-copilotcli:/untitled-… into real session agent-host-copilotcli:/…and_invokeAgent called for resource: agent-host-copilotcli:/…. This suite doesn't warm up the Agent Host, so no reply came. The view then switched to the empty local chat that the failure screenshot shows.Before #346729, the Copilot CLI editor test ran first and warmed the window, so the local chat command was already registered.
#345913 added
waitForNewLocalChatViewSessionfor exactly this race and switched Browser View, Chat Model Configuration and Chat Sandbox to it. Chat Sessions kept the looser wait.Change
'view'sessions inchatSessions.test.tsare Local, soopenSessionnow waits withwaitForNewLocalChatViewSession. It returns only once the view is bound to a newvscode-chat-session://local/session.waitForChatViewSessionChangehas no other callers, so this removes it.Validation
test/automationgives the same error set before and after the change (the errors are environment-only, from missing localnode_modules). PR CI compiles both projects.Electron-Smoke (shard 3/3)runs the suite. The flake hits roughly 1 in 10 shard-3 runs, so I'll watch the next few runs on main after this lands.