Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/utils/ensure-daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export const ensureDaemon = async (): Promise<void> => {
try {
const health = await get<HealthResponse>('/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...`
)
Expand Down