mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 14:01:18 +00:00
fix(coding-agent): skip hook init when no hooks configured
This commit is contained in:
parent
04d59f31ea
commit
86c2a33df4
1 changed files with 5 additions and 0 deletions
|
|
@ -276,6 +276,11 @@ export class InteractiveMode {
|
||||||
* Initialize the hook system with TUI-based UI context.
|
* Initialize the hook system with TUI-based UI context.
|
||||||
*/
|
*/
|
||||||
private async initHooks(): Promise<void> {
|
private async initHooks(): Promise<void> {
|
||||||
|
const hookPaths = this.settingsManager.getHookPaths();
|
||||||
|
if (hookPaths.length === 0) {
|
||||||
|
return; // No hooks configured
|
||||||
|
}
|
||||||
|
|
||||||
// Create hook UI context
|
// Create hook UI context
|
||||||
const hookUIContext = this.createHookUIContext();
|
const hookUIContext = this.createHookUIContext();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue