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 04ddac9 commit 11cc4f1Copy full SHA for 11cc4f1
src/node/services/slashCommandService.ts
@@ -169,10 +169,9 @@ export class SlashCommandService extends EventEmitter {
169
await writer.close();
170
}
171
172
- // Read stdout and stderr in parallel
173
- const decoder = new TextDecoder();
174
-
+ // Read stdout and stderr in parallel (separate decoders to avoid cross-stream corruption)
175
const readStdout = async () => {
+ const decoder = new TextDecoder();
176
const reader = stream.stdout.getReader();
177
try {
178
while (true) {
@@ -193,6 +192,7 @@ export class SlashCommandService extends EventEmitter {
193
192
};
194
195
const readStderr = async () => {
196
const reader = stream.stderr.getReader();
197
198
0 commit comments