Skip to content

[Tracking] Webview→native VS Code migration: architecture review & cleanup #250

Description

@sydneyrenee

What we are supposed to be doing

Per CHAT_MIGRATION_PLAN.md, docs/migration/, docs/dynamic-models-*.md, and src/ux/README.md, the goal of the retire-webview effort is:

  1. Retire the webview/React UI and the end-of-life @vscode/webview-ui-toolkit.
  2. Express every interaction through native VS Code APIs — Chat Participant (vscode.chat.createChatParticipant), TreeView sidebar, QuickPick/InputBox, status bar, command buttons — instead of a custom message bus + HTML/CSP.
  3. Keep the neutral provider layer (provider-agnostic handlers + neutral history) with dynamic model fetching so model lists come from provider APIs rather than hardcoded maps.
  4. Migrate tests to Mocha (Microsoft-supported, runs in real VS Code/Electron).

Where we actually are (architecture review findings)

The native surface (src/ux/) + TaskManager is wired and active; extension.ts no longer registers a webview. But the migration is half-applied, leaving parallel/dead systems and a few live bugs:

Net assessment

Two strategic decisions drive the rest:

Test status on branch: npm run test:unit = 174 passing / 0 failing (Mocha).

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitecture / wiring / structural concerns

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions