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 <noreply@anthropic.com>
This commit is contained in:
waleed
2026-02-12 11:42:45 -08:00
parent 41ed85905d
commit a25b26e1e9
3 changed files with 7 additions and 3 deletions

View File

@@ -91,7 +91,9 @@ export function ParameterWithLabel({
{title}
{isRequired && visibility === 'user-only' && <span className='ml-0.5'>*</span>}
{visibility !== 'user-only' && (
<span className='ml-[6px] text-[12px] text-[var(--text-tertiary)]'>(optional)</span>
<span className='-ml-[3px] text-[12px] font-normal text-[var(--text-tertiary)]'>
(optional)
</span>
)}
</Label>
<div className='flex min-w-0 flex-1 items-center justify-end gap-[6px]'>

View File

@@ -84,7 +84,9 @@ export function ToolSubBlockRenderer({
const labelSuffix = useMemo(
() =>
isOptionalForUser ? (
<span className='ml-[6px] text-[12px] text-[var(--text-tertiary)]'>(optional)</span>
<span className='-ml-[3px] text-[12px] font-normal text-[var(--text-tertiary)]'>
(optional)
</span>
) : null,
[isOptionalForUser]
)

View File

@@ -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: {