From 67b7d1024b31a40f02695d2e8eb2a30b589b4791 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Tue, 14 Apr 2026 13:06:12 -0400 Subject: [PATCH] Fix needsClarification logic to not trigger for identity queries like 'Who was Titus?' --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 8db8a64..c0f2ebe 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -748,7 +748,7 @@ function analyzeIntent(query: string, context: ChatContextState): IntentAnalysis if (!isFollowUp && hasStandalonePronoun && context.turnCount === 0) { needsClarification = true clarificationPrompt = 'Can you name the specific person, verse, or episode you mean?' - } else if (!isFollowUp && tokenCount < 2 && verseRefs.length === 0 && episodeNumber === null) { + } else if (!isFollowUp && tokenCount < 2 && verseRefs.length === 0 && episodeNumber === null && !wantsIdentity) { needsClarification = true clarificationPrompt = 'Can you make that a bit more specific so I can match Nate\'s notes?' } else if (/\bwho\s+(is|was)\b/.test(normalized) && !subject) {