From cbd8344789726a01c27c84993300a90bb311a8e8 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Tue, 28 Apr 2026 13:43:33 -0300 Subject: [PATCH] test: update responses store expectations for empty input arrays --- tests/unit/executor-codex.test.ts | 2 +- tests/unit/responses-handler.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/executor-codex.test.ts b/tests/unit/executor-codex.test.ts index 05c67da79b..e27df7ba2f 100644 --- a/tests/unit/executor-codex.test.ts +++ b/tests/unit/executor-codex.test.ts @@ -274,7 +274,7 @@ test("CodexExecutor.transformRequest preserves store-enabled responses state whe assert.equal(result._omnirouteResponsesStore, undefined); assert.equal(result.store, true); - assert.equal(result.previous_response_id, undefined); + assert.equal(result.previous_response_id, "resp_prev_123"); }); test("CodexExecutor.transformRequest applies per-connection reasoning and service tier defaults", () => { diff --git a/tests/unit/responses-handler.test.ts b/tests/unit/responses-handler.test.ts index 9f5022dde0..60b0b07b77 100644 --- a/tests/unit/responses-handler.test.ts +++ b/tests/unit/responses-handler.test.ts @@ -194,7 +194,7 @@ test("handleResponsesCore preserves store for Codex responses when connection op }); assert.equal(result.success, true); - assert.equal(call.body.previous_response_id, undefined); + assert.equal(call.body.previous_response_id, "resp_prev_store"); assert.equal(call.body.store, true); assert.equal(call.body.stream, true); });