Skip to content

Preserve visible dictation transcript after stop - #332970

Merged
Megan Rogge (meganrogge) merged 2 commits into
mainfrom
agents/fix-vscode-issue-332324
Aug 27, 2026
Merged

Preserve visible dictation transcript after stop#332970
Megan Rogge (meganrogge) merged 2 commits into
mainfrom
agents/fix-vscode-issue-332324

Conversation

@meganrogge

Copy link
Copy Markdown
Collaborator

Summary

  • preserve the complete visible live transcript when a post-stop backend hypothesis is empty, shorter, or rewritten
  • accept a post-stop hypothesis when it clearly extends the visible transcript
  • retain existing final-transcript behavior when live transcript rendering is disabled

Fixes #332324

Validation

  • npm run compile
  • ./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/chatSpeechToTextService.test.ts --run src/vs/workbench/contrib/chat/test/browser/dictationSession.test.ts (23 passing)

Fixes #332324

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 27, 2026 16:19
@meganrogge Megan Rogge (meganrogge) added this to the 1.136.0 milestone Aug 27, 2026
@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) August 27, 2026 16:19

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.

Pull request overview

Preserves visible dictation text when the backend’s final hypothesis would remove or rewrite it.

Changes:

  • Adds final-transcript selection logic.
  • Enables preservation for live-rendered dictation.
  • Adds selection behavior tests.
Show a summary per file
File Description
chatSpeechToTextService.ts Adds preservation options and transcript selection.
dictationSession.ts Requests preservation for visible transcripts.
chatSpeechToTextService.test.ts Tests final transcript selection cases.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@meganrogge
Megan Rogge (meganrogge) merged commit b7f76c1 into main Aug 27, 2026
37 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/fix-vscode-issue-332324 branch August 27, 2026 17:00
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.

Dictation replaces or deletes the correct visible transcript after Stop, even with llmCleanup disabled

4 participants