Skip to content

fix(codexapp): capture standard Responses API paths - #422

Open
liaohch3 wants to merge 1 commit into
mainfrom
fix/codexapp-standard-responses-capture
Open

fix(codexapp): capture standard Responses API paths#422
liaohch3 wants to merge 1 commit into
mainfrom
fix/codexapp-standard-responses-capture

Conversation

@liaohch3

Copy link
Copy Markdown
Owner

Summary

  • Capture Codex App POST and WebSocket traffic on the standard /v1/responses endpoint used by custom API providers.
  • Preserve the existing /backend-api/codex/responses capture path and method restrictions.
  • Add filter boundary and SQLite persistence regression tests.

Problem

Codex App requests to providers such as MiniMax are relayed through the forward proxy at /v1/responses, but the client-specific trace allowlist only included the ChatGPT backend path. These successful requests were therefore omitted from trace storage and the dashboard.

Validation

  • uv run ruff check .
  • uv run ruff format --check .
  • uv run pytest tests/ -x --timeout=60 (1073 passed, 26 skipped)
  • uv run pytest tests/test_e2e.py::test_codex_upstream_url_construction -q --timeout=60
  • Real localhost E2E: ran uv run claude-tap --tap-client codexapp --tap-no-launch against a local upstream, sent a MiniMax-shaped POST /v1/responses through the forward proxy, and confirmed one SQLite trace record with HTTP 200.
  • scripts/check_screenshots.sh

Evidence

The dashboard screenshot below comes from the real localhost claude-tap --tap-client codexapp proxy session backed by the captured SQLite trace.

Codex App standard Responses API capture

Fixes #415

Allow Codex App forward-proxy sessions to persist standard /v1/responses traffic used by custom API providers while retaining the existing method and path filters.

Co-authored-by: Talon <talon@users.noreply.github.com>
@liaohch3
liaohch3 requested a review from YoungCan-Wang August 14, 2026 04:25
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.

bug: codex app 升级登录后无法获取内容

1 participant