diff --git a/src/utils/ensure-daemon.ts b/src/utils/ensure-daemon.ts index 2337428..d83bc1e 100644 --- a/src/utils/ensure-daemon.ts +++ b/src/utils/ensure-daemon.ts @@ -17,7 +17,10 @@ export const ensureDaemon = async (): Promise => { try { const health = await get('/api/health'); if (health.version !== VERSION) { - console.log( + // Route to stderr — this is an operational notice, not command output. + // Without this, `--json` / pipe consumers get the yellow string mixed + // into their stdout when the daemon is upgraded mid-session. + console.error( chalk.yellow( `Daemon version mismatch (daemon: ${health.version}, cli: ${VERSION}) — restarting...` )