Simplify saved sessions and context compaction - #608
Merged
Conversation
fazxes
force-pushed
the
fazxes/session-conversation-compaction
branch
2 times, most recently
from
September 3, 2026 06:34
a7f2d1d to
de5b9bd
Compare
fazxes
marked this pull request as ready for review
September 3, 2026 10:16
fazxes
marked this pull request as draft
September 3, 2026 10:39
fazxes
marked this pull request as ready for review
September 3, 2026 10:58
fazxes
marked this pull request as draft
September 3, 2026 16:19
fazxes
marked this pull request as ready for review
September 3, 2026 17:03
Release the in-process session mutex before js-host snapshot commits, and update CLI coverage to use direct schema-v4 session fixtures instead of deleted cache files.
Prepare one durable history turn across TUI, CLI, ACP, and subagents. Externalize committed and synthetic tool results, store relative image locators, and persist the first derived session title.
Include the verified tool-results directory in the bounded active-session descriptor budget.
Cover JSONL tail repair, incomplete-turn recovery, and fail-closed committed corruption instead of deleted authority and watermark transactions.
Keep portable relative image locators in converted JSONL while resolving the returned live session state exactly once.
Wait for events.jsonl instead of the removed checkpoint cache before inspecting a persisted failed tool result.
Persist permission feedback and command replay references with tool results, preserve rich usage snapshots in usage-v2.json, and move E2E oracles to their current owners.
Keep typed tool results, turn summaries, and file evidence intact across conversation-log reloads. Materialize resume history on the first frame and remove assertions for retired cache and watermark files.
Apply active conversation transitions directly, compact oversized tool arguments through a bounded semantic projection, and preserve renamed metadata. Update recovery and stress fixtures to exercise the current conversation format.
- Compact and replay a request once when the provider reports context exhaustion. - Reserve requested summary output inside the compactor context window. - Keep the pending user prompt after compacted history.
Assert the bounded capacity failure and single tool effect when request serialization is unavailable.
Remove the remaining full-state and cache-backed paths. Older sessions now convert once on writable resume, and optional artifact and recovery stores stay lazy until needed.
fazxes
force-pushed
the
fazxes/session-conversation-compaction
branch
from
September 3, 2026 22:10
1b6970f to
2e638c5
Compare
fazxes
marked this pull request as draft
September 3, 2026 22:23
fazxes
marked this pull request as ready for review
September 4, 2026 01:55
Retain complete recent exchanges across checkpoints and resume. Use the active model for summaries and allow slow response headers up to 120 seconds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary