Skip to content

fix(session): keep a recorded replay pin on a generation-start turn - #719

Merged
senamakel merged 2 commits into
epic/712-tool-tokensfrom
replay-pin-resolve-guard
Nov 8, 2026
Merged

senamakel merged 2 commits into
epic/712-tool-tokensfrom
replay-pin-resolve-guard

Conversation

@senamakel

Copy link
Copy Markdown
Owner

Part of #716 (follow-up to #717). Part of tinyhumansai/chottu-core#712.

What changed

replay_pin::resolve took 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 the recorded.is_none() guard in discovery::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: pass
  • cargo clippy -p openhuman --lib -- -D warnings: pass
  • cargo test -p openhuman --lib replay_pin: 10 passed
  • cargo test -p openhuman --lib codec: 10 passed

Co-authored-by: Medulla medulla@tinyhumans.ai

senamakel and others added 2 commits November 8, 2026 04:22
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>
@senamakel
senamakel merged commit 4c41207 into epic/712-tool-tokens Nov 8, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant