Repository navigation
Voice: opt out of backend auto-narration (auto_narrate: false) - #325799
Merged
Megan Rogge (meganrogge) merged 1 commit intoJul 14, 2026
Conversation
This client drives narration itself via `requestNarration`, but the voice backend still auto-narrates session-context state transitions by default (the opt-out is per-session and defaults on for backward compatibility). Without opting out, replies would be narrated twice. Send `auto_narrate: false` on start_session and resume_session so the backend suppresses its inferred auto-narration and speaks only on explicit `request_narration`. The flag is sticky per session on the backend, so it does not need to be repeated on every session_context delta. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 803dc35b-1aee-4354-85c7-df6076293a49
Megan Rogge (meganrogge)
approved these changes
Jul 14, 2026
Megan Rogge (meganrogge)
marked this pull request as ready for review
July 14, 2026 15:51
Megan Rogge (meganrogge)
merged commit Jul 14, 2026
2968642
into
microsoft:megrogge/voice-backend-narrate-api
7 of 9 checks passed
This was referenced Jul 15, 2026
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.
Problem
The backend now supports client-driven narration: an explicit
request_narrationevent plus anauto_narrateopt-out (see infinity-microsoft/yolo#54602). PR #325682 adds therequestNarrationclient API, but the client still lets the backend auto-narrate every reply, so assistant responses are spoken twice (once by backend auto-narration, once by the explicit request).Solution
Send
auto_narrate: falsein thestart_sessionandresume_sessionpayloads so the backend stops auto-narrating and the client drives narration itself viarequestNarration.The param is additive and optional: an older backend that doesn't read
auto_narrateis unaffected, so this is not a breaking change.Tests
None added — this is a two-line change to the outbound session payloads in
voiceClientService.ts; there is no existing unit harness for these payloads. Verified manually against a local voice_code backend.Risks
auto_narrate(infinity-microsoft/yolo#54602). Against an older backend the flag is ignored and behavior is unchanged.Non-goals
requestNarrationAPI itself (already added by Voice: client-driven narration via explicit requestNarration API #325682).Stacked on
megrogge/voice-backend-narrate-api(#325682); base this PR there so the diff is just the opt-out.