Skip to content

Commit 1ff97e8

Browse files
test(server): narrow Codex replay entries before reading labels
1 parent b49aa8c commit 1ff97e8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8321,7 +8321,11 @@ describe("CodexAdapterV2 post-settle continuation", () => {
83218321
prompt: "Continue",
83228322
})
83238323
.slice(5)
8324-
.map((entry) => (entry.label === "turn/start" ? withReplayRequestId(entry, 4) : entry)),
8324+
.map((entry) =>
8325+
"label" in entry && entry.label === "turn/start"
8326+
? withReplayRequestId(entry, 4)
8327+
: entry,
8328+
),
83258329
{
83268330
type: "expect_outbound",
83278331
frame: { id: 5, method: "thread/unsubscribe", params: { threadId: peer } },

0 commit comments

Comments
 (0)