Skip to content

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.

Fix Windows: taskkill self-kill + soak missing build deps

Martin Vogel7074dc2f1b1e
diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml
index 51b762820..584faaa51 100644
--- a/.github/workflows/dry-run.yml
+++ b/.github/workflows/dry-run.yml
@@ -582,7 +582,10 @@ jobs:
msystem: CLANG64
path-type: inherit
install: >-
+ mingw-w64-clang-x86_64-clang
+ mingw-w64-clang-x86_64-zlib
mingw-w64-clang-x86_64-python3
+ make
git
coreutils
@@ -671,7 +674,10 @@ jobs:
msystem: CLANG64
path-type: inherit
install: >-
+ mingw-w64-clang-x86_64-clang
+ mingw-w64-clang-x86_64-zlib
mingw-w64-clang-x86_64-python3
+ make
git
coreutils
- name: Build (ASan, no LeakSan on Windows)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ef3a6bac1..ed48b5116 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -579,7 +579,10 @@ jobs:
msystem: CLANG64
path-type: inherit
install: >-
+ mingw-w64-clang-x86_64-clang
+ mingw-w64-clang-x86_64-zlib
mingw-w64-clang-x86_64-python3
+ make
git
coreutils
- name: Build (release mode)
@@ -662,7 +665,10 @@ jobs:
msystem: CLANG64
path-type: inherit
install: >-
+ mingw-w64-clang-x86_64-clang
+ mingw-w64-clang-x86_64-zlib
mingw-w64-clang-x86_64-python3
+ make
git
coreutils
- name: Build (ASan, no LeakSan on Windows)
diff --git a/src/cli/cli.c b/src/cli/cli.c
index d3218497e..3a953040b 100644
--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -2268,7 +2268,12 @@ static int cbm_macos_adhoc_sign(const char *binary_path) {
static int cbm_kill_other_instances(void) {
#ifdef _WIN32
- const char *argv[] = {"taskkill", "/IM", "codebase-memory-mcp.exe", "/F", NULL};
+ /* taskkill /IM kills ALL matching processes INCLUDING self.
+ * Use /FI filter to exclude our own PID. */
+ char pid_filter[64];
+ snprintf(pid_filter, sizeof(pid_filter), "PID ne %lu", (unsigned long)GetCurrentProcessId());
+ const char *argv[] = {"taskkill", "/F", "/FI", "IMAGENAME eq codebase-memory-mcp.exe",
+ "/FI", pid_filter, NULL};
(void)cbm_exec_no_shell(argv);
return 0;
#else