From a25b26e1e9569ba94716ca733a65380eba31710b Mon Sep 17 00:00:00 2001 From: waleed Date: Thu, 12 Feb 2026 11:42:45 -0800 Subject: [PATCH] fix(tool-input): correct workflow selector visibility and tighten (optional) spacing - Set workflowId param to user-only in workflow_executor tool config so "Select Workflow" no longer shows "(optional)" indicator - Tighten (optional) label spacing with -ml-[3px] to counteract parent Label's gap-[6px], making it feel inline with the label text Co-Authored-By: Claude Opus 4.6 --- .../components/tool-input/components/tools/parameter.tsx | 4 +++- .../tool-input/components/tools/sub-block-renderer.tsx | 4 +++- apps/sim/tools/workflow/executor.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/parameter.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/parameter.tsx index fe9ed3274..f1b34bec3 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/parameter.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/parameter.tsx @@ -91,7 +91,9 @@ export function ParameterWithLabel({ {title} {isRequired && visibility === 'user-only' && *} {visibility !== 'user-only' && ( - (optional) + + (optional) + )}
diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/sub-block-renderer.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/sub-block-renderer.tsx index 177dd55a0..64c68b058 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/sub-block-renderer.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/sub-block-renderer.tsx @@ -84,7 +84,9 @@ export function ToolSubBlockRenderer({ const labelSuffix = useMemo( () => isOptionalForUser ? ( - (optional) + + (optional) + ) : null, [isOptionalForUser] ) diff --git a/apps/sim/tools/workflow/executor.ts b/apps/sim/tools/workflow/executor.ts index 894908309..44ebff2b5 100644 --- a/apps/sim/tools/workflow/executor.ts +++ b/apps/sim/tools/workflow/executor.ts @@ -18,7 +18,7 @@ export const workflowExecutorTool: ToolConfig< workflowId: { type: 'string', required: true, - visibility: 'user-or-llm', + visibility: 'user-only', description: 'The ID of the workflow to execute', }, inputMapping: {