Skip to content

fix: write informational CLI messages to stdout instead of stderr#249

Merged
BYK merged 1 commit into
mainfrom
fix/cli-stderr-to-stdout
May 12, 2026
Merged

fix: write informational CLI messages to stdout instead of stderr#249
BYK merged 1 commit into
mainfrom
fix/cli-stderr-to-stdout

Conversation

@BYK
Copy link
Copy Markdown
Owner

@BYK BYK commented May 12, 2026

Summary

  • Switch informational [lore] messages in run.ts and start.ts from console.error (stderr) to console.log (stdout) so they no longer appear red in terminals that color stderr output.
  • Actual error messages (no agents found, failed to launch, non-TTY error) and shutdown lifecycle messages remain on stderr.
  • The readline agent picker prompt output is also switched from process.stderr to process.stdout to match the menu stream.

All changed messages are printed before the child process is spawned, so there's no risk of interleaving with agent output on stdout.

Some terminals render stderr in red, making normal [lore] status
messages (agent picker, gateway status, launch info) look like errors.

Switch informational messages in run.ts and start.ts from
console.error (stderr) to console.log (stdout). Actual errors and
shutdown lifecycle messages remain on stderr.
@BYK BYK merged commit df7fc39 into main May 12, 2026
7 checks passed
@BYK BYK deleted the fix/cli-stderr-to-stdout branch May 12, 2026 13:11
This was referenced May 13, 2026
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.

1 participant