deepseek-harness/docs
creatixchu 48d8e2f8f5 feat(agent-loop): finalize a cancelled stream's delivered prefix
A turn cancelled mid-stream dropped everything the interrupted step had
streamed: chunks stayed in the log for replay, but no assistant/message
joined the surface, so the next request carried nothing the user had
watched stream. Follow-ups after cancel could not connect and forks
inherited the gap.

Keep the streaming attempt alive across the step's request loop and, when
an abort escapes with the attempt uncommitted, finalize its user-visible
prefix as the step's ordinary assistant/message citing the logged chunk
seqs. BlockAssembler.interruptedBlocks() owns the safe subset next to the
max-tokens rule: closed and open text/reasoning blocks with content, in
stream order; tool calls, empty blocks, and unknown open blocks drop.
Retry clears the attempt first, so an abort after llm/retry finalizes
nothing from the reset stream. Tool-phase cancellation and provider
failures keep their existing shapes.
2026-08-10 12:21:44 +08:00
..
cookbook docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
cordis-api docs: fix review findings — residual ordinals, hypothetical IPC row, citation-rule amendments 2026-08-09 21:10:59 +08:00
cordis-tutorial docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
i18n docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
postmortem docs(i18n): standardize contract terminology 2026-08-09 11:33:14 +08:00
subsystems feat(agent-loop): finalize a cancelled stream's delivered prefix 2026-08-10 12:21:44 +08:00
user docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
agent-lifecycle.i18n.yaml Merge remote-tracking branch 'origin/master' into codex/concrete-provenance-prose 2026-08-09 16:39:34 +08:00
agent-lifecycle.md docs: replace vague provenance prose with recorded facts 2026-08-09 15:35:02 +08:00
agent-lifecycle.zh.md Merge remote-tracking branch 'origin/master' into codex/concrete-provenance-prose 2026-08-09 16:39:34 +08:00
AGENTS.md docs: fix round-3 review findings — §/used-to/v1 residuals, zh stamp example, budget freeze honored 2026-08-09 21:11:59 +08:00
api-gateway.i18n.yaml docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
api-gateway.md docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
api-gateway.zh.md docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
architecture.i18n.yaml docs: development 2026-08-09 19:48:58 +08:00
architecture.md docs: development 2026-08-09 19:48:58 +08:00
architecture.zh.md docs: development 2026-08-09 19:48:58 +08:00
capability-seams.i18n.yaml docs: bring generated-catalog zh pairs along; raise docs/AGENTS.md ceiling to 1335 2026-08-09 21:11:45 +08:00
capability-seams.md docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
capability-seams.zh.md docs: bring generated-catalog zh pairs along; raise docs/AGENTS.md ceiling to 1335 2026-08-09 21:11:45 +08:00
config-catalog.i18n.yaml docs: bring generated-catalog zh pairs along; raise docs/AGENTS.md ceiling to 1335 2026-08-09 21:11:45 +08:00
config-catalog.md docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
config-catalog.zh.md docs: bring generated-catalog zh pairs along; raise docs/AGENTS.md ceiling to 1335 2026-08-09 21:11:45 +08:00
cordis-paper.pdf docs: add cordis paper 2026-07-31 15:54:36 +08:00
cordis-primer.i18n.yaml docs(i18n): standardize contract terminology 2026-08-09 11:33:14 +08:00
cordis-primer.md docs: generate each subsystem's cordis surface into its own page; delete the flat catalogs 2026-08-09 01:31:57 +08:00
cordis-primer.zh.md docs(i18n): standardize contract terminology 2026-08-09 11:33:14 +08:00
defensive-patterns.i18n.yaml docs: reserve seam for complete capabilities 2026-08-09 17:26:57 +08:00
defensive-patterns.md docs: reserve seam for complete capabilities 2026-08-09 17:26:57 +08:00
defensive-patterns.zh.md docs: reserve seam for complete capabilities 2026-08-09 17:26:57 +08:00
development.i18n.yaml refactor: make lint workflows Oxlint-only 2026-08-09 14:55:15 +08:00
development.md refactor: make lint workflows Oxlint-only 2026-08-09 14:55:15 +08:00
development.zh.md refactor: make lint workflows Oxlint-only 2026-08-09 14:55:15 +08:00
event-producer-consumer.i18n.yaml docs: bring generated-catalog zh pairs along; raise docs/AGENTS.md ceiling to 1335 2026-08-09 21:11:45 +08:00
event-producer-consumer.md docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
event-producer-consumer.zh.md docs: bring generated-catalog zh pairs along; raise docs/AGENTS.md ceiling to 1335 2026-08-09 21:11:45 +08:00
glossary.i18n.yaml docs: reserve seam for complete capabilities 2026-08-09 17:26:57 +08:00
glossary.md docs: reserve seam for complete capabilities 2026-08-09 17:26:57 +08:00
glossary.zh.md docs: reserve seam for complete capabilities 2026-08-09 17:26:57 +08:00
graph-atlas.i18n.yaml docs: complete Chinese proofreading and generated reference pairing 2026-08-09 11:02:16 +08:00
graph-atlas.md docs: generate each subsystem's cordis surface into its own page; delete the flat catalogs 2026-08-09 01:31:57 +08:00
graph-atlas.zh.md docs: complete Chinese proofreading and generated reference pairing 2026-08-09 11:02:16 +08:00
module-graph.i18n.yaml docs: development 2026-08-09 19:48:58 +08:00
module-graph.md fix: docs 2026-08-09 19:00:22 +08:00
module-graph.zh.md docs: development 2026-08-09 19:48:58 +08:00
persistence-catalog.i18n.yaml feat(agent-loop): finalize a cancelled stream's delivered prefix 2026-08-10 12:21:44 +08:00
persistence-catalog.md feat(agent-loop): finalize a cancelled stream's delivered prefix 2026-08-10 12:21:44 +08:00
persistence-catalog.zh.md feat(agent-loop): finalize a cancelled stream's delivered prefix 2026-08-10 12:21:44 +08:00
testing.i18n.yaml docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
testing.md docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
testing.zh.md docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
tool-catalog.i18n.yaml docs: bring generated-catalog zh pairs along; raise docs/AGENTS.md ceiling to 1335 2026-08-09 21:11:45 +08:00
tool-catalog.md docs: purge chain-of-thought leakage from prose 2026-08-09 21:10:59 +08:00
tool-catalog.zh.md docs: bring generated-catalog zh pairs along; raise docs/AGENTS.md ceiling to 1335 2026-08-09 21:11:45 +08:00
tool-execution-pipeline.i18n.yaml docs: complete Chinese proofreading and generated reference pairing 2026-08-09 11:02:16 +08:00
tool-execution-pipeline.md Merge remote-tracking branch 'origin/master' into feat/send-unify 2026-07-23 22:41:45 +08:00
tool-execution-pipeline.zh.md docs: complete Chinese proofreading and generated reference pairing 2026-08-09 11:02:16 +08:00
web-styling.i18n.yaml docs(i18n): standardize contract terminology 2026-08-09 11:33:14 +08:00
web-styling.md docs: rescan rebased documentation hierarchy 2026-08-05 16:16:57 +08:00
web-styling.zh.md docs(i18n): standardize contract terminology 2026-08-09 11:33:14 +08:00