Repository navigation
Add active session context to voice requests - #331503
Merged
Megan Rogge (meganrogge) merged 4 commits intoAug 18, 2026
Merged
Conversation
Refs #329490 Co-authored-by: Copilot <[email protected]> Copilot-Session: 8432c00e-1eae-4634-9dee-bd83a314708b
Refs #329490 Co-authored-by: Copilot <[email protected]> Copilot-Session: 8432c00e-1eae-4634-9dee-bd83a314708b
Dmitriy Vasyura (dmitrivMS)
previously approved these changes
Aug 18, 2026
Megan Rogge (meganrogge)
enabled auto-merge (squash)
August 18, 2026 16:43
Contributor
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Adds an explicit “active coding session” signal to ptt_start voice messages so the backend can route lightweight questions differently while an agent/chat session is still running.
Changes:
- Extends
sendPttStartto includehas_active_sessionand updates socket payloads accordingly. - Computes “session in progress” at request time in
VoiceSessionControllerand forwards it on PTT start. - Updates/extends tests to validate the new field and controller behavior.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceSessionController.test.ts | Adds controller-level test coverage for hasActiveSession computed on each PTT start. |
| src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceClientService.test.ts | Updates service tests to assert has_active_session is present in outbound ptt_start. |
| src/vs/workbench/contrib/chat/common/voiceClient/voiceClientService.ts | Updates the public IVoiceClientService.sendPttStart signature to require hasActiveSession. |
| src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.ts | Computes whether a session is currently “in progress” and passes that into sendPttStart. |
| src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.ts | Adds has_active_session to the serialized ptt_start WebSocket message. |
| src/vs/workbench/contrib/chat/browser/speechToText/chatSpeechToTextService.ts | Ensures dictation PTT uses hasActiveSession: false. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 6/6 changed files
- Comments generated: 4
- Review effort level: Lite
Refs #329490 Co-authored-by: Copilot <[email protected]> Copilot-Session: 8432c00e-1eae-4634-9dee-bd83a314708b
Copilot stopped reviewing on behalf of
Megan Rogge (meganrogge) due to an error
August 18, 2026 17:01
Dmitriy Vasyura (dmitrivMS)
approved these changes
Aug 18, 2026
Megan Rogge (meganrogge)
deleted the
meganrogge/voice-active-session-context
branch
August 18, 2026 19:56
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Adds
has_active_sessionto eachptt_startrequest so the voice backend can route lightweight questions while coding work continues. The value reflects whether the currently focused or targeted Omni/chat-panel session is in progress; unrelated background sessions do not affect it. Dictation sendsfalse.Fixes #329490
Tests:
npm run typecheck-client./scripts/test.sh --grep "VoiceClientService|reports whether a coding session is in progress"