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
fix(agents): place agent sessions between channels and companies in @ menu (#6365)
Wolf Mermelsteine7479a9ea3cc
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsxindex 3cc759863c..aced10145f 100644--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/menu/MentionsMenu/MentionsMenu.tsx@@ -257,8 +257,8 @@ function MentionsMenuInner(props: MentionsMenuProps) {const combined: MentionItem[] = [...users,...(docs() ?? []),- ...agentSessions(),...(channels() ?? []),+ ...agentSessions(),...(companies() ?? []),...(emails() ?? []),...(dates() ?? []),@@ -304,12 +304,6 @@ function MentionsMenuInner(props: MentionsMenuProps) {}const buckets: BucketConfig[] = [- {- id: 'agentSessions',- label: 'Recent agent sessions',- getData: agentSessions,- getFullCount: () => agentSessions().length,- },{id: 'users',label: groups().length > 0 ? 'People & Groups' : 'People',@@ -334,6 +328,12 @@ function MentionsMenuInner(props: MentionsMenuProps) {isLoadingMore: channelsMention.isLoadingMore,loadMore: channelsMention.loadMore,},+ {+ id: 'agentSessions',+ label: 'Recent agent sessions',+ getData: agentSessions,+ getFullCount: () => agentSessions().length,+ },{id: 'companies',label: 'Companies',diff --git a/docs/AGENT_GUIDE/channels.md b/docs/AGENT_GUIDE/channels.mdindex 3ce1f7ca76..e0bd8e498d 100644--- a/docs/AGENT_GUIDE/channels.md+++ b/docs/AGENT_GUIDE/channels.md@@ -26,8 +26,9 @@ session-specific.## Message composer-The shared `@` menu also offers `Recent agent sessions` (the latest 500 accessible-sessions, searchable by title or persona). These inline chips show the shared+The shared `@` menu also offers `Recent agent sessions` after Channels and+before Companies (the latest 500 accessible sessions, searchable by title or+persona). These inline chips show the sharedagent icon and an underlined session name, and open the existing session when clicked.They are references, not bot invocations: selecting a session does not start a newagent run. Sending or editing a message that references a session you own grantsdiff --git a/docs/AGENT_GUIDE/documents.md b/docs/AGENT_GUIDE/documents.mdindex 4c7bcf6fc9..ddcde1ab43 100644--- a/docs/AGENT_GUIDE/documents.md+++ b/docs/AGENT_GUIDE/documents.md@@ -35,8 +35,9 @@ their relative depths and order.## Reference hover previews-The `@` menu includes `Recent agent sessions`, searched by session or persona name-within the 500 most recently updated accessible sessions. Menu rows show the+The `@` menu includes `Recent agent sessions` after Channels and before+Companies. Search by session or persona name within the 500 most recently+updated accessible sessions. Menu rows show thesession title followed by a muted persona name, including `@Cursor` and`@macro(new)` for built-in personas. Names from the session API take precedence;older responses use the shared built-in name resolver or cached custom bots.