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(tasks): limit similar task suggestions (#4799)
Eric Hayesb0a211aa444b
diff --git a/apps/web/src/features/block-md/component/TaskDuplicateList.tsx b/apps/web/src/features/block-md/component/TaskDuplicateList.tsxindex 18b1a36327..879c4a7e8f 100644--- a/apps/web/src/features/block-md/component/TaskDuplicateList.tsx+++ b/apps/web/src/features/block-md/component/TaskDuplicateList.tsx@@ -23,6 +23,7 @@ import {} from 'solid-js';const DEBOUNCE_MS = 300;+const MAX_SIMILAR_TASKS = 2;type DebouncedInput = { title: string; markdown: string };@@ -50,7 +51,7 @@ function SimilarTasksInner(props: {return input.title.trim().length > 0 || input.markdown.trim().length > 0;};const results = (): TaskSimilarityResult[] =>- hasInput() ? (similarity.data ?? []) : [];+ hasInput() ? (similarity.data ?? []).slice(0, MAX_SIMILAR_TASKS) : [];const ids = () => results().map((result) => result.taskId);// Hydrate full soup entities (status, owner, assignees, …) for the matches so