Skip to content

fix(ai): preserve disabled proxy behavior and Windows bypass rules - #3795

Merged
kev1n77 merged 1 commit into
openBitFun:mainfrom
kev1n77:codex/fix-proxy-policy
Nov 7, 2026
Merged

kev1n77 merged 1 commit into
openBitFun:mainfrom
kev1n77:codex/fix-proxy-policy

Conversation

@kev1n77

@kev1n77 kev1n77 commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Restore direct AI connections when app proxy settings are missing or disabled, and preserve Windows system proxy bypass semantics. An enabled proxy with an empty address still inherits OS/environment settings; an explicit address still selects the configured proxy.

Type and Areas

Type: regression fix

Areas: AI adapters, services-core system proxy, focused test guidance

Motivation / Impact

Disabled or legacy proxy settings could unexpectedly send intranet model requests through the OS/environment proxy. Windows ProxyOverride rules also lost their meaning: <local> became a global bypass and wildcard entries were passed to a matcher with different semantics.

Keep missing/disabled settings direct, match Windows wildcard and <local> rules explicitly, always bypass loopback for system proxies, and retain the selected proxy policy when rebuilding a client with default transport options. Add legacy payload round-trip and routing regression coverage.

Verification

  • git diff --check upstream/main...HEAD passed.
  • cargo test --locked -p openbitfun-services-core --no-default-features --features system-proxy --lib system_proxy::tests passed (10 tests).
  • cargo test --locked -p openbitfun-ai-adapters --lib client::http::tests passed (8 tests).
  • cargo test --locked -p openbitfun-ai-adapters --features subscription-auth --lib client::http::tests::router_proxy_policy_preserves_environment_explicit_and_disabled_routes passed (1 test).
  • All tests above ran locally on Windows.
  • Remote workspace, remote control, Peer Device Mode, and Detached Dispatch were not exercised. Local fixtures do not establish remote behavior.

Reviewer Notes

No persisted configuration shape changes or manual migration. Tests cover legacy disabled payloads and preserve existing field values through a round trip. Network fixtures use local HTTP servers without changing OS proxy settings or accessing provider accounts.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

@kev1n77
kev1n77 merged commit a139ce5 into openBitFun:main Nov 7, 2026
13 checks passed
@kev1n77
kev1n77 deleted the codex/fix-proxy-policy branch November 9, 2026 08:14
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