Repository navigation
fix: prevent unsupported Codex Web source mode - #541
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthrough
ChangesProvider source-mode fallback
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The fallback selects a supported source mode when Web is unavailable, with no confirmed merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Since the 0.54 port the Codex provider only supports Auto/OAuth/CLI and rejects SourceMode::Web outright. The desktop shell's default cookie source is "manual", so pasting a chatgpt.com Cookie header for Codex mapped the provider to Web and every refresh failed with "Source mode 'Web' not supported for this provider". Add the inverse of the existing Cli remap in build_fetch_context: if the resolved mode is Web and the provider does not advertise Web in available_sources(), fall back to the configured usage source (or Auto). Co-Authored-By: Claude Fable 5.1 <[email protected]>
c5fbc3b to
cd7696f
Compare
This maintainer-owned PR preserves the source-mode fix from fork PR #512.
The original PR is from
Dreamkeeper/Win-CodexBar, so the protectedci/circleci: pr-checkstatus cannot run on its head branch. The two-file change was cherry-picked unchanged to an origin branch so the required hosted Windows gate can validate it against the current main.Validation:
git diff --checkci/circleci: pr-checkand CodeRabbit will run on this origin branchSupersedes #512.
Summary by CodeRabbit