We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 054d38c commit 2ebc3b7Copy full SHA for 2ebc3b7
sdk/src/tools/run-terminal-command.ts
@@ -88,11 +88,17 @@ export function runTerminalCommand({
88
remove: 'MIDDLE',
89
})
90
91
+ const truncatedStderr = truncateStringWithMessage({
92
+ str: stripColors(stderr),
93
+ maxLength: COMMAND_OUTPUT_LIMIT,
94
+ remove: 'MIDDLE',
95
+ })
96
+
97
// Include stderr in stdout for compatibility with existing behavior
98
const combinedOutput = {
99
command,
100
stdout: truncatedStdout,
- ...(stderr ? { stderr } : {}),
101
+ ...(truncatedStderr ? { stderr: truncatedStderr } : {}),
102
...(exitCode !== null ? { exitCode } : {}),
103
}
104
0 commit comments