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 }) await this.postMessageToWebview({ type: "selectedImages", images })
break break
case "exportCurrentTask": case "exportCurrentTask":
const firstMessageTs = this.claudeDev?.claudeMessages.at(0)?.ts ?? Date.now() const currentTaskId = this.claudeDev?.taskId
downloadTask(firstMessageTs, this.claudeDev?.apiConversationHistory ?? []) if (currentTaskId) {
this.exportTaskWithId(currentTaskId)
}
break break
case "showTaskWithId": case "showTaskWithId":
this.showTaskWithId(message.text!) this.showTaskWithId(message.text!)