Hide caret when the command is not executing

This commit is contained in:
Saoud Rizwan
2024-09-02 00:38:26 -04:00
parent 3a37421ffd
commit 492ffeb5b1
3 changed files with 25 additions and 8 deletions

View File

@@ -1277,7 +1277,7 @@ export class ClaudeDev {
// }
} catch (e) {
if ((e as ExecaError).signal === "SIGINT") {
await this.say("command_output", `\nUser exited command...`)
//await this.say("command_output", `\nUser exited command...`)
result += `\n====\nUser terminated command process via SIGINT. This is not an error. Please continue with your task, but keep in mind that the command is no longer running. For example, if this command was used to start a server for a react app, the server is no longer running and you cannot open a browser to view it anymore.`
} else {
throw e // if the command was not terminated by user, let outer catch handle it as a real error