qwen-code/packages/cli
Shaojin Wen d0cd5520d8
test(review): single-encode the diff-read fixture and pin the failed-read gate (#9539)
* test(review): single-encode the diff-read fixture and pin the failed-read gate

Two follow-ups to the diff-read pin added in #9484:

- The fixture's launch line was `JSON.stringify(...)` before the trailing
  `.map((r) => JSON.stringify(r))` encoded it a second time, so
  `parseTranscript` parsed a bare string and dropped it — `launchPrompt`
  was silently `''`. Make it a plain object literal like its siblings, and
  assert `launchPrompt` so the encoding can't regress unseen.
- Add a FAILED (`response: { error }`) read of the diff to the fixture and
  assert `diffToolCalls` stays 1 and `diffReads` stays `[[1, 40]]`. Hoisting
  the counter out of the `!isErrorPart` branch — which otherwise ships green
  across the whole suite — would credit a denied read as a diff read.

* test(review): pin the failed-read gate on the evidence arg lists (#9539)
2026-08-20 12:22:50 +00:00
..
src test(review): single-encode the diff-read fixture and pin the failed-read gate (#9539) 2026-08-20 12:22:50 +00:00
.gitignore feat(core): add opt-in built-in web_search backed by the DashScope Responses API (#7215) 2026-07-21 10:59:36 +00:00
index.ts fix(cli): add bootstrap fast paths (#6188) 2026-07-02 22:28:11 +00:00
package.json feat(cli): correlate daemon logs with OpenTelemetry spans (#9084) 2026-08-13 16:33:12 +00:00
test-setup.ts feat(serve): persist dynamic workspace registrations (#6716) 2026-07-11 16:49:40 +00:00
tsconfig.json refactor: centralize cross-package contracts (#9497) 2026-08-20 06:24:41 +00:00
vitest.config.ts feat(serve): persist prompt terminal ledger for cold-load reconciliation (#9426) 2026-08-20 07:27:49 +00:00