Matt Rubens 5 hónapja
szülő
commit
6274273982

+ 1 - 1
packages/types/npm/package.metadata.json

@@ -1,6 +1,6 @@
 {
 	"name": "@roo-code/types",
-	"version": "1.50.0",
+	"version": "1.51.0",
 	"description": "TypeScript type definitions for Roo Code.",
 	"publishConfig": {
 		"access": "public",

+ 1 - 0
packages/types/src/task.ts

@@ -25,6 +25,7 @@ export interface TaskProviderLike {
 	createTask(text?: string, images?: string[], parentTask?: TaskLike): Promise<TaskLike>
 	cancelTask(): Promise<void>
 	clearTask(): Promise<void>
+	resumeTask(taskId: string): void
 
 	getState(): Promise<TaskProviderState>
 	postStateToWebview(): Promise<void>

+ 7 - 0
src/core/webview/ClineProvider.ts

@@ -403,6 +403,13 @@ export class ClineProvider
 		await this.removeClineFromStack()
 	}
 
+	resumeTask(taskId: string): void {
+		// Use the existing showTaskWithId method which handles both current and historical tasks
+		this.showTaskWithId(taskId).catch((error) => {
+			this.log(`Failed to resume task ${taskId}: ${error.message}`)
+		})
+	}
+
 	getRecentTasks(): string[] {
 		if (this.recentTasksCache) {
 			return this.recentTasksCache