fix(reasoning): exclude terminal nodes from active selector
This commit is contained in:
+4
-1
@@ -593,7 +593,10 @@ export function resolveUnknownNode(graph, nodeId, newStatus, newValue, reason) {
|
||||
export function selectActiveUnknownCandidate(graph, resolvedNodeIds) {
|
||||
// Skip already resolved nodes
|
||||
const unresolved = graph.nodes.filter(
|
||||
(n) => n.kind === "unknown" && !resolvedNodeIds.includes(n.id),
|
||||
(n) =>
|
||||
n.kind === "unknown" &&
|
||||
!["known", "resolved", "contradicted"].includes(n.status) &&
|
||||
!resolvedNodeIds.includes(n.id),
|
||||
);
|
||||
|
||||
if (unresolved.length === 0) return null;
|
||||
|
||||
Reference in New Issue
Block a user