diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx index bba129df7..9faa65c66 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx @@ -1412,7 +1412,8 @@ export function ToolCall({ toolCall: toolCallProp, toolCallId, onStateChange }: if ( toolCall.name === 'checkoff_todo' || toolCall.name === 'mark_todo_in_progress' || - toolCall.name === 'tool_search_tool_regex' + toolCall.name === 'tool_search_tool_regex' || + toolCall.name === 'user_memory' ) return null diff --git a/apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts b/apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts index 06b36a2b8..63f4c6c6f 100644 --- a/apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts +++ b/apps/sim/lib/copilot/tools/client/workflow/set-global-workflow-variables.ts @@ -209,13 +209,17 @@ export class SetGlobalWorkflowVariablesClientTool extends BaseClientTool { } } - const variablesArray = Object.values(byName) + // Convert byName (keyed by name) to record keyed by ID for the API + const variablesRecord: Record = {} + for (const v of Object.values(byName)) { + variablesRecord[v.id] = v + } - // POST full variables array to persist + // POST full variables record to persist const res = await fetch(`/api/workflows/${payload.workflowId}/variables`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ variables: variablesArray }), + body: JSON.stringify({ variables: variablesRecord }), }) if (!res.ok) { const txt = await res.text().catch(() => '')