core/agent: drop get_truncated hint from token-less generic truncation

This commit is contained in:
2026-08-11 18:21:45 +08:00
parent c2735dada3
commit b5950bdb57
3 changed files with 14 additions and 13 deletions
+3 -2
View File
@@ -15,8 +15,9 @@ def test_truncate_tool_result_long() -> None:
assert "Truncated" in out
assert "20" in out
assert "30" in out
assert "get_truncated" in out
assert "configuration file" not in out
# Generic tool results carry no resumable source → no token, no get_truncated.
assert "get_truncated" not in out
assert "TRUNCATE_TOKEN" not in out
def test_truncate_tool_result_no_hint() -> None:
+3 -2
View File
@@ -44,8 +44,9 @@ def test_truncate_tool_result_long() -> None:
assert "Truncated" in out
assert "20" in out
assert "30" in out
assert "get_truncated" in out
assert "configuration file" not in out
# Generic tool results carry no resumable source → no token, no get_truncated.
assert "get_truncated" not in out
assert "TRUNCATE_TOKEN" not in out
def test_truncate_tool_result_no_hint() -> None: