From b7b66a6047d778f1291e7fd3ceb3a6cad467ca96 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 24 Apr 2026 09:51:46 +0100 Subject: [PATCH] test: relax live cli backend wording --- src/gateway/gateway-cli-backend.live.test.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/gateway/gateway-cli-backend.live.test.ts b/src/gateway/gateway-cli-backend.live.test.ts index 1b41cf7d8c7..e32a0041cbb 100644 --- a/src/gateway/gateway-cli-backend.live.test.ts +++ b/src/gateway/gateway-cli-backend.live.test.ts @@ -315,14 +315,11 @@ describeLive("gateway live (cli backend)", () => { { sessionKey, idempotencyKey: `idem-${randomUUID()}`, - message: - providerId === "codex-cli" - ? `Please include the token CLI-BACKEND-${nonce} in your reply.` - : enableCliModelSwitchProbe - ? `Reply with exactly: CLI backend OK ${nonce}.` + - ` Also remember this session note for later: ${memoryToken}.` + - " Do not include the note in your reply." - : `Reply with exactly: CLI backend OK ${nonce}.`, + message: enableCliModelSwitchProbe + ? `Please include the token CLI-BACKEND-${nonce} in your reply.` + + ` Also remember this session note for later: ${memoryToken}.` + + " Do not include the note in your reply." + : `Please include the token CLI-BACKEND-${nonce} in your reply.`, deliver: false, timeout: CLI_BACKEND_AGENT_TIMEOUT_SECONDS, }, @@ -340,7 +337,7 @@ describeLive("gateway live (cli backend)", () => { const resultWithMeta = payload?.result as { meta?: { systemPromptReport?: SystemPromptReport }; }; - expect(matchesCliBackendReply(text, `CLI backend OK ${nonce}.`)).toBe(true); + expect(text).toContain(`CLI-BACKEND-${nonce}`); expect( resultWithMeta.meta?.systemPromptReport?.injectedWorkspaceFiles?.map( (entry) => entry.name,