Skip to content

Voice Mode: migrate from vendored libs to VS Code patterns #321142

Closed

Description

The voice UI currently uses lit-html for templating and @preact/signals-core for reactive state, carried over from the standalone voice-code prototype. These should be migrated to VS Code's native patterns as the UX stabilizes.

1. lit-html → VS Code DOM construction

Replace html`` tagged templates in the 8 component files (~860 lines in src/vs/workbench/contrib/agentsVoice/browser/components/) with VS Code-style imperative DOM ($(), h(), document.createElement`).

Files:

  • headerComponent.ts
  • sessionListComponent.ts
  • feedbackDialog.ts
  • voiceBarComponent.ts
  • transcriptComponent.ts
  • statusRowsComponent.ts
  • onboardingComponent.ts
  • confirmationComponent.ts
  • agentsVoiceWidget.ts (render loop)

2. preact-signals → VS Code observables

Replace signal()/computed()/effect() in agentsVoiceWidget.ts with observableValue()/derived()/autorun(). Currently ~23 signals, 1 computed, 3 effects — all local widget state in a single file.

Ref: feedback from Henning Dieterichs (@hediet) on implicit vs explicit reader tracking.

cc Megan Rogge (@meganrogge)

Activity

  1. added this to the milestone on Jun 12, 2026
  2. modified the milestones: , 1.125.0 on Jun 12, 2026
  3. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jun 12, 2026
  4. locked and limited conversation to collaborators on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtinsiders-releasedvoice-mode

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions