Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the VS Code extension (
vscode/) chat UI/UX and copy workflow toward a mainstream coding-agent experience while keeping the webview pure-DOM/CSP-safe (noinnerHTMLfrom agent text, no new runtime dependencies).Chat Output & Styling (
vscode/media/chat.css,vscode/src/webview/dom.ts,vscode/src/webview/main.ts)streamingindicator on active thinking blocks.codefallback) and whole-block copy button, plus line-level.code-linerows with sticky per-line copy buttons while preservingpre.code codetextContentbyte-for-byte.<details class="thought">and<details class="tool-output">, status-colored left accent borders and pills (data-status) on tool call cards.field-sizing: content), IME-safe Enter submission (isComposing || keyCode === 229), and a floating ↓ Latest button when scrolled away from the tail.Copy Interactions (
vscode/src/core/copy.ts,vscode/src/webview/dom.ts,vscode/src/webview/main.ts)sh,bash,zsh,powershell,pwsh,cmd, etc.), leading$andPS>prompts are stripped so commands paste cleanly into a terminal.<code>spans (ignored when text is selected, and links containing<code>continue to open viaopenLink).rawInput.command->rawInput.path->title), overlay copy button on tool output, and click-to-copy on non-trust permission summaries.attr(data-label)(textContent === ""), hover reveal usesopacity(neverdisplay: none), and feedback uses an off-transcriptrole="status"live region (Copied/Copy failedwith VoiceOver repeat-announcement deduplication).Verification
Run from
vscode/:npm run build(esbuild.mjs): builtdist/extension.js(432.3kb) anddist/webview.js(254.5kb).npm run check:npm run typecheck:tsc --noEmit -p tsconfig.json && tsc --noEmit -p src/webview/tsconfig.jsonpassed.npm run lint:eslint .passed.npm test(vitest run): 20 passed | 3 skipped (23), 363 passed | 18 skipped (381) (3 opt-inreal-*.test.tsfiles and 1 platform-specific test inlocate.test.tsskipped; all 34 tests intest/webview.test.tsin headless Chrome and 6 unit tests intest/copy.test.tspassed).