diff --git a/frontend/src/routes/(root)/(logged)/workers/+page.svelte b/frontend/src/routes/(root)/(logged)/workers/+page.svelte index 7f1842f44d..ee0d3d0118 100644 --- a/frontend/src/routes/(root)/(logged)/workers/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/workers/+page.svelte @@ -590,14 +590,17 @@ Limits Version Liveness - Live Shell -

- Open a live shell to execute bash commands on the machine where the worker - runs — useful for quick access, inspection, and real-time debugging -

-
+ {#if $superadmin} + + Live Shell + +

+ Open a live shell to execute bash commands on the machine where the worker + runs — useful for quick access, inspection, and real-time debugging +

+
+
+ {/if} @@ -607,7 +610,7 @@ - - - + if (worker.startsWith(AGENT_WORKER_NAME_PREFIX)) { + if (!sshWorker) { + sendUserToast( + 'Unexpected error could not find agent worker handling repl feature', + true + ) + return + } + tag = sshWorker + } else { + tag = hostname + } + replForWorkerDrawer?.openDrawer() + }} + startIcon={{ icon: Terminal }} + > + ssh + + + {/if} {/each} {/if}