Skip to content

Include exit code when evaluation process terminates abruptly - #46

Merged
josevalim merged 2 commits into
mainfrom
jk-exit-status
Nov 13, 2025
Merged

Include exit code when evaluation process terminates abruptly#46
josevalim merged 2 commits into
mainfrom
jk-exit-status

Conversation

@jonatanklosko

Copy link
Copy Markdown
Contributor

Also optimises stdout/stderr accumulation to avoid intermediate strings.

Comment on lines -44 to +48
stdout: evaluation.stdout.trim(),
stderr: evaluation.stderr.trim(),
success: result.success,
result: result.result,
stdout: stdoutChunks.join(''),
stderr: stderrChunks.join(''),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the trim, since we don't do it in any other MCP.

@josevalim
josevalim merged commit 1671fc9 into main Nov 13, 2025
2 checks passed
@josevalim
josevalim deleted the jk-exit-status branch November 13, 2025 17:34
@josevalim

Copy link
Copy Markdown
Contributor

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants