Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(preview): let overlay-timeout errors reach automation callers #8272

Closedlnieuwenhuis(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/8272/headopened View on GitHub

Showing 6 changed files with 153 additions and 5 deletions (loading 3).

x
0 of 6 viewed, 6 left
107 additions and 0 deletionsapps/server/src/mcp/PreviewAutomationBroker.test.tsModified
View file
@@ -7,6 +7,7 @@
PreviewAutomationMalformedResponseError,
PreviewAutomationNoAvailableHostError,
PreviewAutomationTargetNotEditableError,
+ PreviewAutomationTimeoutError,
PreviewTabId,
ProviderInstanceId,
ThreadId,
@@ -14,11 +15,13 @@
type PreviewAutomationRequest,
type PreviewAutomationStreamEvent,
} from "@t3tools/contracts";
+import * as Duration from "effect/Duration";
import * as Effect from "effect/Effect";
import * as Deferred from "effect/Deferred";
import * as Fiber from "effect/Fiber";
import * as Result from "effect/Result";
import * as Stream from "effect/Stream";
+import * as TestClock from "effect/testing/TestClock";
​
import * as PreviewAutomationBroker from "./PreviewAutomationBroker.ts";
​
@@ -1042,3 +1045,107 @@
+​
+it.effect("routes a wait budget that leaves the host room to report a failure", () =>