Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): keep preview browser connected after operation timeouts #17693

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/17693/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 43 additions and 27 deletions (loading 1).

x
0 of 4 viewed, 4 left
2 additions and 2 deletionsapps/server/src/mcp/McpHttpServer.test.tsModified
View file
@@ -234,14 +234,14 @@
).pipe(Effect.provide(layerTest)),
​
-it.effect("tells the agent how to fall back when no desktop app can run the snapshot", () =>
+it.effect("tells the agent how to recover when no preview host can run the snapshot", () =>
Effect.gen(function* () {
const snapshot = yield* callSnapshot({});
​
expect(snapshot.isError).toBe(true);
const [text] = snapshot.content;
expect(text?.type === "text" ? text.text : "").toContain(
- "use a headless browser from the shell",
+ "Retry preview_status, then call preview_open",
expect(snapshot.structuredContent).toMatchObject({
error: { _tag: "PreviewAutomationNoAvailableHostError" },
34 additions and 24 deletionsapps/server/src/mcp/PreviewAutomationBroker.test.tsModified
View file
@@ -507,7 +507,6 @@
threadId: scope.thread.threadId,
});
expect(error.cause).toBe(remoteError);
- expect(error.message).toContain("remains on the desktop");
expect(error.message).not.toContain("remote recording details");
}),