fix(workspace): hide ephemeral quick runtimes
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user