Skip to content

Commit d9f18f2

Browse files
j15zclaude
andcommitted
fix(workflow): resolve panel chip names via unfiltered block registry
The panel resolved integration tool names through toolBlocks, which is permission- and toolbar-filtered, so a stored tool whose type was filtered out of the picker fell back to the raw type id while the canvas summary (getBlock) still showed the registry name. Use getBlock directly for the display name so both paths agree; toolBlocks still drives the chip icon, params, and picker. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 66176c6 commit d9f18f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import {
5959
ActiveSearchTargetProvider,
6060
useActiveSearchTarget,
6161
} from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/providers/active-search-target-provider'
62-
import { getAllBlocks } from '@/blocks'
62+
import { getAllBlocks, getBlock } from '@/blocks'
6363
import { getTileIconColorClass } from '@/blocks/icon-color'
6464
import type { SubBlockConfig as BlockSubBlockConfig } from '@/blocks/types'
6565
import { BUILT_IN_TOOL_TYPES } from '@/blocks/utils'
@@ -1756,7 +1756,7 @@ export const ToolInput = memo(function ToolInput({
17561756
? mcpTool?.name || tool.title
17571757
: isWorkflowTool
17581758
? 'Workflow'
1759-
: toolBlock?.name || tool.type
1759+
: getBlock(tool.type)?.name || tool.type
17601760

17611761
const useSubBlocks = !isCustomTool && !isMcpTool && subBlocksResult?.subBlocks?.length
17621762
const displayParams: ToolParameterConfig[] = isCustomTool

0 commit comments

Comments
 (0)