Commit Graph

6 Commits

Author SHA1 Message Date
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
gui-yue
99a1e52b36 fix: harden compaction pair handling 2026-06-07 12:35:08 +08:00
Haoran
ee9a747e09 fix: handle todo_write string inputs for issue 340
Co-authored-by: gui-yue <yuemeng.gui@gmail.com>
2026-06-03 23:24:34 +08:00
Xinlu Lai
de2f03acec Merge pull request #77 from Gujiassh/fix/s-full-follow-up
Fix running background status in s_full
2026-03-29 23:06:41 +08:00
Gujiassh
bfac5b9b88 Add Python smoke tests 2026-03-29 17:57:57 +09:00
Gujiassh
49ab1e6ff8 Fix running background status in s_full
Keep the reference agent's background status output readable by reporting '(running)' instead of leaking a None placeholder for unfinished tasks.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-12 15:45:20 +09:00