Skip to content

Commit b116e5f

Browse files
authored
Merge pull request #5162 from hdcodedev/fix/3489-edit-message-images-lost
fix: preserve images when editing messages with checkpoint
2 parents 43767ca + bf66def commit b116e5f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Fix attached images being lost when editing a message with checkpoint
6+
7+
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.
8+
9+
The fix adds the `images` field to the message payload in both the checkpoint and non-checkpoint edit confirmation paths.
10+
11+
Fixes #3489

webview-ui/src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ const App = () => {
456456
messageTs: editMessageDialogState.messageTs,
457457
text: editMessageDialogState.text,
458458
restoreCheckpoint,
459+
images: editMessageDialogState.images,
459460
})
460461
setEditMessageDialogState((prev) => ({ ...prev, isOpen: false }))
461462
}}

0 commit comments

Comments
 (0)