Files
kilocode/packages/opencode/test
Mark IJbema 6f9a0f0c5a feat(vscode): Enhance Prompt — ✨ sparkle button to improve prompts before sending
Add the Enhance Prompt feature to the VS Code extension, matching the
legacy extension's behaviour. A ✨ sparkle button in the chat input
toolbar rewrites the user's draft prompt using an LLM.

CLI:
- POST /enhance-prompt endpoint using LLM.stream with small model
- System prompt as agent.prompt for caching; user text as user message
- clean() strips code fences and surrounding quotes from LLM output

Extension:
- KiloProvider handler using SDK client.enhancePrompt.enhance()
- Shows VS Code error notification on failure
- WandSparkles icon from lucide-solid via @kilocode/kilo-ui
- Spin animation while enhancement is in flight
- Empty-input click shows feature description (all 16 i18n locales)
- Ctrl+Z / ⌘Z undo restores original draft
- Guard checks isBusy/isDisabled/enhancing matching canEnhance()

Tests:
- 11 unit tests for clean() in enhance-prompt.test.ts

Migration plan:
- Removed feature row (parity achieved)
- Deleted prompt-improvement.md spec doc
2026-03-03 13:21:45 +01:00
..
2026-02-26 14:35:48 +01:00
2026-02-23 20:12:28 +01:00
2026-03-02 22:16:53 +01:00
2026-02-23 20:34:24 +01:00
2026-02-23 20:12:28 +01:00
2026-02-25 18:34:18 +01:00
2025-11-06 13:03:12 -05:00
2026-02-14 04:19:02 +00:00
2026-02-19 11:32:32 -05:00
2026-02-24 18:16:17 +01:00
2026-02-22 21:27:25 -06:00
2026-02-24 19:53:15 +01:00
2026-02-25 18:34:18 +01:00
2026-02-26 14:35:48 +01:00
2026-02-25 01:48:10 -05:00
2025-09-09 23:44:04 -04:00
2025-12-11 19:20:23 +01:00
2026-02-25 18:34:18 +01:00