Repository navigation
chat: fix voice context, question narration, and steering - #343549
Merged
Megan Rogge (meganrogge) merged 5 commits intoOct 22, 2026
Merged
Conversation
Include preceding voice exchanges when delegating a reply to chat, while keeping pending question and approval responses unchanged. Read form-level question context before field titles and choices. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Default new voice requests to steering while the owning agent is working. Preserve idle sends and pending question or approval responses, and document the behavior in accessibility help. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
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.
Copilot review overview
3 open issues
What changed in this PR
Preserves additional voice context for GPT-Live handoffs to chat and improves voice narration of agent questionnaires by including carousel/form-level questions.
Changes:
- Capture and prepend prior voice Q/A exchanges as labeled context when delegating to chat, with isolation across target/session/reconnect changes.
- Read out carousel/form-level question text before field title/options, without duplicating identical context/title.
- Send new voice requests as steering when a request is already in progress, instead of queueing behind ongoing work.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/common/voiceClient/voicePendingNarration.ts | Adds optional form-level context to question narration and avoids repeating identical context/title. |
| src/vs/workbench/contrib/chat/common/voiceClient/voiceLiveInputRouter.ts | Includes form message as context for first question/retries; avoids repeating context on later questions. |
| src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.ts | Sends voice requests as steering when chat has an in-progress request; passes form message into narration. |
| src/vs/workbench/contrib/chat/browser/voiceClient/voiceInputUtils.ts | Sends voice-submitted input as steering when a request is already running in the owning widget. |
| src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.ts | Snapshots “voice-only” exchange context and injects it into delegated send_to_chat tool calls. |
| src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts | Documents steering behavior for voice mode when the agent is working. |
| src/vs/sessions/contrib/chat/browser/voiceBridge.contribution.ts | Applies steering option when voice bridge submits input while a request is in progress. |
| src/vs/workbench/contrib/chat/test/common/voiceClient/voicePendingNarration.test.ts | Adds coverage for form-level question narration and de-duplication with title text. |
| src/vs/workbench/contrib/chat/test/common/voiceClient/voiceLiveInputRouter.test.ts | Adds coverage for first-question context + retry behavior only. |
| src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceSessionController.test.ts | Adds coverage for steering vs normal queueing and carousel-level question narration. |
| src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceInputUtils.test.ts | Adds coverage for steering behavior in acceptVoiceInput based on requestInProgress. |
| src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceClientService.test.ts | Adds coverage for voice-only context preservation, snapshotting, and isolation across changes. |
| src/vs/sessions/contrib/chat/test/browser/voiceBridge.test.ts | Adds coverage for steering behavior through the sessions voice bridge. |
Review effort: Lite
Retain voice-only context only for idle sessions or the new-session composer. Revoke stored and in-flight context when work begins, and do not restore busy-turn answers when the agent becomes idle. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Number the current question and avoid reading compound form prompts that invite multiple answers into one field. Preserve full form context for single-question prompts and document sequential voice answers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Megan Rogge (meganrogge)
enabled auto-merge (squash)
October 22, 2026 17:05
Capture the owning view model once and only steer when request progress is explicitly active. Cover missing model/progress state, missing view models, and normalized question titles and context. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2 tasks
roblourens
approved these changes
Oct 22, 2026
Megan Rogge (meganrogge)
deleted the
agents/gpt-live-voice-context-issue-fix
branch
October 22, 2026 17:53
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.


Summary
Fixes user-reported GPT-Live voice context, questionnaire narration, and active-request handling:
Busy-session retention: Voice-only exchanges while the coding agent is working are not retained for later handoffs. Starting work clears previously retained and in-flight voice context. A busy turn cannot regain retention when work finishes during its answer. Idle/new-composer clarification context is preserved; there is no punctuation-based intent guessing.
Accessibility help documents steering, busy-session retention, and answering one numbered question at a time. No new settings, policies, or protocol fields.
Validation
Latest sequential-question fix:
npm run build-fast -- --client-only— passed.npm run typecheck-client— passed../scripts/test.sh --reporter dot --run src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceClientService.test.ts --run src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceSessionController.test.ts --run src/vs/workbench/contrib/chat/test/common/voiceClient/voiceLiveInputRouter.test.ts --run src/vs/workbench/contrib/chat/test/common/voiceClient/voicePendingNarration.test.ts— passed, 362 tests. Includes the chocolate-file reproduction with exact sequential prompts, correctly separated submitted answers, single-question context, retries, partial-form revisits, and existing voice context/routing regressions.npm run eslint -- src/vs/workbench/contrib/chat/common/voiceClient/voicePendingNarration.ts src/vs/workbench/contrib/chat/common/voiceClient/voiceLiveInputRouter.ts src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.ts src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts src/vs/workbench/contrib/chat/test/common/voiceClient/voicePendingNarration.test.ts src/vs/workbench/contrib/chat/test/common/voiceClient/voiceLiveInputRouter.test.ts src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceSessionController.test.ts— passed.node --experimental-strip-types build/hygiene.ts src/vs/workbench/contrib/chat/common/voiceClient/voicePendingNarration.ts src/vs/workbench/contrib/chat/common/voiceClient/voiceLiveInputRouter.ts src/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.ts src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts src/vs/workbench/contrib/chat/test/common/voiceClient/voicePendingNarration.test.ts src/vs/workbench/contrib/chat/test/common/voiceClient/voiceLiveInputRouter.test.ts src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceSessionController.test.ts— passed.git diff --check— passed.Earlier combined context, narration, steering, and busy-retention validation:
./scripts/test.sh --reporter dot --run src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceClientService.test.ts --run src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceInputUtils.test.ts --run src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceSessionController.test.ts --run src/vs/workbench/contrib/chat/test/common/voiceClient/voiceLiveInputRouter.test.ts --run src/vs/workbench/contrib/chat/test/common/voiceClient/voicePendingNarration.test.ts --run src/vs/sessions/contrib/chat/test/browser/voiceBridge.test.ts— passed, 383 tests before the latest sequential-question change. The owning-widget and Agents bridge steering implementations and their tests are unchanged since that run.How to test
Reload the OSS window and connect GPT-Live Voice Mode in the Agents window.