Let Claude know command executed successfully if immediately returned

This commit is contained in:
Saoud Rizwan
2024-09-02 07:44:16 -04:00
parent 0bcb0a923f
commit 729ebbec81

View File

@@ -1303,7 +1303,7 @@ export class ClaudeDev {
if (returnEmptyStringOnSuccess) {
return ""
}
return `Command Output:\n${result}`
return `Command executed.${result.length > 0 ? `\nOutput:\n${result}` : ""}`
} catch (e) {
const error = e as any
let errorMessage = error.message || JSON.stringify(serializeError(error), null, 2)