deepseek-harness/examples/headless-agent/tests
creatixchu 87f24bb991 fix(agent-loop): mark finalized prefixes durable-interrupted; never finalize failed attempts
Review round findings:

- Clear the streaming attempt before the request-error waterfall: a cancel
  landing during recovery (typically the llm/retry backoff, after clients
  reset the streamed rendering) must not resurrect the failed stream's
  prefix. Provider failures commit nothing, now including that window.
- Record interrupted: true on the cancellation-finalized assistant/message.
  The chat projection keeps the settled prefix classified as interrupted
  (Stopped chip, restored web goldens), and request inspection leaves the
  request uncompleted so the step boundary classifies it as before.
- Pin the recovery-window and retry-discard semantics with content-bearing
  failed streams in cancel.spec; update the ACP late-end expectation to the
  finalized-prefix transcript.
- Mention interruptedBlocks() in the assembler stream-lifecycle JSDoc.
2026-08-10 13:10:43 +08:00
..
fixtures Merge remote-tracking branch 'origin/master' into codex/fix-deepseek-keepalive 2026-08-09 15:00:08 +08:00
semantic-checkpoint-snapshots/tool-outcome-unknown test(session): align turn-end contract artifacts 2026-08-04 14:09:52 +08:00
snapshots fix(agent-loop): mark finalized prefixes durable-interrupted; never finalize failed attempts 2026-08-10 13:10:43 +08:00
subagent-diagnostic-snapshots/descriptorless-child fix: address PR #1802 review round 2026-08-07 00:05:41 +08:00
subagent-inheritance-snapshots/parent-override Merge remote-tracking branch 'origin/worktree/context-source-cards' into worktree/context-forms-remaining 2026-08-06 11:49:03 +08:00
workspace-context-resume-snapshots test(workspace-context): align source form metadata 2026-08-06 20:21:15 +08:00
code-mode.e2e.ts refactor(agent): unify agent-scoped event signatures as payload objects 2026-08-06 12:13:14 +08:00
coding-task.e2e.ts refactor(llm-deepseek)!: rename the provider route to deepseek-official 2026-07-29 16:36:07 +08:00
compaction.e2e.ts docs: replace vague provenance prose with recorded facts 2026-08-09 15:35:02 +08:00
full-loop.e2e.ts refactor(llm-deepseek)!: rename the provider route to deepseek-official 2026-07-29 16:36:07 +08:00
harness.ts Merge remote-tracking branch 'origin/master' into feat/todo-multi-in-progress 2026-08-07 11:27:24 +08:00
headless.snapshot.ts docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
keyless-smoke.e2e.ts test(repository-plugin): update keyless prepare fixture 2026-08-09 11:41:40 +08:00
real-model.e2e.ts cleanup(cli): remove dsh-cli-demo 2026-08-08 15:08:07 +08:00
resume.e2e.ts refactor(llm-deepseek)!: rename the provider route to deepseek-official 2026-07-29 16:36:07 +08:00
semantic-checkpoint.snapshot.ts cleanup(cli): remove dsh-cli-demo 2026-08-08 15:08:07 +08:00
subagent-diagnostic.snapshot.ts cleanup(cli): remove dsh-cli-demo 2026-08-08 15:08:07 +08:00
subagent-inheritance.snapshot.ts cleanup(cli): remove dsh-cli-demo 2026-08-08 15:08:07 +08:00
todo-write.e2e.ts Merge remote-tracking branch 'origin/master' into feat/todo-multi-in-progress 2026-08-06 11:25:28 +08:00
workspace-context-resume.snapshot.ts cleanup(cli): remove dsh-cli-demo 2026-08-08 15:08:07 +08:00