Skip to content

feat(gateway): pre-save proxy override on refresh-now / OAuth import / copilot poll#63

Merged
Menci merged 1 commit into
mainfrom
precursor-control-plane-endpoints
Jun 19, 2026
Merged

feat(gateway): pre-save proxy override on refresh-now / OAuth import / copilot poll#63
Menci merged 1 commit into
mainfrom
precursor-control-plane-endpoints

Conversation

@Menci

@Menci Menci commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

Split out of #60 (claude-code subscription provider).

  • Pre-save proxy_fallback_list overrideresolveControlPlaneFetcher({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

  • typecheck + test + lint clean

… 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.
@Menci Menci changed the title Control-plane: pre-save proxy override + per-upstream usage rollup + credential-health probe feat(gateway): pre-save proxy override + per-upstream admin endpoints Jun 19, 2026
@Menci Menci force-pushed the precursor-control-plane-endpoints branch from c6ab266 to c35af0d Compare June 19, 2026 17:59
@Menci Menci changed the title feat(gateway): pre-save proxy override + per-upstream admin endpoints feat(gateway): pre-save proxy override + credential-health probe endpoint Jun 19, 2026
@Menci Menci force-pushed the precursor-control-plane-endpoints branch from c35af0d to fd3d475 Compare June 19, 2026 18:15
@Menci Menci changed the title feat(gateway): pre-save proxy override + credential-health probe endpoint feat(gateway): pre-save proxy override on refresh-now / OAuth import / copilot poll Jun 19, 2026
@Menci Menci force-pushed the precursor-control-plane-endpoints branch from fd3d475 to aa24469 Compare June 19, 2026 19:06
@Menci Menci merged commit b86daa4 into main Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant