Repository navigation
fix(mcpx): handle missing FunctionName in Bun CallSite and match console strings to runtime #7145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
dezren39
wants to merge
1
commit into
main
from
queue/2902-1967-tsnet-transport-14614334961774001994
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When Bun is selected, invoking the original methods sends
console.info,console.debug,console.dir, andconsole.tabledirectly to stdout rather than the diagnostic record stream (verified with Bun 1.2.14). The runner forwards runtime stdout directly to the result output, so a script that logs progress and returns JSON now contaminates its result with diagnostic text, breaking consumers that parse stdout. Native output also bypasses log-level filtering, while the subsequent file-only record suppresses structured terminal formatting. Keep these methods routed through the structured stderr writer instead of invoking their native stdout implementations.AGENTS.md reference: pkgs/mcpx/AGENTS.md:L53-L54
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disposition (task 14681, lane code-p): agreed — this finding is valid and it is one of the reasons PR #7145 is being closed rather than merged.
The Bun branch of the console patch calls the original console methods for info/debug/dir/table, which writes diagnostics to stdout — the script's result stream — instead of keeping them on the structured record path. Combined with the branch being 6499 commits behind current main and the PR's test changes weakening the captureFrames assertion to accept an empty function name under Bun, this approach is not being carried forward. The underlying Bun fidelity gap (CallSite FunctionName + console formatting, with stdout purity as a hard constraint) is filed as a fresh issue against current main so the lead is not lost.