From f316f5cd9036e2a1dc665ca2136bde1a38d8a71a Mon Sep 17 00:00:00 2001 From: hugocasa Date: Tue, 29 Sep 2026 21:40:41 +0200 Subject: [PATCH] Revert "docs: agent editor comments describe runs as the caller" This reverts commit d94919c9feb3239980276a4ceb1e905fc0a6c1a3. --- .../src/lib/components/flows/content/AgentEditorHost.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/flows/content/AgentEditorHost.svelte b/frontend/src/lib/components/flows/content/AgentEditorHost.svelte index 572f1cbe87..b9521683b1 100644 --- a/frontend/src/lib/components/flows/content/AgentEditorHost.svelte +++ b/frontend/src/lib/components/flows/content/AgentEditorHost.svelte @@ -349,8 +349,8 @@ inputs?: Record ): Promise { if (!agentModule) return undefined - // A view runs the deployed agent, which anyone who can read it may do; the editor previews - // the draft. Both run as the caller. + // A view runs the deployed agent as its on-behalf-of identity, which anyone who can read it + // may do; the editor previews the draft as the one editing it. if (view && workspace) { return await JobService.runAgent({ workspace, @@ -443,6 +443,8 @@ * only report after the request. */ let pathError = $state('') + /** Who the next deploy makes the agent run as, as the "Permissioned as" line picked it. */ + export function deploy(): Promise { if (pathError) { sendUserToast(`Cannot deploy the agent: ${pathError}`, true)