Skip to content

chore: remove product Voice module end-to-end - #2426

Merged
jackwener merged 1 commit into
mainfrom
chore/remove-voice-module
Aug 7, 2026
Merged

chore: remove product Voice module end-to-end#2426
jackwener merged 1 commit into
mainfrom
chore/remove-voice-module

Conversation

@jackwener

Copy link
Copy Markdown
Member

Summary

Removes the unused product Voice stack (desktop STT, realtime voice coordinator, mic capture, Voice settings, host voice ops, and voiceAudio turn plumbing).

Nobody uses this module, so this PR deletes the implementation surface and the architecture that only existed for it:

  • Core: voice.ts contract, AppSettings.voice, capability voice, microphone OS permission
  • Runtime: voice-service, ephemeral voiceAudio / native audio part pipeline
  • Runtime-host: voice.* protocol ops, HostVoiceCoordinator, voiceOperationId on turn start
  • Desktop: IPC / preload API / settings page / composer wiring / mic entitlement copy
  • UI: composer mic control and voice-related copy
  • Docs: voice routing design + threat model

Intentionally kept

  • Bot platform media kinds (photo / voice / sticker message handling)
  • Memory voice_transcript candidate source enum
  • Model catalog endpoint-role metadata (general model capability, not product Voice UI)
  • Brand / writing "voice" copy

Base

Rebased onto latest origin/main. Compile-checked for core, storage, runtime, runtime-host, ui, and desktop (preload/main/renderer/storybook).

Test plan

  • Desktop builds and opens without Voice settings section or mic button
  • Settings nav still remaps legacy voice / voice-gateway keys to Models
  • Send message / turn.start still works without voiceOperationId
  • Bot inbound non-text (including platform voice media) still acks normally
  • Permission center no longer shows microphone row

@jackwener
jackwener force-pushed the chore/remove-voice-module branch from a9067b1 to 609635c Compare August 7, 2026 10:22
Delete the unused desktop/product Voice stack entirely: STT, realtime
coordinator, mic capture, settings, host ops, voiceAudio turn plumbing,
microphone OS permission, package exports, and audio endpoint-role
metadata. No migration or compatibility shims — treat the product as if
Voice was never shipped.
@jackwener
jackwener force-pushed the chore/remove-voice-module branch from a3f1b21 to c0bbb0d Compare August 7, 2026 10:25
@jackwener
jackwener merged commit 6bae934 into main Aug 7, 2026
10 of 11 checks passed
jackwener added a commit that referenced this pull request Aug 7, 2026
main has been red on `knip --workspace apps/desktop` since #2425, with
`format:check` red alongside it, which drags every open PR's typecheck job
red too (PR CI runs the branch merged with main).

The knip half is leftovers, not new decisions:

- #2425 deleted the CSS-contract suites but kept their helpers, so
  `assertCssRuleDecls` and `parseCssBlocks` lost their only callers. Removing
  them orphans the whole scanning subtree behind them (`cssRuleBody`,
  `splitSelectorList`, `stripCssComments`, the postcss block walk and the
  `CssBlock` type), which goes with them; `postcss` was that subtree's only
  use in this workspace and leaves devDependencies. What the file still owes
  its callers is `REPO_ROOT` and `readAllRendererCss`, which stay.
- #2426 removed the Voice module end-to-end, but `provider-connection-dialog`
  was reachable only from the deleted `voice-settings-page` and survived it.

The format half is just the formatter over three files that landed without
it: `tool-free-model-call.ts`, and `bootstrap-connections.ts` +
`connection-store.test.ts` from #2431.

No behaviour change in any of this.
jackwener added a commit that referenced this pull request Aug 7, 2026
)

main has been red on `knip --workspace apps/desktop` since #2425, with
`format:check` red alongside it, which drags every open PR's typecheck job
red too (PR CI runs the branch merged with main).

The knip half is leftovers, not new decisions:

- #2425 deleted the CSS-contract suites but kept their helpers, so
  `assertCssRuleDecls` and `parseCssBlocks` lost their only callers. Removing
  them orphans the whole scanning subtree behind them (`cssRuleBody`,
  `splitSelectorList`, `stripCssComments`, the postcss block walk and the
  `CssBlock` type), which goes with them; `postcss` was that subtree's only
  use in this workspace and leaves devDependencies. What the file still owes
  its callers is `REPO_ROOT` and `readAllRendererCss`, which stay.
- #2426 removed the Voice module end-to-end, but `provider-connection-dialog`
  was reachable only from the deleted `voice-settings-page` and survived it.

The format half is just the formatter over three files that landed without
it: `tool-free-model-call.ts`, and `bootstrap-connections.ts` +
`connection-store.test.ts` from #2431.

No behaviour change in any of this.
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.

1 participant