Repository navigation
fix(ci): align transcript reuse accounting expectations - #203091
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
marked this pull request as ready for review
November 21, 2026 13:13
vincentkoc
enabled auto-merge (squash)
November 21, 2026 13:13
Member
Author
|
Merged via squash auto-merge.
|
This was referenced Nov 21, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 22, 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.
What Problem This Solves
Main CI's transcript reuse test still counts saved model-state entries after #203008 deliberately excluded them from model-context accounting. The cold read returns 504 bytes and 3 events, while the stale fixture expects 681 bytes and 4.
User Impact
No runtime behavior changes. This restores the existing CI check for durable and resident transcript accounting, writes, and resets.
Why This Change Was Made
Count only the fixture's messages and custom messages in its expected byte size, and exclude both model snapshots from the initial and post-append event counts. Hydration assertions still require the full transcript, including the saved model state. The change is three added and three removed test lines; production code is unchanged.
Evidence
c949daa031c6ea961c4cf39bae8ba3df50a0e73e: the reuse test failed with the exact 504/3 versus 681/4 mismatch; the other two tests passed.a91a086c911414891924cae40003e1172f369dca: all 3 tests passed on Linux, Node 24.22.1, viapnpm test src/config/sessions/session-actor-transcript-reuse.test.ts --maxWorkers=1. Test-file duration: 11.12 s; full test command including worker preparation: 57.95 s. Exact-head PR CI on Bun also passed all 3 tests: file 17.13 s, shard 19.31 s (job).agents-sessionsTypeScript graph passed in 19.3 s; changed-file lint, formatting, andgit diff --checkpassed.c949daa031c6ea961c4cf39bae8ba3df50a0e73e..f57f4fed9957d09346f98ac717dbc4232571a364completed with no correctness or security findings.