Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import type { NavigationCause, ReferredFrom } from './layoutManager';
/** Content claims keyboard focus only after a command jump or creation. */
export function shouldAutofocusNavigation(
referredFrom: ReferredFrom | undefined,
cause: NavigationCause
) {
return (
(cause === 'fresh' || cause === 'replace') &&
(referredFrom === 'kommand-menu' || referredFrom === 'launcher')
);
}