From dfe05cbf2ec0ec8f28b1988c232dbfcab874895c Mon Sep 17 00:00:00 2001 From: jisue0224 <> Date: Tue, 21 Apr 2026 00:51:16 +0900 Subject: [PATCH] fix(bm25): align queryFTSViaExecutor nodeId extraction to match lbug-adapter Use node.nodeId || node.id || '' in queryFTSViaExecutor to match the fallback logic in lbug-adapter.ts:1040. Without this, the MCP pool path could silently return empty nodeIds if LadybugDB surfaces the node id under node.nodeId rather than node.id. --- gitnexus/src/core/search/bm25-index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnexus/src/core/search/bm25-index.ts b/gitnexus/src/core/search/bm25-index.ts index f646c5e6a..ca4acfc5d 100644 --- a/gitnexus/src/core/search/bm25-index.ts +++ b/gitnexus/src/core/search/bm25-index.ts @@ -41,7 +41,7 @@ async function queryFTSViaExecutor( return { filePath: node.filePath || '', score: typeof score === 'number' ? score : parseFloat(score) || 0, - nodeId: node.id || '', + nodeId: node.nodeId || node.id || '', }; }); } catch {