mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-06 07:11:59 +00:00
Addresses the follow-up review findings on the settlement-path fixes: - send_done now routes both the pre-encoded VALUE frame and the dict ERROR frame through a bound _encode_json_plain + bound write_encoded, never through channel.send_sync (whose body re-resolves self.write_encoded and the module _encode_json_plain at call time) — a program rebinding ProtocolChannel. write_encoded or __main__._encode_json_plain no longer skips the done frame. - flushStray retention re-accrues the withheld multibyte tail from a FRESH utf8 state (previously metering the carried lead against the post-flush expected>0 state charged it as an illegal continuation), and skips admitting when the whole residual drained into the retained tail so no bogus empty entry is pushed.