Skip to content

fix: preserve model transport when binding per-run proxy credentials - #1211

Merged
PurpleCHOIms merged 2 commits into
mainfrom
fix/proxy-key-transport-settings-20261120
Nov 19, 2026
Merged

PurpleCHOIms merged 2 commits into
mainfrom
fix/proxy-key-transport-settings-20261120

Conversation

@PurpleCHOIms

Copy link
Copy Markdown
Member

Binding an engagement's proxy key rebuilt the selected model as a plain ChatOpenAI, resetting streaming, usage, token limits and retry/timeout settings and discarding vendor protocol subclasses. Preserve the concrete model configuration and custom HTTP pools while constructing fresh OpenAI clients against the configured proxy. Update proxy authentication headers without mutating the original model or dropping provider/tracing headers.

Explicit credential-binding failures now refuse dispatch in both sync and async paths instead of using the environment credential. Requests without a per-run key remain unchanged. This intentional compatibility change prevents silent attribution to a different account; operators must correct invalid credential configuration.

Validation in an owned environment installed with uv sync --locked --dev --extra mcp:

  • 902 connected factory/model/proxy tests passed, with no skips. Real loopback HTTP/SSE checks cover fresh credentials, streaming callbacks/usage, limits, transport pools and vendor tool-bound turns.
  • All six new assertions fail against immutable original middleware from main 28b97543, with zero setup errors/skips.
  • Full repository Ruff and format pass (943 Python files); full canonical type check analyzes 893 files with 0 errors and 953 existing warnings.
  • Existing CI aggregation guards remain intact: 22 actual Bash fixtures pass and their historical regression fails as expected.
  • All seven declared local gates and both historical regressions were executed directly with exact argv. The pinned personal harness's inspect/verify stop before execution on existing benchmark submodule directories (exit 2); status has no receipt. No harness success, hosted CI success, external provider availability or production rollout is claimed.

Verification and limits · CHAGELOG.md. No version bump or public package publication.

@PurpleCHOIms
PurpleCHOIms merged commit 6b15092 into main Nov 19, 2026
25 checks passed
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