From aafd2134d2f135b362ff6a9763d51c0f38373343 Mon Sep 17 00:00:00 2001 From: Dan Kochetov Date: Mon, 16 Feb 2026 00:58:46 +0200 Subject: [PATCH] fix(plugin): honor disabled background-notification hook --- src/create-managers.ts | 4 +++- src/index.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/create-managers.ts b/src/create-managers.ts index fb8891d21..de4f5de2f 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 747078518..a444e5128 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({