mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-11 04:00:38 +00:00
fix(code-runtime-python): make the write-path pre-checks open-aware; document the open flag in zh
The review's warning: while an open entry accumulates, the newline pre-checks in the write path still charged a NEW entry's +3 cheap-bound overhead (quotes + separator), so an exact-fit merged TAIL was truncated (or the pre-check over-rejected it and flushed a truncated prefix). Both pre-checks now charge the overhead only when no open entry is in progress, matching _push_locked's open-aware bound. A regression case (the review's recipe: flush an open fragment, then write one exact-fit newline-terminated line) is verified to truncate when the +3 is restored. The zh README's wire-contract section now describes the open flag like the en side (the fd-3 Agent Note holds the split-billing arithmetic; a cross-doc link was omitted to keep the bilingual link sequence aligned).
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/code-runtime/code-runtime-python/README.md
|
||||
README.md: 97a4b6d4ccf51cf999dcef237aac1480a532bce6
|
||||
README.zh.md: 649ca8ddd4c1ad02f27b8131c60f22511801c1e9
|
||||
README.md: 3734639760e51c31ee3ba467e57f7e025ef1907c
|
||||
README.zh.md: 233cf01c3e1f8ad97f181e7f65ce009438e2366d
|
||||
|
||||
Reference in New Issue
Block a user