Просмотр исходного кода

Fix issue where sending image when resuming task would be ignored

Saoud Rizwan 1 год назад
Родитель
Сommit
c1c8c71f3e
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/ClaudeDev.ts

+ 2 - 1
src/ClaudeDev.ts

@@ -632,9 +632,10 @@ export class ClaudeDev {
 				: "") +
 			`\n\n${this.getPotentiallyRelevantDetails()}`
 
+		const newUserContentImages = newUserContent.filter((block) => block.type === "image")
 		const combinedModifiedOldUserContentWithNewUserContent: UserContent = (
 			modifiedOldUserContent.filter((block) => block.type !== "text") as UserContent
-		).concat([{ type: "text", text: combinedText }])
+		).concat([{ type: "text", text: combinedText }, ...newUserContentImages])
 
 		await this.overwriteApiConversationHistory(modifiedApiConversationHistory)
 		await this.initiateTaskLoop(combinedModifiedOldUserContentWithNewUserContent)