diff --git a/src/features/dashboard/sandbox/header/header.tsx b/src/features/dashboard/sandbox/header/header.tsx index ae0362a5e..5de450f1a 100644 --- a/src/features/dashboard/sandbox/header/header.tsx +++ b/src/features/dashboard/sandbox/header/header.tsx @@ -21,7 +21,7 @@ export default function SandboxDetailsHeader() { const runningLabel = isInitialLoading || isRunning ? 'running for' : 'ran for' const timeoutLabel = isKilled - ? 'stopped at' + ? 'killed at' : isPaused ? 'paused at' : 'timeout in' diff --git a/src/features/dashboard/sandbox/header/status.tsx b/src/features/dashboard/sandbox/header/status.tsx index da92dd441..cc33c542c 100644 --- a/src/features/dashboard/sandbox/header/status.tsx +++ b/src/features/dashboard/sandbox/header/status.tsx @@ -17,6 +17,15 @@ export default function Status() { ) } + if (state === 'killed') { + return ( + + + Killed + + ) + } + return ( 0 + const stoppedLabel = + sandboxInfo?.state === 'paused' + ? 'Sandbox Paused' + : sandboxInfo?.state === 'killed' + ? 'Sandbox Killed' + : 'Sandbox Stopped' + return ( {show && ( @@ -48,7 +55,7 @@ export function StoppedBanner({ rootNodeCount }: StoppedBannerProps) { {showWatcherError ? 'Live filesystem updates disabled' - : 'Sandbox Stopped'} + : stoppedLabel}