diff --git a/src/core/Cline.ts b/src/core/Cline.ts index b49fb60463..a6c5fdf563 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -1023,6 +1023,9 @@ export class Cline { if (exitDetails.coreDumpPossible) { exitStatus += " - core dump possible" } + } else if (exitDetails.exitCode === undefined) { + result += "" + exitStatus = `Exit code: ` } else { exitStatus = `Exit code: ${exitDetails.exitCode}` } @@ -1030,7 +1033,6 @@ export class Cline { const workingDirInfo = workingDir ? ` from '${workingDir.toPosix()}'` : "" const outputInfo = `\nOutput:\n${result}` - return [ false, `Command executed in terminal ${terminalInfo.id}${workingDirInfo}. ${exitStatus}${outputInfo}`,