From 6274273982edb552106ceb068e6d3761e3ad6fdf Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Fri, 15 Aug 2025 12:42:53 -0400 Subject: [PATCH] Release: v1.51.0 (#7130) --- packages/types/npm/package.metadata.json | 2 +- packages/types/src/task.ts | 1 + src/core/webview/ClineProvider.ts | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/types/npm/package.metadata.json b/packages/types/npm/package.metadata.json index 3de8670447..f9e3c71ead 100644 --- a/packages/types/npm/package.metadata.json +++ b/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", diff --git a/packages/types/src/task.ts b/packages/types/src/task.ts index 1a5a5039bb..07789c88de 100644 --- a/packages/types/src/task.ts +++ b/packages/types/src/task.ts @@ -25,6 +25,7 @@ export interface TaskProviderLike { createTask(text?: string, images?: string[], parentTask?: TaskLike): Promise cancelTask(): Promise clearTask(): Promise + resumeTask(taskId: string): void getState(): Promise postStateToWebview(): Promise diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 2270d5aee5..87c92448e8 100644 --- a/src/core/webview/ClineProvider.ts +++ b/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