Repository navigation
fix(session): keep a recorded replay pin on a generation-start turn - #719
Merged
Merged
Conversation
replay_pin::resolve let the config override a pin the rows already record when the turn prepared the thread's first prompt again (a compacted head). Mirror the recorded.is_none() guard in discovery::resolve. Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
This was referenced Nov 8, 2026
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.
Part of #716 (follow-up to #717). Part of tinyhumansai/chottu-core#712.
What changed
replay_pin::resolvetook the[context]config on every generation-start turn, even when the rows already record a pin (a compacted head whose prefix is prepared again). It now mirrors therecorded.is_none()guard indiscovery::resolve: a recorded pin wins, and nothing is re-recorded.Regression test
a_generation_start_over_recorded_rows_keeps_the_recorded_pin(replay_pin_tests.rs) failed first (effective options came from the config) and passes now.Gates
cargo fmt --all -- --check: passcargo clippy -p openhuman --lib -- -D warnings: passcargo test -p openhuman --lib replay_pin: 10 passedcargo test -p openhuman --lib codec: 10 passedCo-authored-by: Medulla medulla@tinyhumans.ai