Files
deepseek-harness/apps
Chinesezjc 3a46bd6798 test(web): assert the whole turn/end reason in the Cordis lifecycle
The assertion compared a rebuilt object that carried only reason.kind,
so a failing turn reported "expected { kind: 'error' }" with no payload.
TurnEndReasonMap is merge-extensible and several variants carry the only
record of why the turn ended: error holds LlmFailure (message, code) and
aborted holds its TurnEndCancelCause.

Compare the reason itself. completed declares kind as its only field, so
the passing path is unchanged, and any failure prints the full variant
payload without a per-variant branch.
2026-08-13 21:57:06 +08:00
..
2026-08-13 19:52:05 +08:00