Repository navigation
Persist the full-after-thread cache boundary across host restarts (OpenCode 2, Pi) - #867
Closed
antauth-alfonso[bot] wants to merge 2 commits into
Closed
antauth-alfonso[bot] wants to merge 2 commits into
antauth-alfonso[bot] wants to merge 2 commits into
Conversation
Author
|
Squash-merged to main as 4442c37. |
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.
After a server replacement the first full request lost its tail marker (no_anchor) and rewrote everything after message 1 (~330k tokens per head per cut). The marker record (hashes, positions, lifetimes only) is now persisted per session, owner-only, and reused under the existing checks.
Summary by cubic
Persists the full-after-thread cache boundary per session so the first full request after a host restart reuses the previous full request's prefix instead of rewriting everything after message 1 (~330k tokens per head per cut). Applies to both OpenCode 2 and Pi.
Written for commit 0669bfa. Summary will update on new commits.