GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): relay ChatGPT/Codex App voice via POST /v1/live by Wibias · Pull Request #379 · lidge-jun/opencodex

Conversation

@Wibias

@Wibias Wibias commented Jul 24, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

  • Accept POST /v1/live before the /v1/* JSON-404 guard so ChatGPT / Codex App voice (GPT-Live) works when Design B injects ocx as base_url (Proxy the live voice endpoint #371).
  • Relay to ChatGPT forward or an OpenAI API-key provider; rewrite API multipart → backend /realtime/calls JSON when the upstream is backend-api.
  • Pass through Location + content-type; return a clear 400 when no OpenAI upstream is configured (not 404). Sideband WS for /v1/live/{callId} left as a possible follow-up.

Test plan

  • bun run typecheck
  • bun test tests/server-live.test.ts (multipart rewrite, API-key path, no-provider 400, GET still 404, pool token override)
  • Manual: ChatGPT / Codex App voice with ocx as injected base URL and ChatGPT login (or openai-apikey)

Summary by CodeRabbit

  • New Features

    • Added /v1/live and /v1/realtime/calls relaying for live requests to OpenAI and ChatGPT-compatible providers.
    • Validates credentials, applies data-plane auth, blocks cross-origin requests, and forwards selected response headers with structured JSON errors.
  • Documentation

    • Updated architecture “Request flow” endpoint list formatting for English and Chinese references.
  • Bug Fixes

    • Extended CORS allow-headers to include ChatGPT-Account-Id for voice preflight requests.
  • Tests

    • Added end-to-end coverage for multipart rewriting, provider selection, CORS preflight, unavailable upstreams, and routing behavior.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Wibias
Wibias requested review from Ingwannu and lidge-jun as code owners July 24, 2026 03:42
@github-actions github-actions Bot added the bug Something isn't working label Jul 24, 2026
@coderabbitai

This comment was marked as resolved.

Sign in to view
coderabbitai[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun

lidge-jun commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Maintainer triage review (2026-07-24). The voice relay is incomplete as-is — two functional blockers:

High — the sideband WebSocket is missing. Only the POST call-create is relayed; /v1/live/{call_id} falls into the unknown-route 404 (src/server/index.ts:502-504,531-536). Upstream Codex always opens the sideband WebSocket with that call_id after call-create (codex-rs realtime_websocket/methods.rs:729-792,948-980), so the first request would flip from 404 to 201 and the actual voice session would still fail.

High — the ChatGPT-backend call-create query contract is missing. The PR creates bare /realtime/calls (src/server/live.ts:43-46,170-173), but current upstream Codex explicitly appends intent=quicksilver&architecture=avas for the backend + Frameless Bidi path (codex-rs realtime_call.rs:213-223). The tests only assert the path, so this gap is invisible (tests/server-live.test.ts:152-160).

Medium — buffering defeats the size limit. The request body is fully buffered unbounded (live.ts:99-102) and the response is fully read via arrayBuffer() before the 16 MiB check (live.ts:210-214) — incremental limiting is needed for the cap to protect memory.

Notes: the data-plane auth + origin checks and the admission-secret upstream block are correct (server/index.ts:512-516, auth-cors.ts:154-156). Since this is an auth/credential boundary, the rebuild also needs an explicit security review and a real Codex App voice E2E. Docs: ko/ja/ru architecture pages need the same update as en/zh.

Please rebuild on current dev with the sideband WebSocket relay + query contract, then re-request review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Wibias added 2 commits July 24, 2026 06:13
@Wibias
fix(server): relay ChatGPT/Codex App voice via POST /v1/live
232b040
Avoid JSON 404 under Design B injection by forwarding call-create to ChatGPT
backend or an OpenAI API-key provider, rewriting API multipart to backend
realtime/calls JSON when needed (#371).
@Wibias
fix(server): address /v1/live review feedback for voice relay
ba62f2d
Accept /v1/realtime/calls, point API-key upstream at realtime/calls, allow
optional session and ChatGPT-Account-Id CORS, and record outcomes before
capping oversized live responses.
coderabbitai[bot]

This comment was marked as resolved.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
fix(server): complete voice relay with sideband WS and AVAS query
5e55fe5
Rebuild /v1/live for maintainer triage: append intent=quicksilver&architecture=avas
on ChatGPT/API call-create, relay Frameless/Realtime sideband WebSockets, cap
request and response bodies incrementally, and sync architecture docs across locales.
@Wibias
Wibias force-pushed the fix/proxy-v1-live branch from e932fd4 to 5e55fe5 Compare July 24, 2026 04:19
@Wibias

Wibias commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Rebuild complete (maintainer triage)

Rebased onto current dev and addressed the blockers:

  1. Sideband WebSocket — GET upgrade on /v1/live/{callId}, /v1/realtime/calls/{callId}, and /v1/realtime?call_id= now transparent-relays to the ChatGPT/OpenAI upstream (Frameless path append / Realtime query join).
  2. AVAS query contract — ChatGPT backend + keyed call-create now hit ...?intent=quicksilver&architecture=avas.
  3. Body caps — inbound request and upstream response both use incremental 16 MiB capped reads (not post-arrayBuffer checks).
  4. Docs — en + zh-cn + ko + ja + ru architecture pages updated.
  5. Security review — no medium+ findings on auth/SSRF/callId injection/credential forwarding.

Tests: bun run typecheck + bun test tests/server-live.test.ts (10 pass), including bidirectional sideband relay.

Still recommended before merge: a real Codex App / ChatGPT voice E2E on a machine with ChatGPT login (not automated here).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lidge-jun added a commit that referenced this pull request Jul 24, 2026
@lidge-jun
docs(devlog): triage final — #356/#358/#377 MERGED, #378 CLOSED, #370/#…
9dc88f2
…376/#379 DEFER
lidge-jun pushed a commit that referenced this pull request Jul 24, 2026
codex @lidge-jun
docs(devlog): 260724_gpt_live_hotfix P — #379 status + release plan
3d83dd0
@lidge-jun
lidge-jun merged commit 9f953d8 into dev Jul 24, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@str0203 str0203 mentioned this pull request Jul 25, 2026
[Feature] Add /v1/live preflight, stale-process detection, and recovery guidance #450
Closed
4 tasks done
@lidge-jun
lidge-jun deleted the fix/proxy-v1-live branch July 25, 2026 17:42
@coderabbitai coderabbitai Bot mentioned this pull request Jul 25, 2026
fix(proxy): stop empty 503 bodies becoming Codex Unknown error (#452) #463
Merged
2 of 3 tasks
This was referenced Aug 10, 2026
fix(server): bound live sideband websocket frames #1381
Closed
fix(server): bound live sideband websocket frames #1398
Merged
perf: route ChatGPT Codex upstream turns over responses_websockets #1487
Closed
fix(auth): pin forwarded Codex credentials to ChatGPT #1471
Merged
fix(server): settle upstream bodies on the failure paths too #1539
Merged
[Bug]: CORS preflight rejects all browser SDK clients — Access-Control-Allow-Headers omits X-Stainless-* #1773
Closed
fix(server): allow browser SDK request headers through CORS preflight #1778
Merged
feat(auth): admit an admission bearer and substitute the stored main credential #1853
Merged
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
docs(devlog): triage final — lidge-jun#356/lidge-jun#358/lidge-jun#377 …
e4e5fe7
…MERGED, lidge-jun#378 CLOSED, lidge-jun#370/lidge-jun#376/lidge-jun#379 DEFER
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
codex @lidge-jun
docs(devlog): 260724_gpt_live_hotfix P — lidge-jun#379 status + relea…
7490616
…se plan
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
Merge PR lidge-jun#379 (fix/proxy-v1-live) into dev: GPT-Live /v1/liv…
fb453b1
…e voice relay + sideband WebSocket

Relay ChatGPT/Codex App voice (GPT-Live / Frameless Bidi) call-create and the
Frameless/Realtime sideband WebSocket so voice works under Design B injection (lidge-jun#371).
Verified green on top of dev: typecheck + live/auth tests + contract match vs codex-cli.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Ingwannu Ingwannu Awaiting requested review from Ingwannu Ingwannu is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Wibias @lidge-jun
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.