From ef74577ccbadecb86926abcbf4632eb409ea8f61 Mon Sep 17 00:00:00 2001 From: ismeth Date: Wed, 18 Feb 2026 20:56:40 +0100 Subject: [PATCH] fix(athena): reduce keyword-detector log noise for Athena sessions Only log keyword skipping when there are actual keywords to skip, not on every Athena message. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/hooks/keyword-detector/hook.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hooks/keyword-detector/hook.ts b/src/hooks/keyword-detector/hook.ts index 7da47ca13..8af85a30f 100644 --- a/src/hooks/keyword-detector/hook.ts +++ b/src/hooks/keyword-detector/hook.ts @@ -52,10 +52,12 @@ export function createKeywordDetectorHook(ctx: PluginInput, _collector?: Context // 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 }