mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-30 19:35:45 +01:00
16c0598ca1
The "Agents Window > Test Copilot CLI session" smoke test flakily timed out at `activateSessionByLabel`, which located the just-completed session row by its title and expected it to equal the mocked reply `MOCKED_COPILOT_RESPONSE`. That title is set asynchronously by a utility model after the first turn and races the untitled->committed session swap, so it is non-deterministically either the user's prompt (the synchronous fallback) or the generated reply. The test passed on macOS (title-gen landed) and failed on Linux (it didn't) in the same run. Decouple row identification from response verification: `activateSessionByLabel` now accepts one or several row substrings and matches a row containing ANY of them, while a separate `responseLabel` is verified against the active session's response bubble. The smoke test passes both the first prompt and the reply, so activation is deterministic regardless of when title generation completes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
VS Code Tests
Contents
This folder contains the various test runners for VS Code. Please refer to the documentation within for how to run them: