fix(cli): improve daemon restart feedback
- runDaemonRestart() now returns Promise<boolean> indicating success - update command only shows success when restart actually happened - Fixes missing reasoningLevel type in compactEmbeddedPiSession 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Carl Ulsøe Christensen <carlulsoe@users.noreply.github.com> Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -156,8 +156,8 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
|
||||
defaultRuntime.log(theme.heading("Restarting daemon..."));
|
||||
}
|
||||
try {
|
||||
await runDaemonRestart();
|
||||
if (!opts.json) {
|
||||
const restarted = await runDaemonRestart();
|
||||
if (!opts.json && restarted) {
|
||||
defaultRuntime.log(theme.success("Daemon restarted successfully."));
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user