mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-13 18:52:18 +03:00
782 B
782 B
- fix(providers): when
OPENCODE_SYNTHESIZE_CLI_HEADERS=true, a non-CLI client User-Agent (e.g.curl/8.5.0, SDKs) on opencode-go/opencode-zen/opencode-free requests is now REPLACED with the synthesizedopencode-cli/1.0.0instead of being honored — opencode.ai's free tier (/zen/v1) returnsFreeUsageLimitError429 for generic client UAs egressing from datacenter IPs, which made the #5997 CLI-identity synthesis ineffective for non-CLI clients. Client UAs already matchingopencode-cli/…are preserved (the real CLI's versioned identity stays intact); all other client-suppliedx-opencode-*headers keep client-wins. Regression guard:tests/unit/opencode-cli-headers-synthesis-5997.test.ts(7, incl. non-CLI UA replaced + CLI UA preserved). (#5997 follow-up)