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(daemon): recheck ignore_worktrees on auto-index retry
Nohj3bb85c8c7c3c
diff --git a/src/daemon/application.c b/src/daemon/application.cindex 8a79ecd5d..153bc0d81 100644--- a/src/daemon/application.c+++ b/src/daemon/application.c@@ -1457,6 +1457,18 @@ static void application_auto_index_retry_pending_locked(cbm_daemon_application_tapplication_refresh_watch_locked(session);continue;}+ /* ignore_worktrees can be turned on after this session was queued for+ * a capacity slot. Initial admission already skips linked worktrees;+ * retry must apply the same gate or the pending checkout is indexed+ * once a slot opens. */+ if (cbm_mcp_ignore_worktrees_enabled(session->mcp) &&+ cbm_git_is_linked_worktree(root_path)) {+ session->auto_index_retry_pending = false;+ cbm_log_info("daemon.autoindex.skipped", "project", project, "reason",+ "linked_worktree");+ application_refresh_watch_locked(session);+ continue;+ }char *args = application_auto_index_args(application, root_path);if (!args) {continue;