Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(cli): install --dry-run always reports dry-run, even on a plan check
Martin Vogel30b5f12eef0b
diff --git a/src/cli/cli.c b/src/cli/cli.cindex 7641a1228..f4f382a9a 100644--- a/src/cli/cli.c+++ b/src/cli/cli.c@@ -10269,6 +10269,17 @@ int cbm_cmd_install(int argc, char **argv) {(void)cbm_rmdir(prepared_dir);}if (activation_rc != CLI_OK) {+ /* A dry-run mutates nothing (every mutation is guarded by !dry_run),+ * so a non-OK here is a plan-side check (agent-config / PATH probe)+ * and must still report that it was a dry-run - on Windows it was+ * silently skipping the summary and reading as a hard failure. Emit+ * the dry-run indicator, and name the underlying status for triage. */+ if (dry_run) {+ (void)fprintf(stderr, "note: install --dry-run plan check returned %d\n",+ activation_rc);+ printf("\n(dry-run — no files were modified)\n");+ return CLI_OK;+ }return CLI_TRUE;}