From 5b074c2e221ec4bfc38b630f541541814448ff6f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 30 Jul 2025 22:45:31 +0300 Subject: [PATCH] fix(command_palette): some note context-aware commands not working --- apps/client/src/services/command_registry.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/client/src/services/command_registry.ts b/apps/client/src/services/command_registry.ts index e3ffb36a4..f0bb2eef5 100644 --- a/apps/client/src/services/command_registry.ts +++ b/apps/client/src/services/command_registry.ts @@ -247,14 +247,18 @@ class CommandRegistry { } else if (command.keyboardAction.scope === "text-detail") { this.executeWithTextDetail(command.commandName); } else { - appContext.triggerCommand(command.commandName); + appContext.triggerCommand(command.commandName, { + ntxId: appContext.tabManager.activeNtxId + }); } return; } // Fallback for commands without keyboard action reference if (command.commandName) { - appContext.triggerCommand(command.commandName); + appContext.triggerCommand(command.commandName, { + ntxId: appContext.tabManager.activeNtxId + }); return; }