MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / showTaskWithId

Method showTaskWithId

src/core/webview/ClineProvider.ts:1940–1948  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1938 }
1939
1940 async showTaskWithId(id: string) {
1941 if (id !== this.getCurrentTask()?.taskId) {
1942 // Non-current task.
1943 const { historyItem } = await this.getTaskWithId(id)
1944 await this.createTaskWithHistoryItem(historyItem) // Clears existing task.
1945 }
1946
1947 await this.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
1948 }
1949
1950 async exportTaskWithId(id: string) {
1951 const { historyItem, apiConversationHistory } = await this.getTaskWithId(id)

Callers 2

resumeTaskMethod · 0.95
webviewMessageHandlerFunction · 0.80

Calls 4

getCurrentTaskMethod · 0.95
getTaskWithIdMethod · 0.95
postMessageToWebviewMethod · 0.95

Tested by

no test coverage detected