feat(vscode): add slash command autocomplete quick actions - #802
Conversation
No changeset foundThis PR does not add a changeset, so it will not appear in the changelog or trigger a release. If the change is user-facing, add one: pnpm changesetPick a bump (patch / minor / major) and write the changelog entry in our usual voice ("Added X... Thanks to @you. Closes #123."), then commit the generated If this PR is docs-only or a chore that needs no release note, you can ignore this - or run |
|
@hiarun02 Thanks for the PR! I like the overall direction, but I don't think it's ready to merge yet. I noticed a few things that should be addressed first:
Once these are addressed, I'd be happy to review it again. Overall, the feature is heading in the right direction. |
|
Thanks! I only modified 5 files, all within the VS Code extension. Could you clarify which unrelated changes you're referring to? Is it the formatting changes ' → ", or something else? |
|
Hi @hiarun02, thanks for following up! To answer your question about the unrelated changes: Yes, it is exactly the formatting changes ( The Nanocoder project uses Biome with strict formatting rules (tabs, single quotes). Because your editor is likely running Prettier or a different local formatter, it rewrote hundreds of lines of code in Please revert the formatting changes so the PR only highlights the actual logic you added. Running In addition to the formatting, here is what still needs to be addressed before we can merge: 1. Data Safety: Hidden Prompt Persistence
2. Test Coverage
3. Changeset Missing
Once the formatting churn is removed and the history pollution is fixed, we'll be good to go! |
Description
This PR adds slash-command quick actions to the VS Code extension chat input.
Typing
/in the Nanocoder chat box now opens an autocomplete menu with quick actions like:/test/explain/docWhen the user selects one of these commands, the extension sends a hidden prompt prefix to the backend before the user message, so the chat UI stays clean while the backend gets the extra instruction it needs.
This keeps the existing
/clearbehavior intact and only adds new quick-action support on top of the current slash-command flow.Why
Users often repeat the same kinds of prompts, like asking for tests, explanations, or documentation. This feature makes those actions faster and less repetitive in the VS Code extension.
What changed
/autocomplete in the chat input UI/test/explain/docNanocoderAcpClient.prompt(...)/clearflowFiles changed
plugins/vscode/media/chat-panel.htmlplugins/vscode/media/chat-panel.jsplugins/vscode/src/webview-protocol.tsplugins/vscode/src/chat-webview-provider.tsplugins/vscode/media/chat-panel.cssType of Change
Changeset
pnpm changeset) describing this change for the changelogTesting
Automated Tests
pnpm run buildinplugins/vscode.spec.ts/tsxfilesManual Testing
/autocomplete shows commands/clearbehavior is preservedNotes
/) for Quick Actions in VS Code Extension #748.