Rename Voice Mode voices to approved names - #329576
Conversation
There was a problem hiding this comment.
Pull request overview
Renames Voice Mode voices to approved product names and migrates legacy identifiers while retaining existing preview assets.
Changes:
- Adds canonical voice-ID normalization and persistence migration.
- Updates settings, onboarding labels, previews, and tests.
- Makes application-scope configuration migration opt-in.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/test/common/configuration.test.ts |
Tests application migration opt-in. |
src/vs/workbench/common/configuration.ts |
Adds application-target migration support. |
src/vs/workbench/contrib/agentsVoice/browser/agentsVoice.contribution.ts |
Renames settings and registers migration. |
src/vs/workbench/contrib/agentsVoice/browser/voiceModeOnboarding.ts |
Uses canonical IDs with legacy preview assets. |
src/vs/workbench/contrib/agentsVoice/test/browser/voiceModeOnboarding.test.ts |
Updates onboarding expectations. |
src/vs/workbench/contrib/chat/common/voiceClient/voiceClientService.ts |
Adds voice-ID normalization. |
src/vs/workbench/contrib/chat/browser/voiceClient/voiceClientService.ts |
Normalizes backend wire values. |
src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceClientService.test.ts |
Tests legacy-ID normalization. |
| switch (voiceId) { | ||
| case 'victoria_neutral': | ||
| return 'harper_neutral'; | ||
| case 'maya_neutral': | ||
| return 'birch_neutral'; | ||
| case 'daniel_neutral': | ||
| return 'junho_neutral'; | ||
| case 'kevin_neutral': | ||
| return 'oak_neutral'; | ||
| default: | ||
| return voiceId || 'birch_neutral'; | ||
| } |
There was a problem hiding this comment.
Good catch, fixed. normalizeAgentsVoiceId now explicitly allow-lists the four canonical IDs before the legacy-alias cases, and any other value (including manually-edited/unknown strings) falls back to birch_neutral instead of passing through unchanged. This matters most for the new migration path, which persists the result; an unrecognized value should not get baked into the closed four-value enum. Added an unknown_voice case to the parameterized test.
54f97b5 to
c949dfb
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b00ba5be-f710-4520-a5f4-3684b0facaf5
c949dfb to
9ef1045
Compare
Summary
Depends on https://github.com/infinity-microsoft/yolo/pull/65877 for backend canonical-ID support.
Testing
npm run transpile-client -- --outputDir out./scripts/test.sh --run src/vs/workbench/test/common/configuration.test.ts --run src/vs/workbench/contrib/agentsVoice/test/browser/voiceModeOnboarding.test.ts --run src/vs/workbench/contrib/chat/test/browser/voiceClient/voiceClientService.test.ts --timeout 30000(50 passing)npm run valid-layers-check