Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/fix-edit-message-images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"kilo-code": patch
---

Fix attached images being lost when editing a message with checkpoint

When editing a message that has a checkpoint, the images attached to the edited message were not being included in the `editMessageConfirm` webview message. This caused images to be silently dropped and not sent to the backend.

The fix adds the `images` field to the message payload in both the checkpoint and non-checkpoint edit confirmation paths.

Fixes #3489
1 change: 1 addition & 0 deletions webview-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ const App = () => {
messageTs: editMessageDialogState.messageTs,
text: editMessageDialogState.text,
restoreCheckpoint,
images: editMessageDialogState.images,
})
setEditMessageDialogState((prev) => ({ ...prev, isOpen: false }))
}}
Expand Down
Loading