Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(command): track recency for parent-scope commands (#3326)

gbirman0d7162f0cb9a
diff --git a/js/app/packages/app/component/command/CommandMenu.tsx b/js/app/packages/app/component/command/CommandMenu.tsx
index c86ce59854..0bb7e8bcc0 100644
--- a/js/app/packages/app/component/command/CommandMenu.tsx
+++ b/js/app/packages/app/component/command/CommandMenu.tsx
@@ -168,6 +168,7 @@ export function CommandMenuInner(props: {
if (isCommandItem(item)) {
const command = item.data;
+ trackCommandUsage(item.id);
// Check if this is a multi-stage command
if (command.activateCommandScopeId) {
@@ -188,7 +189,6 @@ export function CommandMenuInner(props: {
}
// Regular command - close and run
- trackCommandUsage(item.id);
CommandState.close();
CommandState.setQuery('');
runCommand(command);