learn-claude-code/tests
John Costa 49b3822247
refactor: summarize only trimmed history in reactive_compact
reactive_compact summarized the full message history before slicing off
the recent tail, so the kept tail was summarized and then re-attached
verbatim, and the emergency prompt-too-long path re-summarized the whole
oversized context. Move the summarize_history call below the tail
computation (including the tool_use/tool_result pair adjustment) and
summarize only messages[:tail_start], so the summary covers older history
while the recent tail stays verbatim.

Applied to the duplicated function in s08, s09, and s20, with the s08
README snippets (en/zh/ja) updated to match. Adds tests covering the
normal path and the case where a tool pair straddles the tail boundary.

Fixes #350
2026-06-15 21:55:21 -07:00
..
test_agents_smoke.py Add Python smoke tests 2026-03-29 17:57:57 +09:00
test_compaction_tool_pairs.py refactor: summarize only trimmed history in reactive_compact 2026-06-15 21:55:21 -07:00
test_s_full_background.py Fix running background status in s_full 2026-03-12 15:45:20 +09:00
test_todo_write_string_input.py fix: handle todo_write string inputs for issue 340 2026-06-03 23:24:34 +08:00