fix(coding-agent): skip hook init when no hooks configured

This commit is contained in:
Mario Zechner 2025-12-09 22:24:17 +01:00
parent 04d59f31ea
commit 86c2a33df4

View file

@ -276,6 +276,11 @@ export class InteractiveMode {
* Initialize the hook system with TUI-based UI context.
*/
private async initHooks(): Promise<void> {
const hookPaths = this.settingsManager.getHookPaths();
if (hookPaths.length === 0) {
return; // No hooks configured
}
// Create hook UI context
const hookUIContext = this.createHookUIContext();