mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-11 04:00:38 +00:00
The review's warning: a flushed unterminated line is billed and committed (README wire contract says so), but every truncation arm — the child truncated frame, an over-budget open frame, an over-budget closing frame, and admit's two budget arms — pushed only the marker, dropping the held prefix: the ledger charged for output that vanished. All arms now funnel through truncateLogs(), which pushes the (already billed) held prefix before the marker and clears openParts, so the prefix survives and only the marker stays last; the finish() guard drops the now-dead !logsTruncated check (a truncated run has an empty hold). A regression case asserts [prefix, marker]; the forged-flood and closing-overflow cases now expect the committed prefix plus the marker.