diff --git a/.changeset/fix-edit-message-images.md b/.changeset/fix-edit-message-images.md new file mode 100644 index 00000000000..35573cfa61d --- /dev/null +++ b/.changeset/fix-edit-message-images.md @@ -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 diff --git a/webview-ui/src/App.tsx b/webview-ui/src/App.tsx index f3fc40bc023..6df358dc88a 100644 --- a/webview-ui/src/App.tsx +++ b/webview-ui/src/App.tsx @@ -456,6 +456,7 @@ const App = () => { messageTs: editMessageDialogState.messageTs, text: editMessageDialogState.text, restoreCheckpoint, + images: editMessageDialogState.images, }) setEditMessageDialogState((prev) => ({ ...prev, isOpen: false })) }}