Add os/cline ver/host info to task metadata & change Task History -> EXPORT to just open the task directory (#7706)

Co-authored-by: Andrei Edell <andrei@nugbase.com>
This commit is contained in:
Andrei EternalandAndrei Edell authored and GitHub committed 2025-11-26 13:40:42 -08:00
1 parent 164e11aae1
commit 81276fdf85
8 files changed
+116 -61

No files matched your search

+4 -3
View File
@@ -5,7 +5,6 @@ import { detectWorkspaceRoots } from "@core/workspace/detection"
import { setupWorkspaceManager } from "@core/workspace/setup"
import type { WorkspaceRootManager } from "@core/workspace/WorkspaceRootManager"
import { cleanupLegacyCheckpoints } from "@integrations/checkpoints/CheckpointMigration"
import { downloadTask } from "@integrations/misc/export-markdown"
import { ClineAccountService } from "@services/account/ClineAccountService"
import { McpHub } from "@services/mcp/McpHub"
import type { ApiProvider, ModelInfo } from "@shared/api"
@@ -20,6 +19,7 @@ import type { UserInfo } from "@shared/UserInfo"
import { fileExistsAtPath } from "@utils/fs"
import axios from "axios"
import fs from "fs/promises"
import open from "open"
import pWaitFor from "p-wait-for"
import * as path from "path"
import type { FolderLockWithRetryResult } from "src/core/locks/types"
@@ -824,8 +824,9 @@ export class Controller {
}
async exportTaskWithId(id: string) {
const { historyItem, apiConversationHistory } = await this.getTaskWithId(id)
await downloadTask(historyItem.ts, apiConversationHistory)
const { taskDirPath } = await this.getTaskWithId(id)
console.log(`[EXPORT] Opening task directory: ${taskDirPath}`)
await open(taskDirPath)
}
async deleteTaskFromState(id: string) {