mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
fix(coding-agent): skip hook init when no hooks configured
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user