Skip to content

Commit 9f91694

Browse files
authored
fix(copilot): fix edit summary for loops/parallels (#2978)
1 parent 3bbf7f5 commit 9f91694

File tree

1 file changed

+8
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call

1 file changed

+8
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/tool-call/tool-call.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import {
1818
import { CopilotMarkdownRenderer } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/markdown-renderer'
1919
import { SmoothStreamingText } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/smooth-streaming'
2020
import { ThinkingBlock } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/thinking-block'
21+
import { LoopTool } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/loop/loop-config'
22+
import { ParallelTool } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/parallel/parallel-config'
2123
import { getDisplayValue } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/workflow-block'
2224
import { getBlock } from '@/blocks/registry'
2325
import type { CopilotToolCall } from '@/stores/panel'
@@ -1131,6 +1133,12 @@ const WorkflowEditSummary = memo(function WorkflowEditSummary({
11311133
}
11321134

11331135
const getBlockConfig = (blockType: string) => {
1136+
if (blockType === 'loop') {
1137+
return { icon: LoopTool.icon, bgColor: LoopTool.bgColor }
1138+
}
1139+
if (blockType === 'parallel') {
1140+
return { icon: ParallelTool.icon, bgColor: ParallelTool.bgColor }
1141+
}
11341142
return getBlock(blockType)
11351143
}
11361144

0 commit comments

Comments
 (0)