From a515fec7bd6f61190fda77576286c916bbae3608 Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Mon, 6 Apr 2026 17:34:35 +0200 Subject: [PATCH] Fix update --dry-run: skip version check so dry-run output is shown check_already_latest() exits early before printing dry-run info when the running version matches the latest release. Skip this check in dry-run mode so the user sees what would happen. --- src/cli/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/cli.c b/src/cli/cli.c index f54903ae5..919c27b45 100644 --- a/src/cli/cli.c +++ b/src/cli/cli.c @@ -3395,8 +3395,8 @@ int cbm_cmd_update(int argc, char **argv) { printf("codebase-memory-mcp update (current: %s)\n\n", CBM_VERSION); - /* Version check — skip download if already on latest. */ - if (!force && check_already_latest()) { + /* Version check — skip download if already on latest (not in dry-run). */ + if (!force && !dry_run && check_already_latest()) { return 0; }