Skip to content

Commit 91376a2

Browse files
committed
Improve RooCodeAPI.resumeTask
1 parent ed180ae commit 91376a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/exports/api.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,9 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
5656
}
5757

5858
public async resumeTask(taskId: string): Promise<void> {
59-
await this.provider.removeClineFromStack()
60-
await this.provider.postStateToWebview()
61-
await this.provider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
62-
// TODO: what message should we send to the webview before resuming an old task?
63-
await this.provider.postMessageToWebview({ type: "invoke", invoke: "newChat" })
64-
6559
const { historyItem } = await this.provider.getTaskWithId(taskId)
6660
await this.provider.initClineWithHistoryItem(historyItem)
61+
await this.provider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
6762
}
6863

6964
public async isTaskInHistory(taskId: string): Promise<boolean> {

0 commit comments

Comments
 (0)