From 02a203c6b2d2b3d709d61c44084d2d49f04d1acd Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sun, 22 Feb 2026 19:36:55 +0800 Subject: [PATCH] fix(pending-question): silence log when no pending questions Only log "Loaded X pending questions" when X > 0 to reduce noise in CLI output. The message was appearing on every ccw command due to module import chain, but is only meaningful for ccw view startup. --- ccw/src/core/services/pending-question-service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ccw/src/core/services/pending-question-service.ts b/ccw/src/core/services/pending-question-service.ts index 86e21f05..e077bc08 100644 --- a/ccw/src/core/services/pending-question-service.ts +++ b/ccw/src/core/services/pending-question-service.ts @@ -77,7 +77,10 @@ function initialize(): void { pendingQuestions.set(sq.id, pendingQ); } - console.log(`[PendingQuestionService] Loaded ${pendingQuestions.size} pending questions from storage`); + // Only log when there are actual pending questions (silent when 0) + if (pendingQuestions.size > 0) { + console.log(`[PendingQuestionService] Loaded ${pendingQuestions.size} pending questions from storage`); + } } initialized = true;