From 32f3beda4637b36ffbc4454f769611011c71b2cc Mon Sep 17 00:00:00 2001
From: hugocasa
Date: Fri, 11 Sep 2026 16:05:44 +0200
Subject: [PATCH] fix(ai-agent): reuse the resource form's path and description
fields
Co-Authored-By: Claude Opus 5 (1M context)
---
.../flows/content/AgentResourceBar.svelte | 46 +++++++++++++++----
1 file changed, 36 insertions(+), 10 deletions(-)
diff --git a/frontend/src/lib/components/flows/content/AgentResourceBar.svelte b/frontend/src/lib/components/flows/content/AgentResourceBar.svelte
index c091450e11..414ab459ad 100644
--- a/frontend/src/lib/components/flows/content/AgentResourceBar.svelte
+++ b/frontend/src/lib/components/flows/content/AgentResourceBar.svelte
@@ -4,11 +4,14 @@
import Badge from '$lib/components/common/badge/Badge.svelte'
import Path from '$lib/components/Path.svelte'
import Label from '$lib/components/Label.svelte'
+ import Required from '$lib/components/Required.svelte'
+ import ResourcePathHint from '$lib/components/ResourcePathHint.svelte'
+ import GfmMarkdown from '$lib/components/GfmMarkdown.svelte'
import autosize from '$lib/autosize'
import { ResourceService, type InputTransform, type Resource } from '$lib/gen'
import { workspaceStore } from '$lib/stores'
import { sendUserToast } from '$lib/toast'
- import { Bot, ChevronDown, ChevronUp, Save, Unlink, Pencil } from 'lucide-svelte'
+ import { Bot, ChevronDown, ChevronUp, Pen, Save, Unlink, Pencil } from 'lucide-svelte'
import {
AGENT_BRAIN_KEYS,
AGENT_FLOW_LOCAL_KEYS,
@@ -85,6 +88,7 @@
let newPath = $state('')
let pathError = $state('')
let description = $state('')
+ let editDescription = $state(false)
let saving = $state(false)
type LinkedInfo = {
@@ -612,7 +616,11 @@
Save this AI agent's configuration and tools as a reusable resource. Other flows can then
link to it, and updates propagate automatically.
+
-
+
+
Description
+
+ {#if editDescription}
+
+ {:else if description == undefined || description == ''}
+
No description provided
+ {:else}
+
+ {/if}
+
{#if providerSaveError}
{providerSaveError}