Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,18 @@ export function useChat(
) {
clientExecutionStarted.add(id)
const args = data?.arguments ?? data?.input ?? {}
const targetWorkflowId =
typeof (args as Record<string, unknown>).workflowId === 'string'
? ((args as Record<string, unknown>).workflowId as string)
: useWorkflowRegistry.getState().activeWorkflowId
if (targetWorkflowId) {
const meta = useWorkflowRegistry.getState().workflows[targetWorkflowId]
addResource({
type: 'workflow',
id: targetWorkflowId,
title: meta?.name ?? 'Workflow',
})
}
Comment thread
cursor[bot] marked this conversation as resolved.
executeRunToolOnClient(id, name, args as Record<string, unknown>)
}
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3922,7 +3922,7 @@ const WorkflowContent = React.memo(
</>
)}

{!embedded && <Notifications />}
<Notifications />
Comment thread
TheodoreSpeaks marked this conversation as resolved.
Outdated

{!embedded && isWorkflowReady && isWorkflowEmpty && effectivePermissions.canEdit && (
<CommandList />
Expand Down
Loading