Fixes to terminal output processing

This commit is contained in:
Saoud Rizwan
2024-09-09 12:07:07 -04:00
parent 3bb4c3d408
commit 5866adb09f
2 changed files with 17 additions and 15 deletions

View File

@@ -1362,7 +1362,7 @@ export class ClaudeDev {
let result = ""
process.on("line", (line) => {
result += line
result += line + "\n"
sendCommandOutput(line)
})
@@ -1384,6 +1384,8 @@ export class ClaudeDev {
// grouping command_output messages despite any gaps anyways)
await delay(50)
result = result.trim()
if (userFeedback) {
await this.say("user_feedback", userFeedback.text, userFeedback.images)
return this.formatToolResponseWithImages(