fix(wrap): route Cline custom upstreams - #3018
Open
JerrettDavis wants to merge 3 commits into
Open
Conversation
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Contributor
PR governanceThis PR follows the template and is marked ready for human review. |
JerrettDavis
marked this pull request as ready for review
August 14, 2026 05:15
JerrettDavis
requested review from
DevanshiVyas and
chopratejas
as code owners
August 14, 2026 05:15
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.
Description
Route Cline CLI requests for custom OpenAI-compatible providers back to the provider's original upstream instead of falling through to OpenAI. The wrapper now supports Cline's official CLI configuration flow as well as the VS Code extension.
Closes #1626
Type of Change
Changes Made
--openai-api-urltoheadroom wrap clineso the proxy retains the original custom-provider route.Testing
pytest)ruff check .)mypy headroom)Test Output
Real Behavior Proof
origin/mainat2d88e31a4.headroom wrap cline --openai-api-url https://api.example.com/v1with the proxy watcher captured at fallback port 9123.https://api.example.com/v1asopenai_api_url, and Cline is instructed to usehttp://127.0.0.1:9123/v1while retaining its configured key and model.Runtime Rollout Safety
--openai-api-urlis explicitly supplied; the default route is unchanged.--openai-api-urlto retain the previous default OpenAI route.Review Readiness
Checklist
CHANGELOG.md— it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this)Screenshots (if applicable)
Not applicable; this is a terminal routing change.
Additional Notes
The full no-duration local shard exposed two pre-existing dependency-gate test-order failures after 2,873 passing tests. The focused and complete CLI suites are green; this PR remains draft until its exact hosted head is entirely green.