@@ -1305,7 +1305,7 @@ describe("ClineProvider", () => {
13051305 messageTs : 4000 ,
13061306 text : "Edited message content" ,
13071307 hasCheckpoint : false ,
1308- images : [ ] ,
1308+ images : undefined ,
13091309 } )
13101310
13111311 // Simulate user confirming edit through the dialog
@@ -3034,7 +3034,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
30343034 messageTs : 3000 ,
30353035 text : "Edited message with preserved images" ,
30363036 hasCheckpoint : false ,
3037- images : [ ] ,
3037+ images : undefined ,
30383038 } )
30393039
30403040 // Simulate confirmation
@@ -3048,7 +3048,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
30483048 expect ( mockCline . overwriteClineMessages ) . toHaveBeenCalledWith ( [ mockMessages [ 0 ] ] )
30493049 expect ( mockCline . overwriteApiConversationHistory ) . toHaveBeenCalledWith ( [ { ts : 1000 } ] )
30503050 // Verify submitUserMessage was called with the edited content
3051- expect ( mockCline . submitUserMessage ) . toHaveBeenCalledWith ( "Edited message with preserved images" , undefined )
3051+ expect ( mockCline . submitUserMessage ) . toHaveBeenCalledWith ( "Edited message with preserved images" , [ ] )
30523052 } )
30533053
30543054 test ( "handles editing messages with file attachments" , async ( ) => {
@@ -3090,7 +3090,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
30903090 messageTs : 3000 ,
30913091 text : "Edited message with file attachment" ,
30923092 hasCheckpoint : false ,
3093- images : [ ] ,
3093+ images : undefined ,
30943094 } )
30953095
30963096 // Simulate user confirming the edit
@@ -3101,7 +3101,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
31013101 } )
31023102
31033103 expect ( mockCline . overwriteClineMessages ) . toHaveBeenCalled ( )
3104- expect ( mockCline . submitUserMessage ) . toHaveBeenCalledWith ( "Edited message with file attachment" , undefined )
3104+ expect ( mockCline . submitUserMessage ) . toHaveBeenCalledWith ( "Edited message with file attachment" , [ ] )
31053105 } )
31063106 } )
31073107
@@ -3144,7 +3144,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
31443144 messageTs : 2000 ,
31453145 text : "Edited message" ,
31463146 hasCheckpoint : false ,
3147- images : [ ] ,
3147+ images : undefined ,
31483148 } )
31493149
31503150 // Simulate user confirming the edit
@@ -3186,7 +3186,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
31863186 messageTs : 2000 ,
31873187 text : "Edited message" ,
31883188 hasCheckpoint : false ,
3189- images : [ ] ,
3189+ images : undefined ,
31903190 } )
31913191
31923192 // Simulate user confirming the edit
@@ -3244,14 +3244,14 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
32443244 messageTs : 2000 ,
32453245 text : "Edited message 1" ,
32463246 hasCheckpoint : false ,
3247- images : [ ] ,
3247+ images : undefined ,
32483248 } )
32493249 expect ( mockPostMessage ) . toHaveBeenCalledWith ( {
32503250 type : "showEditMessageDialog" ,
32513251 messageTs : 4000 ,
32523252 text : "Edited message 2" ,
32533253 hasCheckpoint : false ,
3254- images : [ ] ,
3254+ images : undefined ,
32553255 } )
32563256
32573257 // Simulate user confirming both edits
@@ -3438,7 +3438,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
34383438 messageTs : 5000 ,
34393439 text : "Edited non-existent message" ,
34403440 hasCheckpoint : false ,
3441- images : [ ] ,
3441+ images : undefined ,
34423442 } )
34433443
34443444 // Simulate user confirming the edit
@@ -3532,7 +3532,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
35323532 messageTs : 2000 ,
35333533 text : "Edited message" ,
35343534 hasCheckpoint : false ,
3535- images : [ ] ,
3535+ images : undefined ,
35363536 } )
35373537
35383538 // Simulate user confirming the edit
@@ -3625,14 +3625,14 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
36253625 messageTs : 2000 ,
36263626 text : largeEditedContent ,
36273627 hasCheckpoint : false ,
3628- images : [ ] ,
3628+ images : undefined ,
36293629 } )
36303630
36313631 // Simulate user confirming the edit
36323632 await messageHandler ( { type : "editMessageConfirm" , messageTs : 2000 , text : largeEditedContent } )
36333633
36343634 expect ( mockCline . overwriteClineMessages ) . toHaveBeenCalled ( )
3635- expect ( mockCline . submitUserMessage ) . toHaveBeenCalledWith ( largeEditedContent , undefined )
3635+ expect ( mockCline . submitUserMessage ) . toHaveBeenCalledWith ( largeEditedContent , [ ] )
36363636 } )
36373637
36383638 test ( "handles deleting messages with large payloads" , async ( ) => {
@@ -3833,7 +3833,7 @@ describe("ClineProvider - Comprehensive Edit/Delete Edge Cases", () => {
38333833 messageTs : futureTimestamp + 1000 ,
38343834 text : "Edited future message" ,
38353835 hasCheckpoint : false ,
3836- images : [ ] ,
3836+ images : undefined ,
38373837 } )
38383838
38393839 // Simulate user confirming the edit
0 commit comments