Repository navigation
refactor(ai): remove Responses replay test seams - #123825
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 14, 2026 20:52
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 15, 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
The OpenAI Responses transport exposed two replay-preparation helpers through an internal barrel and the global transport test API even though production had no caller for the tag builder and the preparation function had only one local production caller.
Tests then depended on those production exports to manufacture replay fixtures, preserving a broader runtime/test-support surface than the behavior requires.
Why This Change Was Made
The replay preparation function is now private to its owning conversion module. The unused tag builder, its barrel exports, and both global test-API properties are deleted. Tests construct the legacy embedded-provenance fixture directly with the canonical replay metadata builder, so the real compatibility behavior remains covered without a test-only production helper.
Production: +1/-26 (net -25). Tests: +26/-28 (net -2). Total: +27/-54 (net -27).
User Impact
No intended user-visible behavior change. Route-bound encrypted reasoning replay, compaction recovery, retry behavior, and the legacy embedded-provenance compatibility fallback remain covered at their transport boundaries.
Evidence
pnpm buildpassed, including the AI package and published transport surfaces.node scripts/check-changed.mjs -- <six changed files>passed the core/coreTests gates locally, including production/test typecheck, lint, dead-export scans, formatting, import cycles, environment budget, max-lines ratchet, and architecture guards.git diff --checkpassed.db86c68b6f0f7f7946943ca803aeb0d600d95d00: https://github.com/openclaw/openclaw/actions/runs/31839942825