Browse Source

Let Claude know command executed successfully if immediately returned

Saoud Rizwan 1 year ago
parent
commit
729ebbec81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ClaudeDev.ts

+ 1 - 1
src/ClaudeDev.ts

@@ -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)