From 9268f9fe8a9ee496d0a743fd340f659d8c7906fe Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 28 May 2026 22:22:42 +0200 Subject: [PATCH] fix(e2e): drop unused codex media event buffer --- scripts/e2e/lib/codex-media-path/client.mjs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/e2e/lib/codex-media-path/client.mjs b/scripts/e2e/lib/codex-media-path/client.mjs index c6b52061afc..c53dba4c377 100644 --- a/scripts/e2e/lib/codex-media-path/client.mjs +++ b/scripts/e2e/lib/codex-media-path/client.mjs @@ -70,7 +70,6 @@ async function connectGateway() { const ws = new WebSocket(`ws://127.0.0.1:${port}`); await waitForWebSocketOpen(ws, 45_000, "gateway ws open timeout"); - const events = []; const pending = new Map(); ws.on("message", (data) => { let frame; @@ -80,10 +79,6 @@ async function connectGateway() { return; } if (frame?.type === "event" && typeof frame.event === "string") { - events.push({ - event: frame.event, - payload: frame.payload && typeof frame.payload === "object" ? frame.payload : {}, - }); return; } if (frame?.type !== "res" || typeof frame.id !== "string") { @@ -153,7 +148,6 @@ async function connectGateway() { await request("sessions.subscribe", {}, { timeoutMs: 60_000 }); return { - events, request, async close() { if (ws.readyState === WebSocket.CLOSED) {