fix(codex): count user fork turns after replay - #719
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Keep repeated child session metadata from resetting fork replay state after the child turn has started. Add parser and aggregate-path coverage for Codex user fork sessions, and bump the source message cache schema so stale empty entries are invalidated.
# Conflicts: # crates/tokscale-core/src/message_cache.rs
pinion05
added a commit
to pinion05/tokscale
that referenced
this pull request
Jun 23, 2026
Keep repeated child session metadata from resetting fork replay state after the child turn has started. Add parser and aggregate-path coverage for Codex user fork sessions, and bump the source message cache schema so stale empty entries are invalidated. Co-authored-by: Junho Yeo <i@junho.io>
t1000040
pushed a commit
to tmobi-internal/tokscale
that referenced
this pull request
Jun 30, 2026
Keep repeated child session metadata from resetting fork replay state after the child turn has started. Add parser and aggregate-path coverage for Codex user fork sessions, and bump the source message cache schema so stale empty entries are invalidated. Co-authored-by: Junho Yeo <i@junho.io>
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
session_metaafter its ownturn_context.Verification
cargo test -p tokscale-core codexcargo test -p tokscale-coremodels --group-by session,model.Summary by cubic
Fix Codex fork replay parsing so user-fork sessions count the child’s own turn after a parent replay, even when the child re-emits
session_meta. Bumps the source message cache schema to invalidate stale empty Codex entries.Bug Fixes
session_metaafter the childturn_contextso replay state isn’t reset.Migration
tokscale-core; older Codex cache entries will reparse automatically.Written for commit 5d170a8. Summary will update on new commits.