Repository navigation
feat(proxy): repair account-bound egress routing - #875
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 072e29cb78
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b69f018134
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
6e9db95 to
8725120
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 872512008f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cec9f6aa16
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c14eafd3cb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 215e3d5872
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
a0c6bb6 to
fbfcd0e
Compare
fbfcd0e to
52c97a4
Compare
|
@codex review |
Normalize the Codex-session compact JSON response so Desktop sees the single compaction output item it requires while leaving non-Codex compact responses unchanged. Constraint: Codex Desktop remote compaction v2 requires exactly one compaction output item. Rejected: Forwarding upstream compact output verbatim | Desktop counts legacy compaction_summary output as zero compaction items. Confidence: high Scope-risk: narrow Directive: Keep compact response normalization scoped to Codex session affinity unless another client contract is verified. Tested: python -m pytest tests/integration/test_proxy_compact.py tests/integration/test_http_responses_bridge.py -q (93 passed); python -m ruff check app/modules/proxy/api.py tests/integration/test_proxy_compact.py. Not-tested: Full Docker Compose deployment; live upstream release compaction through GitHub issue reporter's environment. (cherry picked from commit d83e7f7)
(cherry picked from commit 2b4b264)
(cherry picked from commit 6fbb0ab)
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a7c2ea36de
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@Soju06 need your merge here |
|
This pull request has been automatically marked as stale because it has had no activity for 7 days. It will be closed in 23 more days unless there is new activity. If this is still relevant, please:
Thanks for the contribution 🙏 |
|
@codex review |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Soju06:repair/pr-869-proxy-pool-egresswithmaintainerCanModify=falsemainbranchchatgpt-account-id407 Proxy Authentication Requiredas a failed endpoint test so bad proxy credentials are not reported as connectedauth.jsonimports until an active account binding exists, then reactivates the imported account when that binding is savedproxy_unreachabledeactivated accounts when an active binding is saved, while leaving session-ended/reauth accounts deactivatedFolded PRs and Follow-ups
port/token-invalidation-routing-pr875branch andauth.jsonimport/proxy-validation caveatmaine75c168789de56a0d1010cbede977c18f9912392Deliberately Not Claimed Here
/v1/usage#832, chore(main): release 1.20.0 #806, chore(deps): bump the python-minor-patch group with 6 updates #1026, chore(deps): bump cryptography from 48.0.0 to 49.0.0 #1027, chore(deps): bump starlette from 1.0.1 to 1.3.1 #1028, and feat(frontend): restore Simplified Chinese i18n #995 remain separate.OpenSpec
openspec/changes/mitigate-account-token-invalidation/openspec/changes/retry-injected-websocket-stale-anchor/openspec/changes/harden-http-bridge-hard-affinity-1011/openspec/changes/fix-sse-crlf-line-boundaries/openspec/changes/bound-http-bridge-gate-waits/openspec/changes/finalize-unterminated-response-streams/openspec/changes/preserve-http-stream-error-shape/openspec/changes/fix-startup-probe-task-exceptions/openspec/changes/bridge-codex-compaction-trigger/Latest Local Validation
git diff --check origin/main...HEAD uv run openspec validate --specs uv run openspec validate fix-sse-crlf-line-boundaries --strict uv run openspec validate bound-http-bridge-gate-waits --strict uv run openspec validate finalize-unterminated-response-streams --strict uv run openspec validate preserve-http-stream-error-shape --strict uv run openspec validate fix-startup-probe-task-exceptions --strict uv run openspec validate bridge-codex-compaction-trigger --strict make lint uv run ruff check app/core/clients/proxy.py app/core/clients/proxy_websocket.py app/core/openai/requests.py app/modules/proxy tests/unit/test_proxy_utils.py tests/unit/test_proxy_http_bridge.py tests/unit/test_proxy_websocket_client.py tests/integration/test_proxy_websocket_responses.py tests/integration/test_proxy_compact.py tests/integration/test_proxy_warmup.py tests/integration/test_settings_api.py uv run ty check app tests make migration-check uv run pytest tests/integration/test_migrations.py tests/unit/test_db_migrate.py -q uv run pytest tests/integration/test_settings_api.py::test_account_proxy_binding_closes_existing_bridge_sessions tests/integration/test_settings_api.py::test_account_proxy_binding_disable_closes_existing_bridge_sessions tests/unit/test_proxy_http_bridge.py::test_close_http_bridge_sessions_for_account_detaches_matching_sessions -q uv run pytest tests/unit/test_sse.py tests/unit/test_proxy_utils.py -q uv run pytest tests/unit/test_proxy_utils.py tests/unit/test_proxy_http_bridge.py tests/unit/test_http_bridge_cancel_drain.py tests/unit/test_proxy_api_responses_contract.py tests/unit/test_db_session.py tests/integration/test_proxy_api_extended.py tests/integration/test_proxy_compact.py tests/integration/test_proxy_responses.py -q uv run pytest tests/integration/test_http_responses_bridge.py -q uv run pytest tests/unit/test_proxy_utils.py tests/unit/test_proxy_http_bridge.py tests/unit/test_proxy_websocket_client.py tests/unit/test_openai_requests.py tests/unit/test_accounts_service_probe.py tests/unit/test_usage_updater.py tests/integration/test_proxy_websocket_responses.py tests/integration/test_proxy_compact.py tests/integration/test_proxy_warmup.py tests/integration/test_settings_api.py tests/integration/test_accounts_api_extended.py -q bun run test -- src/features/settings/components/upstream-proxy-settings.test.tsx src/features/settings/schemas.test.ts src/test/mocks/handler-coverage.test.ts bun run lint -- src/features/settings/components/upstream-proxy-settings.tsx src/features/settings/components/upstream-proxy-settings.test.tsx src/features/settings/schemas.ts src/features/settings/api.ts src/features/settings/hooks/use-settings.ts src/test/mocks/handlers.ts src/test/mocks/handler-coverage.test.tsFocused pytest result:
1035 passed in 50.62s; SSE/proxy utility slice after folding #1011:512 passed in 18.51s; #892 bridge/proxy compact slice after folding #892:892 passed in 41.80s; HTTP bridge integration slice:77 passed in 8.62s.Migration check result:
current_revision=20260613_010000_merge_installation_id_and_dashboard_weekly_heads,migration_policy=ok,schema_drift=none; migration tests51 passed, 3 skipped.Architecture/lint result:
proxy architecture checks passed,ruff checkpassed,637 files already formatted.Focused frontend result:
3 passed (3 files), 21 passed (21 tests).