fix(workspace): hide ephemeral quick runtimes

This commit is contained in:
2026-08-31 14:39:17 +02:00
parent 087c177e8e
commit a4ee3eb7a8
4 changed files with 256 additions and 2 deletions
+13 -1
View File
@@ -221,10 +221,22 @@ export function useWorkspace() {
void listen<HostEvent>("workspace-bridge", (message) => {
if (disposed.current) return;
const host = message.payload;
const runtimeId =
host.kind === "event" ? host.event.data?.runtimeId : undefined;
if (
runtimeId &&
!stateRef.current.runtimesById[runtimeId] &&
[
"runtime_event",
"runtime_diagnostic",
"runtime_recovery",
"runtime_closing",
].includes(host.kind === "event" ? (host.event.type ?? "") : "")
)
return;
dispatch({ type: "hostEvent", host });
if (host.kind === "resetRequired") void refresh(undefined, true);
else if (host.kind === "event") {
const runtimeId = host.event.data?.runtimeId;
const eventType = host.event.type;
const piType = String(host.event.data?.eventData?.event?.type ?? "");
if (