We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a7dbc commit 22fbd16Copy full SHA for 22fbd16
packages/core/src/codewhispererChat/tools/executeBash.ts
@@ -75,6 +75,7 @@ export class ExecuteBash {
75
const stderrBuffer: string[] = []
76
77
let firstChunk = true
78
+ let firstStderrChunk = true
79
const childProcessOptions: ChildProcessOptions = {
80
spawnOptions: {
81
cwd: this.workingDirectory,
@@ -87,7 +88,8 @@ export class ExecuteBash {
87
88
firstChunk = false
89
},
90
onStderr: (chunk: string) => {
- ExecuteBash.handleChunk(chunk, stderrBuffer, updates)
91
+ ExecuteBash.handleChunk(firstStderrChunk ? '```console\n' + chunk : chunk, stderrBuffer, updates)
92
+ firstStderrChunk = false
93
94
}
95
0 commit comments