diff --git a/src/hooks/keyword-detector/hook.ts b/src/hooks/keyword-detector/hook.ts index d95cddd37..a3d014545 100644 --- a/src/hooks/keyword-detector/hook.ts +++ b/src/hooks/keyword-detector/hook.ts @@ -76,10 +76,12 @@ export function createKeywordDetectorHook( // Use getAgentConfigKey to handle display name remapping ("Athena (Council)" → "athena"). const agentConfigKey = currentAgent ? getAgentConfigKey(currentAgent) : undefined if (agentConfigKey === "athena") { - log(`[keyword-detector] Skipping all keywords for Athena (council orchestrator)`, { - sessionID: input.sessionID, - skippedTypes: detectedKeywords.map((k) => k.type), - }) + if (detectedKeywords.length > 0) { + log(`[keyword-detector] Skipping keywords for Athena (council orchestrator)`, { + sessionID: input.sessionID, + skippedTypes: detectedKeywords.map((k) => k.type), + }) + } return }