From 86c2a33df4d47fa0cc7782b8efb52f5affb682d7 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Tue, 9 Dec 2025 22:24:17 +0100 Subject: [PATCH] fix(coding-agent): skip hook init when no hooks configured --- .../coding-agent/src/modes/interactive/interactive-mode.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index 506dc772..1a4a1697 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -276,6 +276,11 @@ export class InteractiveMode { * Initialize the hook system with TUI-based UI context. */ private async initHooks(): Promise { + const hookPaths = this.settingsManager.getHookPaths(); + if (hookPaths.length === 0) { + return; // No hooks configured + } + // Create hook UI context const hookUIContext = this.createHookUIContext();