Fix exporting current open task

This commit is contained in:
Saoud Rizwan
2024-08-17 09:20:14 -04:00
parent c277f7625f
commit 84150587a7

View File

@@ -326,8 +326,10 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
await this.postMessageToWebview({ type: "selectedImages", images })
break
case "exportCurrentTask":
const firstMessageTs = this.claudeDev?.claudeMessages.at(0)?.ts ?? Date.now()
downloadTask(firstMessageTs, this.claudeDev?.apiConversationHistory ?? [])
const currentTaskId = this.claudeDev?.taskId
if (currentTaskId) {
this.exportTaskWithId(currentTaskId)
}
break
case "showTaskWithId":
this.showTaskWithId(message.text!)