Ayaan Zaidi
cde1e2d3a1
fix: preserve compaction split after trailing tool results
2026-04-04 22:34:05 +05:30
Ayaan Zaidi
3f7bd3bd7b
fix: split before unfinished compaction tool turns
2026-04-04 22:30:27 +05:30
wangchunyue
08992e1dbc
fix: keep tool calls paired during compaction ( #58849 ) (thanks @openperf)
...
* fix(compaction): keep tool_use and toolResult together when splitting messages
* fix: keep displaced tool results in compaction chunks
* fix: keep tool calls paired during compaction (#58849 ) (thanks @openperf)
* fix: avoid stalled compaction splits on aborted tool calls (#58849 ) (thanks @openperf)
---------
Co-authored-by: Ayaan Zaidi <hi@obviy.us >
2026-04-04 22:12:43 +05:30
Peter Steinberger
14cfcdba1a
docs(test): refresh stale model refs
2026-04-04 08:05:49 +01:00
Peter Steinberger
3c71e2bd48
refactor(core): extract shared dedup helpers
2026-03-07 10:41:05 +00:00
Peter Steinberger
39520ad21b
test(agents): tighten pi message typing and dedupe malformed tool-call cases
2026-03-03 01:44:21 +00:00
Peter Steinberger
bfada9e425
test: move more local agents helper suites out of e2e
2026-02-22 10:55:22 +00:00
Peter Steinberger
9131b22a28
test: migrate suites to e2e coverage layout
2026-02-13 14:28:22 +00:00
Christian Klotz
f32eeae3bc
fix: remove orphaned tool_results during compaction pruning
...
When pruneHistoryForContextShare drops chunks of messages, it could drop
an assistant message with tool_use blocks while leaving corresponding
tool_result messages in the kept portion. These orphaned tool_results
cause Anthropic's API to reject the session with 'unexpected tool_use_id'.
Fix by calling repairToolUseResultPairing after each chunk drop to clean
up any orphaned tool_results. This reuses existing battle-tested code
from session-transcript-repair.ts.
Fixes #9769 , #9724 , #9672
2026-02-05 20:37:53 +00:00
cpojer
f06dd8df06
chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts.
2026-02-01 10:03:47 +09:00
cpojer
15792b153f
chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.
2026-01-31 16:04:04 +09:00
jigar
dde9605874
Agents: summarize dropped messages during compaction safeguard pruning ( #2418 )
2026-01-26 20:35:08 -06:00
Peter Steinberger
da26954dd0
test(compaction): cover staged pruning
2026-01-23 22:25:07 +00:00
Peter Steinberger
ae0741a346
feat(compaction): add staged helpers
2026-01-23 22:23:23 +00:00