Skip to content

fix: allow backend Codex HTTP fallback with session headers#6

Merged
kgskr merged 1 commit intomainfrom
codex/backend-codex-fallback-1-12-5
Apr 10, 2026
Merged

fix: allow backend Codex HTTP fallback with session headers#6
kgskr merged 1 commit intomainfrom
codex/backend-codex-fallback-1-12-5

Conversation

@kgskr
Copy link
Copy Markdown
Collaborator

@kgskr kgskr commented Apr 10, 2026

Summary

  • allow stateless backend Codex HTTP fallback even when downstream session_id / x-codex-* headers are present
  • keep payload-level continuity (conversation, previous_response_id) fail-closed for Platform fallback
  • document the backend Codex HTTP fallback scope and bump the release version to 1.12.5

Details

  • update backend Codex continuity detection so transport/session headers do not suppress eligible Platform fallback
  • add unit and integration coverage for backend Codex HTTP fallback with session headers
  • update OpenSpec and README to match the implemented routing and fallback policy
  • bump package version metadata in pyproject.toml, app/__init__.py, and release manifest

Validation

  • ruff check app/modules/proxy/api.py tests/unit/test_public_route_selection.py tests/integration/test_openai_platform_proxy.py
  • pytest tests/unit/test_public_route_selection.py -q
  • pytest tests/integration/test_openai_platform_proxy.py -k 'turn_state_header_uses_platform_fallback or responses_uses_platform_when_force_fallback_is_enabled or responses_rejects_continuity_when_only_platform or responses_uses_platform_when_backend_http_usage_is_drained' -q
  • openspec validate --specs

@kgskr
Copy link
Copy Markdown
Collaborator Author

kgskr commented Apr 10, 2026

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ 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".

@kgskr kgskr merged commit c3370c1 into main Apr 10, 2026
10 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