chore(context-injector): add debug logging for context injection tracing

Add DEBUG log statements to trace context injection flow:
- Log message transform hook invocations
- Log sessionID extraction from message info
- Log hasPending checks for context collector
- Log hook content registration to contextCollector

🤖 Generated with [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) assistance
This commit is contained in:
YeonGyu-Kim
2026-01-06 17:25:21 +09:00
parent c074da0b93
commit 24e983eac7
2 changed files with 21 additions and 1 deletions
+5
View File
@@ -169,6 +169,11 @@ export function createClaudeCodeHooksHook(
log("UserPromptSubmit hooks prepended to first message parts directly", { sessionID: input.sessionID })
}
} else if (contextCollector) {
log("[DEBUG] Registering hook content to contextCollector", {
sessionID: input.sessionID,
contentLength: hookContent.length,
contentPreview: hookContent.slice(0, 100),
})
contextCollector.register(input.sessionID, {
id: "hook-context",
source: "custom",