diff --git a/frontend/src/lib/components/flows/content/AgentEditorModal.svelte b/frontend/src/lib/components/flows/content/AgentEditorModal.svelte index a1bd126322..69dec38fd2 100644 --- a/frontend/src/lib/components/flows/content/AgentEditorModal.svelte +++ b/frontend/src/lib/components/flows/content/AgentEditorModal.svelte @@ -411,8 +411,9 @@ /> {/if} - {#if !draftOnly} + backend's `require_agent` would reject every run. Evaluating is authoring, so it + is for those who can edit the agent. --> + {#if !draftOnly && !readOnly} + + {#if canEdit} + + {/if}