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.
Wrap org runner and MCP list-tools stderr output with console formatting helpers #43589
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
Wrap org runner and MCP list-tools stderr output with console formatting helpers #43589
Changes from all commits
df7f0e6aed3f809b078fe0669171bd34232ab29367File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
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.
Raw blank-line emission bypasses the console abstraction:
fmt.Fprintln(os.Stderr, "")is a naked call that bypasses the console formatting layer the rest of this PR is trying to enforce. It mixes raw stderr writes with console-wrapped writes in the same output stream.💡 Suggested fix
While this is a cosmetic emission, the inconsistency matters for consumers (e.g. log capturers, test helpers) that strip or transform console-prefixed lines. If the console package has a blank-line helper, use it; otherwise at minimum document the intentional bypass. For example:
Or, if the same pattern is needed in multiple places, add a
console.PrintBlankLineStderr()helper to keep all stderr I/O routed through one layer. The same pattern appears at line 151 indisplayToolsList.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.
The sub-items for each workflow entry (e.g.
repo-assist: v1.0.0 -> v1.1.0) now use the sameFormatListItemStderrlevel as the parent"Pending workflow updates:"heading. Previously these were rendered with 4-space indent (- name: old -> new), providing clear visual nesting under their parent.After this change the output is flat:
Consider adding a
FormatSubListItemStderrhelper (or similar) to preserve the two-level hierarchy, or explicitly document that this flattening is an intentional design simplification.@copilot please address this.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.