Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/integration/codex-chat-reasoning-http-e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,12 @@ async function startRouteServer() {
body,
});
await bridgeRouteResponse(await chatRoute.POST(request), outgoing);
} catch (error) {
// Mock route bridge: surface the message, never the raw stack (js/stack-trace-exposure).
} catch {
// Mock route bridge: static body only — CodeQL flags ANY error-derived value here,
// including error.message / String(error) (js/stack-trace-exposure #736/#737). The test
// only asserts status===200, so the 500 body is never inspected.
outgoing.writeHead(500, { "content-type": "text/plain" });
outgoing.end(error instanceof Error ? error.message : String(error));
outgoing.end("internal test route error");
}
});

Expand Down
Loading