Files
kilocode/.changeset/slash-command-preserve-text.md
T
rakshith1928 2246ef70b5 fix(webview): preserve existing text when selecting slash command at start (#11728)
* fix(webview): preserve existing text when selecting slash command at input start

* remove unwanted check not related to pr

* fix(webview): update test mocks for new select() cursor usage and add trailing text tests

* chore: add changeset for slash command trailing text fix

* fix(webview): add slashEnd signal to fix cursor-corruption bug when selecting slash commands

* chore(test): fix redundant double type assertion in use-slash-command.test.ts

* address the pr review comments

* fix(test): use full text length as onInput cursor in review slash test

* fix: preserve trailing text on no-argument /memory commands

* refactor: drop review commit and review pr slash suggestions

* fix(webview): place caret at start when preserving trailing text for action commands

* fix(kilo-memory): preserve trailing text for /memory show like other no-arg commands

* fix(kilo-vscode): update mirrored /memory show fixture for rest field

* fix(kilo-vscode): format prompt-input-utils.ts to satisfy prettier

* fix(kilo-vscode): place caret at start for preserved /memory text
2026-08-14 15:07:53 +02:00

235 B

kilo-code
kilo-code
patch

Preserve existing text when selecting a slash command at the start of the chat input. Previously, typing /new or another slash command with text before the cursor would wipe the existing content entirely.