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 hand test fix: answer questions about the Galaxy view from its scope and catch restated answers (K45, K46)

Bernhard Jackiewiczedbf36ef206b
diff --cc graph-ui/src/browser-ai/galaxy-evidence.ts
index c8bc0ec0e,0cc3a80bd..ddb5b8d5d
--- a/graph-ui/src/browser-ai/galaxy-evidence.ts
+++ b/graph-ui/src/browser-ai/galaxy-evidence.ts
@@@ -90,10 -86,10 +92,10 @@@ export function readGalaxyEvidence(snap
roots, rootCount: Math.max(count(selected?.rootCount), roots.length),
depth: count(scope.depth), direction, edgeTypes, nodes: count(scope.nodes), edges: count(scope.edges),
state, ...state === 'limited' ? { renderLimit } : {}, error: text(limits?.error, 200), exhausted: limits?.exhausted === true,
- relationships: { incoming: groups(relationships?.incoming), incomingSymbols: total(relationships?.incomingSymbols),
- outgoing: groups(relationships?.outgoing), outgoingSymbols: total(relationships?.outgoingSymbols),
+ relationships: { incoming: groups(relationships?.incoming, project), incomingSymbols: total(relationships?.incomingSymbols),
+ outgoing: groups(relationships?.outgoing, project), outgoingSymbols: total(relationships?.outgoingSymbols),
internal: totals(relationships?.internal), beyond: totals(relationships?.beyond) },
- truncated,
+ truncated, ...scope.display === 'galaxy' || scope.display === 'hierarchy' ? { display: scope.display } : {},
};
}
diff --cc graph-ui/src/galaxy/selection-evidence.ts
index c6e215786,64224ab40..cc1f485e4
--- a/graph-ui/src/galaxy/selection-evidence.ts
+++ b/graph-ui/src/galaxy/selection-evidence.ts
@@@ -126,15 -126,14 +128,16 @@@ export interface GalaxyScope
}
/** Every scope edge is classified against the roots first; only the names are
- * bounded afterwards. Render budgets are a drawing concern and stay out of it. */
+ * bounded afterwards. Render budgets are a drawing concern and stay out of it.
+ * The label is the name the Galaxy shows ("django-demo · detached HEAD" for a
+ * Branch node, round 4, N1); the snapshot keeps the names of the index. */
export function galaxyScopeEvidence(scope: GalaxyScope): SelectionEvidence {
const roots = scope.nodes.filter(node => scope.roots.has(node.id));
- return { project: scope.project, view: 'galaxy', source: 'query_graph scoped indexed relationships', label: scope.identity.name,
+ return { project: scope.project, view: 'galaxy', source: 'query_graph scoped indexed relationships', label: scopeDisplayName(scope.identity),
selected: { scope: scope.identity, rootCount: roots.length, roots: roots.slice(0, ROOTS_LISTED).map(root => ({ ...graphNodeEvidence(root),
documentation: root.documentation?.slice(0, ROOT_DOCUMENTATION_CHARACTERS) })), omittedRoots: Math.max(0, roots.length - ROOTS_LISTED) },
- scope: { depth: scope.depth, direction: scope.direction, edgeTypes: scope.edgeTypes, nodes: scope.nodes.length, edges: scope.edges.length },
+ scope: { depth: scope.depth, direction: scope.direction, edgeTypes: scope.edgeTypes, nodes: scope.nodes.length, edges: scope.edges.length,
+ ...scope.display ? { display: scope.display } : {} },
relationships: scopeRelationships(scope.nodes, scope.edges, scope.roots),
limitations: { state: scope.state, error: scope.error, exhausted: scope.exhausted, ...scope.renderLimit ? { renderLimit: scope.renderLimit } : {}, indexCoverage: 'unavailable',
interpretation: 'Static indexed relationships, not runtime activity. Scope completeness is relative to the indexed graph and selected depth/types.' } };