Skip to content

Commit 6274273

Browse files
authored
Release: v1.51.0 (#7130)
1 parent 9a734d0 commit 6274273

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/types/npm/package.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@roo-code/types",
3-
"version": "1.50.0",
3+
"version": "1.51.0",
44
"description": "TypeScript type definitions for Roo Code.",
55
"publishConfig": {
66
"access": "public",

packages/types/src/task.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export interface TaskProviderLike {
2525
createTask(text?: string, images?: string[], parentTask?: TaskLike): Promise<TaskLike>
2626
cancelTask(): Promise<void>
2727
clearTask(): Promise<void>
28+
resumeTask(taskId: string): void
2829

2930
getState(): Promise<TaskProviderState>
3031
postStateToWebview(): Promise<void>

src/core/webview/ClineProvider.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,13 @@ export class ClineProvider
403403
await this.removeClineFromStack()
404404
}
405405

406+
resumeTask(taskId: string): void {
407+
// Use the existing showTaskWithId method which handles both current and historical tasks
408+
this.showTaskWithId(taskId).catch((error) => {
409+
this.log(`Failed to resume task ${taskId}: ${error.message}`)
410+
})
411+
}
412+
406413
getRecentTasks(): string[] {
407414
if (this.recentTasksCache) {
408415
return this.recentTasksCache

0 commit comments

Comments
 (0)