Use shared native history without writing duplicate checkpoints - #350
Merged
Merged
Conversation
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.
Session resume currently prefers a separate shared checkpoint, which can hide newer transcript writes from older CLI versions. This change makes the existing
transcript.jsonlandmetadata.jsonauthoritative again through Foundation's sharedSessionHistoryStore, while retaining cross-host writer locks. Saving does not create another checkpoint; checkpoint-only historical sessions remain readable.Context Intelligence activity is read from its existing capture, including configured relocation, to restore prior session cost. The legacy root event log remains a fallback when CI capture is absent. Forks retain existing legacy-log behavior but do not copy or rewrite CI evidence. Session naming, provider continuation data, reminder flags, unknown metadata, backup recovery, and config snapshots keep their native format. Unrecoverable canonical corruption now fails visibly rather than returning an empty history.
Depends on microsoft/amplifier-foundation#396; the dependency is pinned to its reviewed implementation commit and should be refreshed to the merged commit before merging this PR. No Context Intelligence bundle change, migration, or new storage format is required. Transcript-only CLI versions can read these saves; versions that prefer shared checkpoints must also adopt this change to stop selecting stale checkpoints.
Validation: