Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

Remove ineffective stream WebSocket default (#4476)

Alex Langenfeldf15eaa6370b0
diff --git a/.changeset/quiet-streams-rest.md b/.changeset/quiet-streams-rest.md
new file mode 100644
index 000000000..38be81340
--- /dev/null
+++ b/.changeset/quiet-streams-rest.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+Remove the stream-writer WebSocket default added in 0.73.0, which never took effect. Behavior is unchanged.
diff --git a/packages/eve/src/internal/workflow/vercel-world-defaults.test.ts b/packages/eve/src/internal/workflow/vercel-world-defaults.test.ts
index c779bd7ef..cb40d8c37 100644
--- a/packages/eve/src/internal/workflow/vercel-world-defaults.test.ts
+++ b/packages/eve/src/internal/workflow/vercel-world-defaults.test.ts
@@ -6,27 +6,14 @@ describe("applyVercelWorkflowWorldDefaults", () => {
it("batches event bursts without changing the world's other settings", () => {
const streams = {};
const world: { streams: object; streamFlushIntervalMs?: number } = { streams };
- applyVercelWorkflowWorldDefaults(world, {});
+ applyVercelWorkflowWorldDefaults(world);
expect(world).toEqual({ streams, streamFlushIntervalMs: 10 });
expect(world.streams).toBe(streams);
});
it.each([0, 5, 25])("preserves an explicit %i ms window", (streamFlushIntervalMs) => {
const world = { streamFlushIntervalMs };
- applyVercelWorkflowWorldDefaults(world, {});
+ applyVercelWorkflowWorldDefaults(world);
expect(world.streamFlushIntervalMs).toBe(streamFlushIntervalMs);
});
-
- it.each([undefined, ""])("defaults the stream transport to ws when unset (%j)", (value) => {
- const env: Record<string, string | undefined> = { WORKFLOW_STREAMS_TRANSPORT: value };
- applyVercelWorkflowWorldDefaults({}, env);
- expect(env.WORKFLOW_STREAMS_TRANSPORT).toBe("ws");
- });
-
- it("preserves operator-supplied stream and event transports", () => {
- const env = { WORKFLOW_STREAMS_TRANSPORT: "http", WORKFLOW_EVENTS_TRANSPORT: "http" };
- applyVercelWorkflowWorldDefaults({}, env);
- expect(env.WORKFLOW_STREAMS_TRANSPORT).toBe("http");
- expect(env.WORKFLOW_EVENTS_TRANSPORT).toBe("http");
- });
});
diff --git a/packages/eve/src/internal/workflow/vercel-world-defaults.ts b/packages/eve/src/internal/workflow/vercel-world-defaults.ts
index f0e92f93a..afec70685 100644
--- a/packages/eve/src/internal/workflow/vercel-world-defaults.ts
+++ b/packages/eve/src/internal/workflow/vercel-world-defaults.ts
@@ -1,14 +1,6 @@
/** Configure the freshly constructed built-in Vercel World before installation. */
-export function applyVercelWorkflowWorldDefaults(
- world: { streamFlushIntervalMs?: number },
- env: Record<string, string | undefined> = process.env as Record<string, string | undefined>,
-): void {
+export function applyVercelWorkflowWorldDefaults(world: { streamFlushIntervalMs?: number }): void {
// Lifecycle events arrive across several async handlers; a short window lets
// each burst share a network write. The SDK's explicit env override still wins.
world.streamFlushIntervalMs ??= 10;
-
- // The server accepts or declines this capability and world-vercel falls back to HTTP.
- if (env.WORKFLOW_STREAMS_TRANSPORT === undefined || env.WORKFLOW_STREAMS_TRANSPORT === "") {
- env.WORKFLOW_STREAMS_TRANSPORT = "ws";
- }
}