Skip to content

Compact image-heavy history before reuse#56

Merged
cbusillo merged 2 commits into
local/cbusillo-overlayfrom
compact-image-tool-history
May 12, 2026
Merged

Compact image-heavy history before reuse#56
cbusillo merged 2 commits into
local/cbusillo-overlayfrom
compact-image-tool-history

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • add reusable history compaction for old images, image-generation payloads, and large tool outputs
  • preserve the active turn's newest recorded item so fresh images still reach the model
  • compact response items and replacement histories before rollout storage so new session files do not keep raw image ballast

Closes #45

Validation

  • cargo test -p code-core history_compaction --no-default-features
  • ./build-fast.sh

@cbusillo cbusillo merged commit e88abe5 into local/cbusillo-overlay May 12, 2026
1 check passed
@cbusillo cbusillo deleted the compact-image-tool-history branch May 12, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compact persisted image and large tool-output history

1 participant