Skip to content

chore(cli): route daemon version-mismatch notice to stderr#191

Merged
vreshch merged 1 commit into
masterfrom
chore/stderr-daemon-version
May 20, 2026
Merged

chore(cli): route daemon version-mismatch notice to stderr#191
vreshch merged 1 commit into
masterfrom
chore/stderr-daemon-version

Conversation

@vreshch
Copy link
Copy Markdown
Member

@vreshch vreshch commented May 20, 2026

Summary

  • ensureDaemon printed the daemon-vs-CLI version-mismatch notice via console.log (stdout), with no TTY guard
  • This leaked into stdout for `--json` / pipe consumers when the daemon was on a stale version
  • Switch to console.error so stdout stays parseable

Test plan

  • CI green
  • Mismatch notice still visible on TTY
  • agentage runs list --json | jq not corrupted by the yellow banner during a daemon upgrade

console.log in ensureDaemon leaked into stdout when --json or pipe
consumers ran a command while the daemon was on a stale version.
Routing this operational notice to stderr keeps stdout clean for
parseable output.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

🎉 PR Validation ✅ PASSED

Commit: f6f25feb3eb79d17b167850c13d7b7f8b14bc5a5
Branch: chore/stderr-daemon-version

Checks:

  • ✅ Release guard (no version/changelog changes)
  • ✅ Dependencies installed
  • ✅ Type check passed
  • ✅ Linting passed
  • ✅ Format check passed
  • ✅ Tests + coverage passed
  • ✅ Build successful

Ready to merge!


🔗 View workflow run
⏰ Generated at: 2026-05-20T19:53:14.892Z

@vreshch vreshch force-pushed the chore/stderr-daemon-version branch from be8266a to f6f25fe Compare May 20, 2026 19:52
@vreshch vreshch marked this pull request as ready for review May 20, 2026 19:53
@vreshch vreshch merged commit c702608 into master May 20, 2026
1 check passed
@vreshch vreshch deleted the chore/stderr-daemon-version branch May 20, 2026 19:53
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