From 91934b5ebdd9c20c7963c8852f8c06afc554fc76 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Wed, 30 Sep 2026 13:39:36 +0200 Subject: [PATCH] fix: evals only for those who can edit the agent Evaluating builds datasets and runs against the agent, which is authoring: the agent page and the editor offer it only with write access to the agent. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../flows/content/AgentEditorModal.svelte | 5 +++-- .../agents/get/[...path]/+page.svelte | 21 +++++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) 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}