From c58d60b2443c0140d2ad4a6f2e03d7b5267b1faf Mon Sep 17 00:00:00 2001 From: hugocasa Date: Fri, 25 Sep 2026 12:46:19 +0200 Subject: [PATCH] feat: center the agent run form, configuration beside its Run button Co-Authored-By: Claude Opus 5.5 (1M context) --- frontend/src/lib/components/RunForm.svelte | 22 ++++++++- .../flows/content/AgentEditorHost.svelte | 47 +++++++++---------- 2 files changed, 44 insertions(+), 25 deletions(-) diff --git a/frontend/src/lib/components/RunForm.svelte b/frontend/src/lib/components/RunForm.svelte index 510f774587..e5b4e2780a 100644 --- a/frontend/src/lib/components/RunForm.svelte +++ b/frontend/src/lib/components/RunForm.svelte @@ -123,6 +123,9 @@ args?: Record jsonView?: boolean isValid?: boolean + /** Controls beside the Run button of a form that cannot schedule, in the row a + * schedulable one gives its Advanced options. */ + actions?: import('svelte').Snippet } let { @@ -141,7 +144,8 @@ overrideTagNote = undefined, args = $bindable(), jsonView = false, - isValid = $bindable(true) + isValid = $bindable(true), + actions = undefined }: Props = $props() let showPsCommonParams = $derived( @@ -385,6 +389,22 @@ {/if} + {:else if actions} + +
+ +
{@render actions()}
+
{:else} {/snippet} {#if draft.refusal} @@ -584,13 +582,13 @@ {#snippet runPane()} {#if runBlockedReason} -
- {@render modelStrip()} -
- {runBlockedReason} -
+
+ {runBlockedReason} + {#if onOpenConfig} + {@render configurationButton()} + {/if}
{:else}
@@ -599,9 +597,9 @@ {#if view} -
- {@render modelStrip()} -
+ +
+