fix(ui): agent profile fields say what they accept and what empty means (#1875)

This commit is contained in:
sam committed 2026-11-14 15:08:37 +11:00
1 parent cdfdf3a756
commit eed9101d5b
1 file changed
+6 -3
+6 -3
View File
@@ -74,15 +74,18 @@ onMounted(() => {
<template #default="{ item: [key, profile] }">
<FieldGroup class="@container/field-group">
<Field orientation="responsive">
<FieldContent><FieldLabel :for="`${key}-image`">Image</FieldLabel></FieldContent>
<FieldContent>
<FieldLabel :for="`${key}-image`">Image</FieldLabel>
<FieldDescription>Container image reference, such as registry/name:tag. Empty uses the image from Container runtime.</FieldDescription>
</FieldContent>
<div class="flex min-w-0 flex-wrap items-center gap-3 @md/field-group:flex-1">
<Input :id="`${key}-image`" :model-value="profile.image" placeholder="Container image" @update:model-value="(v) => patch(key, { image: String(v) })" />
<Input :id="`${key}-image`" :model-value="profile.image" placeholder="registry/name:tag" @update:model-value="(v) => patch(key, { image: String(v) })" />
</div>
</Field>
<Field orientation="responsive">
<FieldContent>
<FieldLabel :for="`${key}-tools`">Tools</FieldLabel>
<FieldDescription>Comma-separated tool names.</FieldDescription>
<FieldDescription>Names of the MCP servers, repository scripts and skills the agent may use. Empty allows all of them.</FieldDescription>
</FieldContent>
<div class="flex min-w-0 flex-wrap items-center gap-3 @md/field-group:flex-1">
<TagsInput :id="`${key}-tools`" class="flex-1" :model-value="profile.tools ?? []" :aria-label="`${key} tools`" @update:model-value="(v) => patch(key, { tools: v.map(String) })">