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(channels): reset task mode properties on send (#1517)
teoe2e2b239cc52
diff --git a/js/app/packages/block-channel/component/BaseInput.tsx b/js/app/packages/block-channel/component/BaseInput.tsxindex f90bce8d6a..b38300edc5 100644--- a/js/app/packages/block-channel/component/BaseInput.tsx+++ b/js/app/packages/block-channel/component/BaseInput.tsx@@ -209,6 +209,7 @@ export function BaseInput(props: BaseInputProps) {toggleTaskMode,potentialTasks,updateTaskPropertyValue,+ resetTaskProperties,} = useTaskMode(markdownState);createRenderEffect(() => {@@ -389,6 +390,7 @@ export function BaseInput(props: BaseInputProps) {};clearMarkdownArea();+ resetTaskProperties();focusMarkdownArea();propsdiff --git a/js/app/packages/block-channel/hooks/taskmode.tsx b/js/app/packages/block-channel/hooks/taskmode.tsxindex 53f90bf167..27cdeb6920 100644--- a/js/app/packages/block-channel/hooks/taskmode.tsx+++ b/js/app/packages/block-channel/hooks/taskmode.tsx@@ -35,6 +35,8 @@ type UseTaskModeReturn = {propertyDefinitionId: string,value: PropertyApiValues) => void;+ /** Clear all task property values (call after send) */+ resetTaskProperties: () => void;};/**@@ -107,11 +109,16 @@ export function useTaskMode(}));};+ const resetTaskProperties = () => {+ setTaskPropertyValues(reconcile({}));+ };+return {taskModeEnabled,toggleTaskMode,setTaskModeEnabled,potentialTasks,updateTaskPropertyValue,+ resetTaskProperties,};}