feat: add ability to stop Claude execution mid-way using loading icon as cancel button

This commit is contained in:
Vivek R
2025-06-23 00:45:58 +05:30
parent abe0891b0b
commit 3dc741fd6b
5 changed files with 257 additions and 97 deletions

View File

@@ -918,6 +918,13 @@ export const api = {
return invoke("resume_claude_code", { projectPath, sessionId, prompt, model });
},
/**
* Cancels the currently running Claude Code execution
*/
async cancelClaudeExecution(): Promise<void> {
return invoke("cancel_claude_execution");
},
/**
* Lists files and directories in a given path
*/