diff --git a/src/create-managers.ts b/src/create-managers.ts index fb8891d2..de4f5de2 100644 --- a/src/create-managers.ts +++ b/src/create-managers.ts @@ -22,8 +22,9 @@ export function createManagers(args: { pluginConfig: OhMyOpenCodeConfig tmuxConfig: TmuxConfig modelCacheState: ModelCacheState + backgroundNotificationHookEnabled: boolean }): Managers { - const { ctx, pluginConfig, tmuxConfig, modelCacheState } = args + const { ctx, pluginConfig, tmuxConfig, modelCacheState, backgroundNotificationHookEnabled } = args const tmuxSessionManager = new TmuxSessionManager(ctx, tmuxConfig) @@ -57,6 +58,7 @@ export function createManagers(args: { log("[index] tmux cleanup error during shutdown:", error) }) }, + enableParentSessionNotifications: backgroundNotificationHookEnabled, }, ) diff --git a/src/index.ts b/src/index.ts index 74707851..a444e512 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,6 +44,7 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => { pluginConfig, tmuxConfig, modelCacheState, + backgroundNotificationHookEnabled: isHookEnabled("background-notification"), }) const toolsResult = await createTools({