-
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 1 commit
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 |
|---|---|---|
|
|
@@ -196,6 +196,7 @@ interface SessionContextValue { | |
| loadSessions: () => void | ||
| selectSession: (id: string) => void | ||
| deleteSession: (id: string) => void | ||
| deleteMessage: (sessionID: string, messageID: string) => void | ||
| renameSession: (id: string, title: string) => void | ||
| syncSession: (sessionID: string) => void | ||
|
|
||
|
|
@@ -1643,6 +1644,15 @@ export const SessionProvider: ParentComponent = (props) => { | |
| vscode.postMessage({ type: "deleteSession", sessionID: id }) | ||
| } | ||
|
|
||
| function deleteMessage(sessionID: string, messageID: string) { | ||
| if (!server.isConnected()) { | ||
| console.warn("[Kilo New] Cannot delete message: not connected") | ||
| return | ||
| } | ||
| handleMessageRemoved(sessionID, messageID) | ||
|
||
| vscode.postMessage({ type: "deleteMessage", sessionID, messageID }) | ||
| } | ||
|
|
||
| function renameSession(id: string, title: string) { | ||
| if (!server.isConnected()) { | ||
| console.warn("[Kilo New] Cannot rename session: not connected") | ||
|
|
@@ -1878,6 +1888,7 @@ export const SessionProvider: ParentComponent = (props) => { | |
| loadSessions, | ||
| selectSession, | ||
| deleteSession, | ||
| deleteMessage, | ||
| renameSession, | ||
| syncSession, | ||
| cloudPreviewId, | ||
|
|
||
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.