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
disable auto attach in soup (#1401)
Eric Hayesc9bdbfb1f772
diff --git a/js/app/packages/app/component/SoupChatInput.tsx b/js/app/packages/app/component/SoupChatInput.tsxindex bc2dc9a13b..3e32353236 100644--- a/js/app/packages/app/component/SoupChatInput.tsx+++ b/js/app/packages/app/component/SoupChatInput.tsx@@ -12,7 +12,7 @@ export function SoupChatInput() {const splitPanelContext = useSplitPanelOrThrow();const [preview] = splitPanelContext.previewState;- const { ChatInput } = useChatInput();+ const { ChatInput } = useChatInput({ autoAttach: false });const [attachHotkeys] = useHotkeyDOMScope('soup.chatInput');onMount(() => {diff --git a/js/app/packages/core/component/AI/component/input/useChatInput.tsx b/js/app/packages/core/component/AI/component/input/useChatInput.tsxindex 5dd4cda501..79a7525c1e 100644--- a/js/app/packages/core/component/AI/component/input/useChatInput.tsx+++ b/js/app/packages/core/component/AI/component/input/useChatInput.tsx@@ -81,6 +81,7 @@ export function useChatInput(isGenerating?: boolean;initialAttachments?: Attachment[];initialValue?: string;+ autoAttach?: boolean;} = {}): ChatInput {const [chatId, setChatId] = createSignal<string | undefined>(args.chatId);@@ -99,7 +100,7 @@ export function useChatInput(});const tabAttachments = useTabAttachments();- if (ENABLE_AI_AUTO_TAB_ATTACHMENTS) {+ if (ENABLE_AI_AUTO_TAB_ATTACHMENTS && args.autoAttach !== false) {createEffect(on(tabAttachments, (tabs, p) => {for (const prev of p ?? []) {