test: relax live cli backend wording · openclaw/openclaw@b7b66a6
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -315,14 +315,11 @@ describeLive("gateway live (cli backend)", () => {
|
315 | 315 | { |
316 | 316 | sessionKey, |
317 | 317 | idempotencyKey: `idem-${randomUUID()}`, |
318 | | -message: |
319 | | -providerId === "codex-cli" |
320 | | - ? `Please include the token CLI-BACKEND-${nonce} in your reply.` |
321 | | - : enableCliModelSwitchProbe |
322 | | - ? `Reply with exactly: CLI backend OK ${nonce}.` + |
323 | | -` Also remember this session note for later: ${memoryToken}.` + |
324 | | -" Do not include the note in your reply." |
325 | | - : `Reply with exactly: CLI backend OK ${nonce}.`, |
| 318 | +message: enableCliModelSwitchProbe |
| 319 | + ? `Please include the token CLI-BACKEND-${nonce} in your reply.` + |
| 320 | +` Also remember this session note for later: ${memoryToken}.` + |
| 321 | +" Do not include the note in your reply." |
| 322 | + : `Please include the token CLI-BACKEND-${nonce} in your reply.`, |
326 | 323 | deliver: false, |
327 | 324 | timeout: CLI_BACKEND_AGENT_TIMEOUT_SECONDS, |
328 | 325 | }, |
@@ -340,7 +337,7 @@ describeLive("gateway live (cli backend)", () => {
|
340 | 337 | const resultWithMeta = payload?.result as { |
341 | 338 | meta?: { systemPromptReport?: SystemPromptReport }; |
342 | 339 | }; |
343 | | -expect(matchesCliBackendReply(text, `CLI backend OK ${nonce}.`)).toBe(true); |
| 340 | +expect(text).toContain(`CLI-BACKEND-${nonce}`); |
344 | 341 | expect( |
345 | 342 | resultWithMeta.meta?.systemPromptReport?.injectedWorkspaceFiles?.map( |
346 | 343 | (entry) => entry.name, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。