Skip to content

chat: fix voice context, question narration, and steering - #343549

Merged
Megan Rogge (meganrogge) merged 5 commits into
mainfrom
agents/gpt-live-voice-context-issue-fix
Oct 22, 2026
Merged

Megan Rogge (meganrogge) merged 5 commits into
mainfrom
agents/gpt-live-voice-context-issue-fix

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fixes user-reported GPT-Live voice context, questionnaire narration, and active-request handling:

  • GPT-Live can ask a follow-up without creating an agent questionnaire. Previously, delegation submitted only the latest user transcript (for example, “Dark”), without the question or original request. Include preceding idle/new-composer voice exchanges as labelled context for ordinary chat handoffs. Snapshot context before the answer, use the existing bounded input history, preserve transcription/delegation identity, and exclude structured question/approval replies. Clear context across target changes and disconnects.
  • Single-question forms can put the actual question in the carousel message and a short title in the field. Narration now includes “What should candyFactory do?” before “Function behavior” and the choices, including GPT-Live retries. Identical context/title text is not duplicated.
  • Multi-question forms now explicitly ask for one numbered field at a time, including retries and revisiting partially answered forms. The reported chocolate-file interaction exposed a mismatch: narration asked for both filename and contents, but the deterministic router stored the entire combined utterance as the filename. Multi-question narration now uses the current field instead of a compound form-level question, says to answer one question at a time, and advances to “Question 2 of 2” after the first answer. It does not guess how to split a combined utterance across fields. Single-question form context remains intact.
  • New voice handoffs during ongoing work default to steering across the owning chat widget, Agents voice bridge, and direct controller submission. Steering applies at the next provider-supported opportunity; it does not guarantee immediate cancellation or interruption. Idle requests and pending question/approval routing are unchanged. Explicit spoken queue overrides remain a follow-on and are not implemented.

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.

  1. While idle, request a task, let GPT-Live ask a follow-up, and answer briefly. Verify the submitted chat includes the original request, question, and answer.
  2. Trigger single- and multi-question forms. Verify the actual question is narrated and multi-question forms collect one numbered answer at a time before submitting.
  3. Answer a pending questionnaire or approval by voice. Verify it resolves that prompt rather than creating a new chat request.
  4. While the coding agent is working, speak a new instruction and verify it is sent as steering. Voice-only conversation during busy work must not be included in a later handoff.

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>
Copilot AI balanced review requested due to automatic review settings October 22, 2026 16:34
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>
@meganrogge Megan Rogge (meganrogge) changed the title chat: preserve GPT-Live voice question context chat: fix voice context, question narration, and steering Oct 22, 2026
@meganrogge Megan Rogge (meganrogge) added this to the 1.145.0 milestone Oct 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@meganrogge
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>
@meganrogge
Megan Rogge (meganrogge) merged commit f4b3423 into main Oct 22, 2026
59 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/gpt-live-voice-context-issue-fix branch October 22, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants