Allow restarting failed server instances

This commit is contained in:
npc0-hue
2026-08-06 18:18:20 +08:00
parent 1915565385
commit acec5e4367
4 changed files with 38 additions and 1 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ export function endpointLabel(endpoint: RunEndpointResponse | undefined, runEndp
}
export function canStartServer(state: ServerInstanceState): boolean {
return state === "ready" || state === "stopped";
return state === "ready" || state === "stopped" || state === "failed";
}
export function canStopServer(state: ServerInstanceState): boolean {