-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(kilo-vscode): allow removing queued messages #8844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
f6cde01
bbb24ed
09f5668
43cac6e
0b22c62
fc45657
3d16c4c
b301c51
0942215
3acc366
cb94afe
073e101
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -699,7 +699,13 @@ export const SessionRoutes = lazy(() => | |
| ), | ||
| async (c) => { | ||
| const params = c.req.valid("param") | ||
| await SessionPrompt.assertNotBusy(params.sessionID) | ||
| // kilocode_change start | ||
| const messages = await Session.messages({ sessionID: params.sessionID }) | ||
| const user = messages.filter((msg) => msg.info.role === "user") | ||
| const target = user.find((msg) => msg.info.id === params.messageID) | ||
| const active = user.at(0) | ||
|
||
| if (!target || target.info.id <= (active?.info.id ?? "")) await SessionPrompt.assertNotBusy(params.sessionID) | ||
| // kilocode_change end | ||
| await Session.removeMessage({ | ||
| sessionID: params.sessionID, | ||
| messageID: params.messageID, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: Attachment-only queued messages never show the delete action
This button is rendered inside the surrounding
Show when={text()}block.PromptInputallows sending prompts with only image/PDF attachments, so those queued messages will never render the queued indicator or delete control and cannot be removed with this feature.