Skip to content

Persist compaction atomically - #4064

Merged
Sayt-0 merged 1 commit into
docker:mainfrom
krissetto:compaction-fix
Aug 27, 2026
Merged

Persist compaction atomically#4064
Sayt-0 merged 1 commit into
docker:mainfrom
krissetto:compaction-fix

Conversation

@krissetto

Copy link
Copy Markdown
Contributor

Persist compaction summaries atomically with the session metadata, so manually and automatically compacted sessions restore correctly on session reload.

Currently if you reload a long session that has had compactions and you try to continue it, no compaction will be found, auto compaction will trigger on the full chat, and the request will fail if the full chat goes over the max context length of the model in use

@krissetto
krissetto requested a review from a team as a code owner August 27, 2026 10:10
@aheritier aheritier added area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/sessions For features/issues/fixes related to session lifecycle (resume, persistence, export) kind/fix PR fixes a bug (maps to fix:). Use on PRs only. labels Aug 27, 2026
@krissetto

Copy link
Copy Markdown
Contributor Author

/review

@github-actions

Copy link
Copy Markdown
Contributor

👋 Heads up: The /review command is deprecated. Please re-request a review from docker-agent in the PR sidebar instead.

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 No issues found — LGTM! View logs.

@Sayt-0
Sayt-0 merged commit b407a13 into docker:main Aug 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/sessions For features/issues/fixes related to session lifecycle (resume, persistence, export) kind/fix PR fixes a bug (maps to fix:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants