Repository navigation
chore: remove duplicate Cloudflare wrapper test - #129530
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 25, 2026 18:31
Contributor
Author
|
Exact-head validation for
Coverage retained: the plugin registration test captures the real provider, invokes its registered |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 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 Cloudflare AI Gateway suite repeated the same Anthropic thinking-prefill success path in both a direct wrapper test and the plugin registration test. The direct case added maintenance cost without protecting an independent behavior.
Why This Change Was Made
Remove only the direct wrapper replay. The surviving registration test captures the real provider, invokes its registered
wrapStreamFn, executes the actual wrapped stream, and asserts the same assistant-prefill removal. The focused wrapper suite still covers warning details, multiple trailing prefills, disabled thinking, tool-use preservation, non-Anthropic bypass, and the missing-API default.AI-assisted test audit requested by the maintainer.
User Impact
No user-visible behavior changes. The extension suite keeps its unique behavior and wiring coverage with one fewer duplicate test.
Evidence
node scripts/run-vitest.mjs extensions/cloudflare-ai-gateway/index.test.ts extensions/cloudflare-ai-gateway/stream-wrappers.test.ts— 8/8 tests passed.node scripts/check-changed.mjs --dry-run -- extensions/cloudflare-ai-gateway/stream-wrappers.test.ts— classified the extension-test lane.node scripts/check-changed.mjs -- extensions/cloudflare-ai-gateway/stream-wrappers.test.ts— passed, including extension-test typecheck and type-aware lint.git diff --check— passed.