feat(gateway): pre-save proxy override on refresh-now / OAuth import / copilot poll#63
Merged
Merged
Conversation
… OAuth import / copilot poll Previously, a dashboard refresh-now click or a copilot device-flow poll fired from the edit form used either directFetcher (pre-save) or the persisted proxy chain — never the chain the operator was currently editing. The result was a confusing UX: edit the proxy, hit Refresh, watch the call go through the OLD proxy. Adds a layered resolveControlPlaneFetcher helper that prefers an explicit override list, falls back to the persisted upstream's chain by id, and finally to direct egress. Threaded into: - codex-refresh-now - copilot device-flow poll (also refactored github-device-flow.ts to accept a Fetcher so all GitHub-side calls — poll, user lookup, account-type detection — share the override) The copilot poll additionally persists the override onto the freshly- created row so the next data-plane call honors the same chain. Web side: CodexConfigPanel, CopilotConfigPanel, CopilotDeviceFlow, and UpstreamConfigPanel thread the form's current proxyFallbackList into the matching control-plane request bodies.
c6ab266 to
c35af0d
Compare
c35af0d to
fd3d475
Compare
fd3d475 to
aa24469
Compare
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.
Summary
Split out of #60 (claude-code subscription provider).
proxy_fallback_listoverride —resolveControlPlaneFetcher({override?, upstreamId?})helper layered into refresh-now / OAuth import / Copilot device-flow poll. Operator's in-flight form proxy edits reach the upstream before the row is saved. Three-layer policy (override / persisted / direct).Test plan