From 89e5637f8829c0e1b574b950c5cf4e2db4036631 Mon Sep 17 00:00:00 2001 From: MentaNew <217579172+MentaNew@users.noreply.github.com> Date: Thu, 5 Nov 2026 13:55:17 -0500 Subject: [PATCH] fix(embeddings): use ?? for decayRate and driftThreshold defaults in embeddings_neural init --- v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts index 71fe81793f..3837894284 100644 --- a/v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts +++ b/v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts @@ -621,8 +621,9 @@ export const embeddingsTools: MCPTool[] = [ case 'init': config.neural = { enabled: true, - driftThreshold: (input.driftThreshold as number) || 0.3, - decayRate: (input.decayRate as number) || 0.01, + // `??`, not `||`: an explicit 0 is a valid value for both. + driftThreshold: (input.driftThreshold as number) ?? 0.3, + decayRate: (input.decayRate as number) ?? 0.01, ruvector: { enabled: true, sona: true,