旧 assistant `tool_calls[].function.arguments` 超 ~800 chars 时压成合法 JSON 标记(保留 path/script_path/name/original_chars),避免 `write(content=...)` 源码参数反复进 prompt;keep_recent 20→12 收窄原文窗口。role/tool_call_id/ name 等协议字段不变,tool_call 协议完整。stats 增 compacted_tool_call_arguments。 DESIGN §8.2 退出标准补一条:列表 N 条/N tok 是历史累计、不随发送前压缩下降。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test_context_compaction.py | ||
| test_disk_quota.py | ||
| test_executor_docker.py | ||
| test_load_skill.py | ||
| test_run_python_script_path.py | ||
| test_sandbox_check.py | ||
| test_secret_host_tools.py | ||
| test_static_vendor.py | ||
| test_tool_output_compaction.py | ||
| test_usage_accounting.py | ||