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.

Merge branch 'main' into fix/1355-external-import-shadow

Yyuno4eb3af36c7b0
diff --cc src/pipeline/pass_parallel.c
index 7af3f5c7a,dbf459814..82216bb04
--- a/src/pipeline/pass_parallel.c
+++ b/src/pipeline/pass_parallel.c
@@@ -1341,13 -1748,12 +1748,16 @@@ int cbm_build_registry_from_cache(cbm_p
imports_edges += create_imports_edges(ctx, result, rel, namespace_map);
create_channel_edges(ctx, result, rel);
cbm_pipeline_create_env_configures_for_file(ctx, result, rel);
+ if (loaded) {
+ cbm_free_result(result);
+ }
}
- cbm_pipeline_namespace_map_free(namespace_map);
+ /* Publish instead of free: the call pass needs the same declared-package
+ * set to tell an in-tree package path from a third-party one (#1355).
+ * The pipeline owns it from here and frees it in its cleanup. */
+ cbm_pipeline_namespace_map_free(cbm_pipeline_get_nsmap());
+ cbm_pipeline_set_nsmap(namespace_map);
cbm_log_info("parallel.registry.done", "entries", itoa_log(reg_entries), "defines",
itoa_log(defines_edges), "imports", itoa_log(imports_edges));