Skip to content
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
07ce25d
feat(transcript): add cross-host document export pipeline
Aug 20, 2026
fffebf2
feat(transcript): wire real VS Code and HTML export consumers
Aug 21, 2026
1077fb9
build(deps): sync transcript workspace dependencies
Aug 21, 2026
c5d8a53
Merge branch 'main' into codex/backup-feat-web-shell-adapter-before-s…
Aug 21, 2026
1e9e2e4
feat(vscode-ide-companion): reuse WebShell transcript UI behind exper…
yiliang114 Aug 22, 2026
d9cc214
fix(vscode-ide-companion): grant wasm-unsafe-eval for shiki WASM when…
yiliang114 Aug 22, 2026
bff6f3b
fix(transcript): harden export and identity paths
Aug 22, 2026
2eeb635
Merge remote-tracking branch 'upstream/main' into codex/backup-feat-w…
Aug 22, 2026
360ea9a
Merge remote-tracking branch 'upstream/main' into codex/backup-feat-w…
Aug 22, 2026
78c07b4
feat(vscode-ide-companion): adopt WebShell transcript as default time…
yiliang114 Aug 22, 2026
7fc35c1
fix(vscode-ide-companion): reset WebShell transcript state on session…
yiliang114 Aug 22, 2026
8dc018b
fix(vscode-ide-companion): harden WebShell transcript session boundaries
yiliang114 Aug 22, 2026
0c15840
fix(transcript): harden identity and document export
Aug 23, 2026
6b6f98b
Merge branch 'main' into codex/backup-feat-web-shell-adapter-before-s…
Aug 23, 2026
c2cffbb
fix(vscode-ide-companion): adopt live ACP session id after load-failu…
yiliang114 Aug 23, 2026
bd09e19
fix(vscode-ide-companion): echo user prompt into WebShell transcript
yiliang114 Aug 23, 2026
195c53f
fix(vscode-ide-companion): keep WebShell transcript expanded and clea…
yiliang114 Aug 23, 2026
57476ff
fix(vscode-ide-companion): surface local error and interrupt notices …
yiliang114 Aug 23, 2026
864a645
fix(vscode-ide-companion): restore file-link opening from the WebShel…
yiliang114 Aug 23, 2026
6a2af3c
fix(vscode-ide-companion): restore contributed copy commands for the …
yiliang114 Aug 23, 2026
4c09167
fix(vscode-ide-companion): add localOnly marker to TextMessage state …
yiliang114 Aug 23, 2026
e171000
fix(vscode-ide-companion): restore /insight progress card and report …
yiliang114 Aug 23, 2026
f073b39
fix(vscode-ide-companion): finalize in-flight tools on timeout and pi…
yiliang114 Aug 23, 2026
a980d4b
fix(vscode-ide-companion): remove unreachable editMessage backend and…
yiliang114 Aug 23, 2026
4bb58a9
fix(vscode-ide-companion): drop write-only loadingMessage bookkeeping
yiliang114 Aug 23, 2026
2b0cafb
fix(vscode-ide-companion): align waiting-flag pin test with the argum…
yiliang114 Aug 23, 2026
16bdebb
fix(transcript): simplify adapters and preserve segment boundaries
Aug 23, 2026
939da45
fix(transcript): address cross-host review regressions
Aug 23, 2026
e56b158
fix(vscode-ide-companion): echo attached images into the transcript t…
yiliang114 Aug 23, 2026
d45ea6d
fix(vscode-ide-companion): track live VS Code theme for the transcript
yiliang114 Aug 23, 2026
6029e70
fix(vscode-ide-companion): copy every transcript block kind and map a…
yiliang114 Aug 23, 2026
4d8c6d7
fix(vscode-ide-companion): drop whitespace-only cached transcript rows
yiliang114 Aug 23, 2026
7db6940
fix(vscode-ide-companion): ship missing third-party notices in NOTICE…
yiliang114 Aug 23, 2026
72fcaee
fix(vscode-ide-companion): show a recoverable error state when the tr…
yiliang114 Aug 23, 2026
0e9e252
test(vscode-ide-companion): gate the transcript blocks wiring into th…
yiliang114 Aug 23, 2026
6b0d60b
test(vscode-ide-companion): gate the transcriptUpdate forwarding from…
yiliang114 Aug 23, 2026
ad0649d
docs(vscode): plan complete Web Shell cutover
yiliang114 Aug 23, 2026
8e55032
docs(webui): plan legacy package retirement
yiliang114 Aug 23, 2026
6d325cf
docs(webui): link cutover prerequisite
yiliang114 Aug 23, 2026
11664df
feat(vscode-ide-companion): reuse WebShell transcript UI behind exper…
yiliang114 Aug 22, 2026
b843439
fix(vscode-ide-companion): grant wasm-unsafe-eval for shiki WASM when…
yiliang114 Aug 22, 2026
ade51c2
feat(vscode-ide-companion): adopt WebShell transcript as default time…
yiliang114 Aug 22, 2026
778fee0
fix(vscode-ide-companion): reset WebShell transcript state on session…
yiliang114 Aug 22, 2026
2bad894
fix(vscode-ide-companion): harden WebShell transcript session boundaries
yiliang114 Aug 22, 2026
97872e4
fix(vscode-ide-companion): adopt live ACP session id after load-failu…
yiliang114 Aug 23, 2026
fb3ef2e
fix(vscode-ide-companion): echo user prompt into WebShell transcript
yiliang114 Aug 23, 2026
843670d
fix(vscode-ide-companion): keep WebShell transcript expanded and clea…
yiliang114 Aug 23, 2026
a3e12af
fix(vscode-ide-companion): surface local error and interrupt notices …
yiliang114 Aug 23, 2026
019b325
fix(vscode-ide-companion): restore file-link opening from the WebShel…
yiliang114 Aug 23, 2026
62b6560
fix(vscode-ide-companion): restore contributed copy commands for the …
yiliang114 Aug 23, 2026
e68382c
fix(vscode-ide-companion): add localOnly marker to TextMessage state …
yiliang114 Aug 23, 2026
7789664
fix(vscode-ide-companion): restore /insight progress card and report …
yiliang114 Aug 23, 2026
af98d96
fix(vscode-ide-companion): finalize in-flight tools on timeout and pi…
yiliang114 Aug 23, 2026
de3b2d8
fix(vscode-ide-companion): remove unreachable editMessage backend and…
yiliang114 Aug 23, 2026
ebebe45
fix(vscode-ide-companion): drop write-only loadingMessage bookkeeping
yiliang114 Aug 23, 2026
af938d6
fix(vscode-ide-companion): align waiting-flag pin test with the argum…
yiliang114 Aug 23, 2026
4aef24f
fix(vscode-ide-companion): echo attached images into the transcript t…
yiliang114 Aug 23, 2026
fd1a807
fix(vscode-ide-companion): track live VS Code theme for the transcript
yiliang114 Aug 23, 2026
39d6f24
fix(vscode-ide-companion): copy every transcript block kind and map a…
yiliang114 Aug 23, 2026
acc290f
fix(vscode-ide-companion): drop whitespace-only cached transcript rows
yiliang114 Aug 23, 2026
0ed655c
fix(vscode-ide-companion): ship missing third-party notices in NOTICE…
yiliang114 Aug 23, 2026
c7ccb74
fix(vscode-ide-companion): show a recoverable error state when the tr…
yiliang114 Aug 23, 2026
487f2b5
test(vscode-ide-companion): gate the transcript blocks wiring into th…
yiliang114 Aug 23, 2026
d7552f8
test(vscode-ide-companion): gate the transcriptUpdate forwarding from…
yiliang114 Aug 23, 2026
97661a7
docs(vscode): plan complete Web Shell cutover
yiliang114 Aug 23, 2026
d66a44f
fix(transcript): harden export sanitization and user identity
Aug 24, 2026
4c72d23
Merge remote-tracking branch 'origin/main' into codex/vscode-web-shel…
yiliang114 Aug 24, 2026
47e4487
refactor(web-shell): own daemon React bindings
yiliang114 Aug 24, 2026
483fb5c
fix(webui): preserve package entry filenames
yiliang114 Aug 24, 2026
41236c5
refactor(vscode): complete WebShell UI cutover
yiliang114 Aug 24, 2026
3088259
Merge branch 'codex/vscode-web-shell-cutover' into codex/remove-webui
yiliang114 Aug 24, 2026
3eff972
chore(vscode): refresh third-party notices
yiliang114 Aug 24, 2026
a80fb6a
fix(vscode): fill embedded chat viewport
yiliang114 Aug 24, 2026
79cb05e
Merge PR #9641 (WebShell transcript identity + HTML export) onto main
yiliang114 Aug 24, 2026
0155011
Merge remote-tracking branch 'origin/main' into codex/vscode-web-shel…
yiliang114 Aug 24, 2026
dbc3e7b
Merge branch 'main' into codex/backup-feat-web-shell-adapter-before-s…
yiliang114 Aug 24, 2026
58bd9a1
test(web-shell): disambiguate workspace visual locator
yiliang114 Aug 24, 2026
687c1ac
Merge branch 'codex/vscode-web-shell-cutover' into codex/remove-webui
yiliang114 Aug 24, 2026
a5bbb13
docs: clarify webui retirement prerequisites
yiliang114 Aug 24, 2026
bff4e63
fix(transcript): resolve export and CI blockers
yiliang114 Aug 24, 2026
79c96b1
fix(vscode): match embedded chat layout to host
yiliang114 Aug 24, 2026
672181b
fix(vscode): compact embedded chat styling
yiliang114 Aug 24, 2026
893f172
test(ci): cover dual Playwright installs
yiliang114 Aug 24, 2026
34d9ba7
Merge remote-tracking branch 'origin/codex/vscode-web-shell-cutover' …
yiliang114 Aug 24, 2026
6d5f61e
Merge branch 'pr-9641-rebase' into codex/remove-webui
yiliang114 Aug 24, 2026
a34245f
fix(vscode): align embedded chat density with VS Code
yiliang114 Aug 24, 2026
b4a9b9f
Merge remote-tracking branch 'origin/main' into HEAD
yiliang114 Aug 24, 2026
50509c2
fix(vscode): complete embedded composer integration
yiliang114 Aug 24, 2026
38da708
Merge remote-tracking branch 'origin/codex/vscode-web-shell-cutover' …
yiliang114 Aug 24, 2026
9678f76
refactor: retire legacy webui package
yiliang114 Aug 24, 2026
866f54e
Merge remote-tracking branch 'origin/codex/vscode-web-shell-cutover' …
yiliang114 Aug 24, 2026
3d0055d
chore: refresh lockfile after webui removal
yiliang114 Aug 24, 2026
f1304a4
fix(vscode): restore user message editing after cutover
yiliang114 Aug 24, 2026
372148f
Merge branch 'codex/vscode-web-shell-cutover' into codex/remove-webui
yiliang114 Aug 24, 2026
e43b214
refactor: narrow webui retirement to export and removal
yiliang114 Aug 24, 2026
fdb2c9f
fix(vscode): complete WebShell feature parity
yiliang114 Aug 25, 2026
c3622ea
Merge remote-tracking branch 'origin/main' into codex/vscode-web-shel…
yiliang114 Aug 25, 2026
9637acf
Merge remote-tracking branch 'origin/main' into codex/vscode-web-shel…
yiliang114 Aug 25, 2026
4e4d2ac
test(vscode-ide-companion): repair host-wiring tests for the WebShell…
yiliang114 Aug 25, 2026
5f74412
Merge branch 'main' into codex/vscode-web-shell-cutover
wenshao Aug 26, 2026
8571596
refactor(vscode-ide-companion): replace webui build scanner with an E…
qwen-code-dev-bot Aug 26, 2026
72777d0
fix(web-shell): keep ChatEditor commands prop referentially stable (#…
qwen-code-dev-bot Aug 26, 2026
ab7c037
Merge remote-tracking branch 'origin/main' into codex/vscode-web-shel…
qwen-code-dev-bot Aug 26, 2026
1288fb5
Merge remote-tracking branch 'origin/main' into resolve-9812
yiliang114 Aug 26, 2026
814cf9e
Merge branch 'main' into codex/vscode-web-shell-cutover
yiliang114 Aug 27, 2026
d8ea6fc
Merge remote-tracking branch 'origin/main' into codex/vscode-web-shel…
yiliang114 Aug 27, 2026
f1b4b3e
fix(vscode): distinguish the VS Code channel and localize its chrome
Aug 27, 2026
6600145
refactor(vscode): drop code orphaned by the WebShell cutover
Aug 27, 2026
e3e2d4e
docs(vscode): describe the daemon architecture the cutover actually s…
Aug 27, 2026
db024c9
Merge remote-tracking branch 'origin/main' into codex/vscode-web-shel…
Aug 28, 2026
86c1c68
Merge remote-tracking branch 'origin/main' into codex/vscode-web-shel…
qwen-code-dev-bot Aug 28, 2026
b97ca86
fix(vscode): repair round-2 review findings on the web-shell cutover …
qwen-code-dev-bot Aug 28, 2026
4f3737b
fix(vscode): repair round-3 critical findings on the web-shell cutove…
qwen-code-dev-bot Aug 29, 2026
18cfb52
Merge origin/main into codex/vscode-web-shell-cutover
yiliang114 Aug 29, 2026
67862b1
fix(web-shell): import daemon-react-sdk from web-shell instead of webui
yiliang114 Aug 29, 2026
5652529
fix(vscode): close WebShell UI regression gaps
yiliang114 Aug 29, 2026
5fa8d54
fix(vscode): initialize WebShell refs explicitly
yiliang114 Aug 29, 2026
70c5e8f
fix(vscode): narrow queued prompt edits
yiliang114 Aug 29, 2026
db8a081
fix(release): enumerate actual npm workspaces
yiliang114 Aug 29, 2026
422c132
Merge branch 'main' into codex/vscode-web-shell-cutover
yiliang114 Aug 29, 2026
1ac7bd0
fix(web-shell): include hasOlderHistory in the render-item callback deps
yiliang114 Aug 29, 2026
ca67964
fix(web-shell): report each connection error once to stop the inline …
yiliang114 Aug 29, 2026
3cf5e5f
fix(web-shell): remove duplicate history dependency
yiliang114 Aug 29, 2026
8a51002
fix(vscode): close remaining WebShell cutover regressions
yiliang114 Aug 29, 2026
6edee58
merge: sync main into vscode WebShell cutover
yiliang114 Aug 29, 2026
9129bbd
merge: keep legacy VS Code UI removed
yiliang114 Aug 29, 2026
3dfd191
Merge origin/main into codex/vscode-web-shell-cutover
yiliang114 Aug 29, 2026
9b915ef
Merge updated codex/vscode-web-shell-cutover
yiliang114 Aug 29, 2026
ff18048
fix(vscode): keep permission diff handling host-scoped
yiliang114 Aug 29, 2026
5d7fa3d
test(vscode): remove orphaned completion trigger test
yiliang114 Aug 29, 2026
19a088d
test(web-shell): update daemon SDK mock import
yiliang114 Aug 29, 2026
e227065
Merge remote-tracking branch 'origin/codex/vscode-web-shell-cutover' …
yiliang114 Sep 2, 2026
6dce879
refactor: retire legacy webui package
yiliang114 Sep 4, 2026
36e6aa2
merge: synchronize main for webui retirement
yiliang114 Sep 4, 2026
87cab06
fix(export): reject unsupported legacy JSONL
yiliang114 Sep 4, 2026
029b41b
docs(transcript): record the legacy HTML renderer deletion evidence
yiliang114 Sep 4, 2026
f7c3298
fix(docs): correct web-shell SDK hook names, daemon dir table, follow…
yiliang114 Sep 4, 2026
69bf31f
fix(scripts): catch bare packages/webui references in check:no-webui
yiliang114 Sep 4, 2026
73c32e1
fix(docs): drop dead Adapter Matrix citation and stale Chromatic line
yiliang114 Sep 5, 2026
e3bea8d
fix(comments): correct stale webui-era notes in SDK test and followup…
yiliang114 Sep 5, 2026
64a4373
fix(export): load transcript renderer from unpkg (#11035)
yiliang114 Sep 5, 2026
0ed194c
fix(release): verify export renderer before VSIX packaging
yiliang114 Sep 5, 2026
c21acf7
docs(daemon): retire the stale ACPAdapter and web-ui.md pointers
yiliang114 Sep 5, 2026
856618a
Merge remote-tracking branch 'origin/main' into codex/pr9812-closeout
yiliang114 Sep 5, 2026
189086f
docs: avoid retired webui path reference
yiliang114 Sep 5, 2026
c9fc076
fix: close WebUI retirement review gaps
yiliang114 Sep 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 185 additions & 0 deletions docs/design/2026-08-23-vscode-web-shell-cutover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
# Complete the VS Code Web Shell cutover

Status: Draft

Depends on [#9719](https://github.com/QwenLM/qwen-code/pull/9719).

## Goal

Make the VS Code companion use Web Shell for the complete chat experience, not
only the transcript. After this change, the extension keeps its ACP process and
VS Code host integrations, while Web Shell owns the visible chat UI and its
interaction state.

This is the first of two follow-up changes. The second change removes the
remaining repository consumers and deletes `packages/webui`.

## Current state

PR #9719 replaces the legacy VS Code message timeline with
`WebShellTranscript`, but the companion remains a hybrid UI:

- 15 production source files in the VS Code companion still import
`@qwen-code/webui`.
- The composer, completion menu, permission drawer, Ask User Question dialog,
session selector, header, onboarding, image preview, model controls, icons,
shared types, and utility functions still come from `packages/webui`.
- 69 production source files in Web Shell import
`@qwen-code/webui/daemon-react-sdk`.
- `@qwen-code/web-shell` declares `@qwen-code/webui` as both a peer dependency
and a development dependency.

The full `WebShellWithProviders` entry point cannot replace the VS Code app
directly. It expects the daemon HTTP/SSE runtime, while the extension owns an
ACP connection and exchanges messages with the webview through
`postMessage`. Switching the extension to the daemon protocol is not required
to consolidate the UI and would turn a UI migration into a runtime migration.

## Decisions

### Keep ACP as the VS Code runtime boundary

The extension host continues to own process lifecycle, authentication,
workspace trust, ACP session transport, diff editors, and VS Code APIs. The
webview continues to receive typed host events and send typed actions.

This change does not add a daemon HTTP server, a loopback port, or a second
session owner to the extension.

### Add a controlled Web Shell host entry point

Web Shell will expose one controlled entry point for embedded hosts. It owns
the transcript, composer, permission and question surfaces, session/history
presentation, attachments, and model/approval controls. Its host contract is
limited to state received from the runtime and actions that must cross the
webview boundary.

The host contract covers these existing capabilities:

| State supplied by the host | Actions sent to the host |
| --- | --- |
| Active session and session summaries | Submit and cancel a prompt |
| Transcript blocks and streaming state | Create or switch session |
| Pending permission and question requests | Respond to permission or question |
| Models, approval mode, commands, and skills | Change model or approval mode |
| Context usage, authentication, and account state | Request completion and authentication |
| Workspace files and pasted images | Open a file, diff, report, or external link |

The contract is owned by `@qwen-code/web-shell`; it is not a new workspace
package and it does not introduce another shared `Message[]` model. Transcript
data continues to use the canonical SDK `DaemonTranscriptBlock[]` contract.

### Make Web Shell self-contained

The daemon React providers and hooks currently stored under
`packages/webui/src/daemon` belong to the Web Shell runtime integration. They
move under `packages/web-shell` and Web Shell stops importing or declaring
`@qwen-code/webui`.

If the low-level provider API must remain available to external Web Shell
embedders, it will be exported from a Web Shell subpath. It will not be moved
to a new package. The batteries-included `WebShellWithProviders` entry remains
the preferred daemon integration.

### Delete replaced VS Code code in the same change

The cutover is not complete while two implementations remain. When the
controlled Web Shell surface owns a capability, the corresponding companion
component, hook, state branch, compatibility re-export, style import, and test
is removed in the same PR.

The extension may keep code only when it is a real VS Code host capability,
such as opening files, showing native diffs, reading the active editor,
workspace file search, clipboard integration, or extension lifecycle.

## Scope

The PR completes and verifies these user flows:

- onboarding and authenticated empty states;
- start, cancel, and resume a conversation;
- streaming assistant text and expandable thought;
- all tool-call states and plan rendering;
- Bash/Edit permissions, including every response option;
- Ask User Question, including multi-question answers;
- history opening, session selection, new session, and late-frame isolation;
- composer input, slash commands, file completion, skills, images, and active
editor context;
- approval mode, model selection, thinking mode, context usage, and account
access;
- copy actions, file links, report links, and VS Code diff actions;
- error, cancellation, authentication, and reconnect states.

User-message edit/rewind is an explicit parity decision. It must either be
restored in Web Shell and tested or be documented as a deliberate breaking
change; it cannot disappear implicitly during the cutover.

## Out of scope

- Replacing ACP with daemon HTTP/SSE in the VS Code extension.
- Migrating desktop-specific navigation or native window chrome.
- Creating `@qwen-code/chat-panel`, another UI package, or a parallel message
model.
- Deleting `packages/webui`; that is the dependent cleanup PR.
- Deleting `packages/desktop/apps/webui`, which is a separately named desktop
application and is not the legacy shared package targeted here.

## Implementation sequence inside this PR

1. Relocate the daemon React layer into Web Shell and update its internal
imports, build aliases, public entry points, tests, and README.
2. Define the controlled embedded-host entry point around existing Web Shell
components and the canonical transcript block model.
3. Connect the VS Code ACP webview bridge to that entry point without changing
the extension-host transport.
4. Remove replaced companion components, hooks, compatibility utilities,
WebUI styles, Tailwind preset usage, package dependency, and bundler
exceptions.
5. Add an import gate proving neither `packages/web-shell` nor
`packages/vscode-ide-companion` depends on `@qwen-code/webui`.

These are implementation steps within one review unit, not separate PRs.

## Verification gate

### Automated

- Web Shell unit, DOM, typecheck, lint, and library build checks.
- VS Code companion unit, typecheck, lint, and production bundle checks.
- Contract tests for every host state/action mapping.
- Session-switch tests that reject updates belonging to the previous session.
- A repository check that rejects new WebUI imports in Web Shell and VS Code.

### Real VS Code UI E2E

Run the built extension in one real VS Code Extension Development Host using a
stable test profile. Launch that host once and reuse it for the full matrix
instead of restarting VS Code per case. The dedicated profile avoids modifying
the user's normal editor process, must dismiss onboarding without requiring
GitHub or Copilot sign-in, and must preserve its extension state between cases.

Capture screenshots for:

1. dark and light transcript parity;
2. composer with file, slash-command, skill, and image attachments;
3. permission request before and after a response;
4. Ask User Question before and after submission;
5. history selector and session switch;
6. pending, running, completed, failed, and cancelled tool calls;
7. streaming thought/text and cancellation;
8. model and approval-mode controls;
9. authentication, empty, error, and reconnect states.

The PR test report must distinguish WebView-only assertions from actions whose
VS Code host or ACP side effect was observed end to end.

## Completion criteria

- VS Code mounts the controlled Web Shell surface for the entire chat flow.
- Web Shell and VS Code contain no production import of `@qwen-code/webui`.
- The Web Shell package has no peer, development, build, or Vite dependency on
`@qwen-code/webui`.
- Replaced companion UI and interaction code is deleted.
- All listed real-host E2E flows have assertions and screenshot evidence.
- Remaining repository references to `packages/webui` are enumerated in the
dependent deletion PR.
180 changes: 180 additions & 0 deletions docs/plans/2026-08-23-retire-webui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
# Retire `@qwen-code/webui`

Status: Draft

Depends on the complete VS Code Web Shell cutover draft
[#9811](https://github.com/QwenLM/qwen-code/pull/9811).

## Outcome

Delete the legacy shared package at `packages/webui` and remove every active
source, build, test, documentation, and dependency reference to
`@qwen-code/webui`.

This is a physical retirement, not a rename. Useful behavior must already live
in the SDK or Web Shell; obsolete components and adapters are deleted rather
than copied into another compatibility package.

## Target boundary

The target is the workspace package whose manifest name is
`@qwen-code/webui`.

The following similarly named products are not removed:

- `packages/desktop/apps/webui`, which is a desktop application;
- the user-facing `qwen --webui` mode;
- Web Shell itself.

Renaming those unrelated surfaces would be a product/API change and is not
required to remove the legacy shared package.

## Prerequisite

The preceding cutover PR must establish all of the following before this PR is
ready:

- `packages/web-shell` contains the daemon React providers and hooks it needs;
- `packages/web-shell` has no package, build, test, or source dependency on
`@qwen-code/webui`;
- `packages/vscode-ide-companion` uses the complete Web Shell chat surface and
has no dependency on `@qwen-code/webui`;
- all replaced VS Code presentational and interaction code is already deleted.

If any of those conditions are false, this PR must stay draft rather than add
a compatibility shim.

## Remaining consumers found in the repository

The pre-cutover tree contains 317 references outside `packages/webui`, spread
across production code, tests, configuration, and historical documentation.
Most Web Shell and VS Code references are removed by the prerequisite PR. The
remaining categories require explicit handling here.

### Exported HTML viewer

`packages/web-templates` currently compiles the WebUI source tree into an
inline UMD bundle and renders exported conversations with `ChatViewer`. This
is a real release consumer, not stale build configuration.

Replace it with the canonical pipeline:

1. parse the exported `ChatRecord` data;
2. project it with
`projectChatRecordsToDaemonTranscript` from `@qwen-code/sdk/daemon`;
3. render the resulting blocks with `WebShellTranscript`;
4. inline the exact JavaScript and CSS assets at build time so an exported HTML
file remains deterministic and works offline.

Preserve theme switching, code blocks, tool calls, file references, images,
and safe script inlining. Do not replace the embedded renderer with a CDN URL.

### Daemon integration tests

The live-journal recovery integration test imports
`DaemonSessionProvider` and `useTranscriptBlocks` from the old daemon React
subpath. Retarget it to the Web Shell-owned React layer established by the
prerequisite PR without weakening the live HTTP/SSE assertions.

### Legacy scripts and fixtures

The concurrent-runner HTML fixtures still load old WebUI UMD releases from
unpkg. Determine whether each fixture is exercised:

- delete it when no current command or test reaches it;
- otherwise migrate it to the self-contained Web Shell transcript bundle.

The Web Shell E2E harness that imports `ChatViewer` follows the same rule. It
must not keep the package alive solely as a visual fixture.

### Build and repository configuration

Remove the package from:

- root build orchestration;
- workspace lock data;
- Vite aliases and externals;
- TypeScript path mappings;
- ESLint special cases;
- visual-test path filters and publishing scripts;
- release and capture tooling;
- package dependency manifests.

Regenerate `package-lock.json` through npm; do not hand-edit the lock graph.

### Documentation

Update active architecture, daemon adapter, quickstart, and package reference
documentation to name Web Shell as the React owner and the SDK as the
transport/transcript owner.

Historical design documents may retain links to the old package only when the
text is clearly historical and not presented as current guidance. Active
commands or file paths must not point to deleted files.

## Deletion inventory

At the investigated head, the package contains approximately:

| Area | Lines including tests and styles | Destination |
| --- | ---: | --- |
| Daemon React layer | 36,787 | Moved into Web Shell by the prerequisite PR |
| Presentational components | 16,642 | Already replaced by Web Shell; delete |
| ACP/JSONL adapters | 573 | Replace with canonical SDK projections; delete |
| Context, hooks, types, and utilities | 1,043 | Move only live primitives in prerequisite PR; delete remainder |

The final removal deletes the package manifest, source, Storybook/Vite/Tailwind
configuration, package-local tests, and generated package output rules.

## Implementation sequence inside this PR

1. Migrate the exported HTML viewer and add offline rendered-output tests.
2. Retarget the daemon integration test and any still-live visual fixtures.
3. Remove active configuration and documentation references.
4. Delete `packages/webui` in one change.
5. Regenerate the lockfile and generated export template.
6. Add a repository gate that rejects active `@qwen-code/webui` imports,
dependencies, aliases, and build entries.

These are steps in one cleanup PR, not additional PR boundaries.

## Verification

### Focused behavior

- Build a self-contained exported conversation HTML file with no network
access and open it in Chromium.
- Confirm transcript text, thought, code highlighting, tool calls, images, and
light/dark theme behavior with screenshot evidence.
- Run the daemon live-journal recovery integration test against the relocated
provider layer.

### Repository gates

- Build and test `@qwen-code/web-shell`.
- Build and test the VS Code companion.
- Build and test `packages/web-templates` and its generated export artifact.
- Run the relevant integration test, typecheck, lint, and package build gates.
- Run `npm install --package-lock-only` or the repository-equivalent lock
regeneration and verify a clean second run.
- Verify that no active source or configuration imports, declares, aliases, or
builds `@qwen-code/webui`.
- Verify that the root build and release package inventory succeeds without a
`packages/webui` directory.

### Regression evidence

Reuse the real VS Code E2E suite from the prerequisite PR as a regression
check; this deletion must not change the companion UI. Add Before/After
screenshots for the exported HTML viewer because that renderer changes in this
PR.

## Completion criteria

- `packages/webui` does not exist.
- No workspace manifest or lockfile entry defines `@qwen-code/webui`.
- No active source, build, test, or documentation path imports or points to the
deleted package.
- Exported conversation HTML is still self-contained and verified offline.
- Web Shell, VS Code, daemon integration, and release build checks pass.
- CI prevents a future production dependency on `@qwen-code/webui`.
Loading
Loading