diff --git a/frontend/src/routes/(root)/(logged)/oauth/mcp_authorize/+page@(root).svelte b/frontend/src/routes/(root)/(logged)/oauth/mcp_authorize/+page@(root).svelte index 042e1a1667..73fa02e2de 100644 --- a/frontend/src/routes/(root)/(logged)/oauth/mcp_authorize/+page@(root).svelte +++ b/frontend/src/routes/(root)/(logged)/oauth/mcp_authorize/+page@(root).svelte @@ -183,8 +183,11 @@ ? workspaceAccess.filter((w) => isTools(w) && !served.includes(w)) : [] ) - // A role limit settles the access; a narrower one the client asked for stays editable. - const editable = $derived(served.every((w) => !w.limited) || access !== 'full') + // Narrowing only ever lowers what each workspace gets, so it is offered unless every role limit + // already settles the access; a narrower one the client asked for stays editable. + const editable = $derived( + served.length === 0 || served.some((w) => !w.limited) || access !== 'full' + ) // One tool list per connection: the picked level's, or what a bound workspace leaves. // A connection bound to a workspace whose role offers scripts and flows as tools lists those. const runnablesHere = $derived(