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

Method resumeTask

src/extension/api.ts:213–227  ·  view source on GitHub ↗
(taskId: string)

Source from the content-addressed store, hash-verified

211 }
212
213 public async resumeTask(taskId: string): Promise<void> {
214 await vscode.commands.executeCommand(`${Package.name}.SidebarProvider.focus`)
215 await this.waitForWebviewLaunch(5_000)
216
217 const { historyItem } = await this.sidebarProvider.getTaskWithId(taskId)
218 await this.sidebarProvider.createTaskWithHistoryItem(historyItem)
219
220 if (this.sidebarProvider.viewLaunched) {
221 await this.sidebarProvider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
222 } else {
223 this.log(
224 `[API#resumeTask] webview not launched after resume for task ${taskId}; continuing in headless mode`,
225 )
226 }
227 }
228
229 public async isTaskInHistory(taskId: string): Promise<boolean> {
230 try {

Callers 1

constructorMethod · 0.95

Calls 6

waitForWebviewLaunchMethod · 0.95
executeCommandMethod · 0.80
postMessageToWebviewMethod · 0.80
getTaskWithIdMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected