Skip to content

The agent that grows with you

test(tool_result_storage): pin that a +1 heredoc byte is a loss

teknium136a64d67b99e
diff --git a/tests/tools/test_tool_result_storage.py b/tests/tools/test_tool_result_storage.py
index 59e84be0cc8..6c5fe835d0f 100644
--- a/tests/tools/test_tool_result_storage.py
+++ b/tests/tools/test_tool_result_storage.py
@@ -99,6 +99,7 @@ class TestWriteToSandbox:
[
("pipe", 512, False), # short write: bytes lost
("pipe", 171, False), # pipe backends must be exact
+ ("heredoc", 171, False), # heredoc stdin is byte-exact too; a +1 is a loss, not the old newline
("host", 3, False), # host spillover: os.stat says only 3 bytes landed
("host", None, True), # host spillover: real write, real stat
],