mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 21:01:06 -05:00
Add logic for handling different ask states in the webview
This commit is contained in:
@@ -196,7 +196,7 @@ export class SidebarProvider implements vscode.WebviewViewProvider {
|
||||
case "askResponse":
|
||||
this.claudeDev?.handleWebviewAskResponse(message.askResponse!, message.text)
|
||||
break
|
||||
case "abortTask":
|
||||
case "clearTask":
|
||||
await this.clearTask()
|
||||
await this.postStateToWebview()
|
||||
break
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export interface WebviewMessage {
|
||||
type: "apiKey" | "maxRequestsPerTask" | "webviewDidLaunch" | "newTask" | "askResponse" | "abortTask"
|
||||
type: "apiKey" | "maxRequestsPerTask" | "webviewDidLaunch" | "newTask" | "askResponse" | "clearTask"
|
||||
text?: string
|
||||
askResponse?: ClaudeAskResponse
|
||||
}
|
||||
|
||||
export type ClaudeAskResponse = "newTaskButtonTapped" | "yesButtonTapped" | "noButtonTapped" | "textResponse"
|
||||
export type ClaudeAskResponse = "yesButtonTapped" | "noButtonTapped" | "textResponse"
|
||||
Reference in New Issue
Block a user