Repository navigation
fix(openai): route GPT-Live through supported auth endpoints - #119209
vincentkoc wants to merge 25 commits into
Conversation
932995f to
a7b7f0e
Compare
|
Codex review: blocked before merge. Reviewed October 2, 2026, 7:27 PM ET / 23:27 UTC (Revision 25). ClawSweeper reviewWhat this changesThe branch changes OpenAI voice credential selection and model admission, disables GPT-Live subscription calls, and adds shared OAuth refresh handling and Plugin SDK helpers. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 8 items remain Current main does not cover the complete explicit-selection repair, so useful work remains. This maintainer-owned PR needs revision before it becomes a viable landing candidate. Priority: P1 Review scores
Verification
How this fits togetherOpenAI Talk turns configured models and agent-scoped credentials into browser or Gateway voice sessions. The OpenAI plugin selects the transport and authentication route before creating the remote call. flowchart TD
A[Talk settings] --> C[OpenAI voice provider]
B[Agent credential profiles] --> D[Auth selection owner]
D --> C
C --> E[Model and credential admission]
E --> F[Browser or Gateway call]
E --> G[Visible setup error]
Decision needed
Why: The new public Plugin SDK surface establishes a lasting third-party contract, and the supplied discussion does not show acceptance of these exact exports and semantics. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +241, Tests +1304, Docs -19, Generated +2, Other +3. Total +1531 across 79 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Carry typed selection into the current provider/auth owners, preserve shipped model and subscription routes and refresh fences, and remove the unused OAuth-access export. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the introduced failures: gpt-live-1-codex is removed from admission, and GPT-Live OAuth call creation throws unconditionally. No runtime reproduction or tests were executed in this read-only review. Is this the best way to solve the issue? No. Typed selection belongs at the auth-order owner, but the repair should retain the separate supported WebRTC and WebSocket contracts and use current main's refresh ownership. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 73fe145a1e6e. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (24 earlier review cycles; latest 8 shown)
|
a7b7f0e to
0e7c96e
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
0e7c96e to
ce786b8
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Punchcard-Session: golden-meadow-cedar-dv
Punchcard-Session: golden-meadow-cedar-dv
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
108842c to
1b8eb8c
Compare
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This draft has been conflicting and waiting on author with no commits since August. Please reopen or open a fresh PR against current main if this routing work is resumed. |
Depends on: #121764
Related: #115021
Summary
auth.orderentries withoutauth.profilesmetadataRoot Cause
The OpenAI realtime provider combined model support, endpoint selection, and credential precedence too late. The shared SDK then tried to reconstruct auth-order intent from stored credential metadata, but bare ordered profile ids have no type metadata. That made an explicit missing Platform selection look unselected and allowed an ambient
OPENAI_API_KEYfallback.Architectural Owner
The auth-order resolver owns explicit selection intent, including missing and unresolved ordered ids. The OpenAI provider owns model support and endpoint/auth routing. The SDK consumes the prepared typed state instead of duplicating order policy.
Best Fix
Carry typed explicit-selection metadata from the canonical auth-order owner. Fail closed for selected missing or unresolved Platform credentials before any realtime side effect, while preserving explicit subscription OAuth for GA browser Talk. Keep direct GPT-Live WebSocket, Gateway relay, Voice Call, and Discord realtime Platform-key-only.
Codex Contract
Verified against OpenAI Codex
f8821d85eb68678b9287f901c224e6aa71a827e3:codex-rs/app-server/src/request_processors/turn_processor.rs:1050prepares and starts the thread realtime conversation.codex-rs/core/src/realtime_conversation.rs:1141prepares the direct realtime session and forces its provider to API-key auth.codex-rs/core/src/realtime_conversation.rs:1621resolves realtime API-key material and fails when none is available.codex-rs/codex-api/src/endpoint/realtime_call.rs:129owns realtime call creation with the prepared session and headers.This PR does not claim native GPT-Live OAuth support. It also does not resolve #95289 or #114510; entitlement and native relay work remain separate.
User Impact
Supported GA browser Talk keeps its existing OAuth fallback, including explicit ChatGPT OAuth selection with an ambient Platform key. GPT-Live operators get deterministic Platform-key routing. Missing bare ordered profiles, unresolved secret references, and retired model ids now produce visible failures before broker, bridge, fetch, socket, or session side effects.
Evidence
422b780c9a74bf52b75bcc4378a820023426a410bb961f41c3bf95c9d318851f86e3fb61717004c9git diff --check, commit signature, and private-data scan: cleanpackages/terminal-core/src/ansi.ts:194declaration error; the changed-file Oxc lane passed with boundary preparation skippedtbx_01kzqdm35sqjk1v22nyydx3a83: exact-head 96-test owner/SDK/OpenAI matrix passed, wrapper exit 0; https://github.com/openclaw/openclaw/actions/runs/31455317873/v1/modelsreturned 200 and listedgpt-live-1-boulder-alpha/v1/liveWebSocket smoke: 1 passed; this repair changes explicit profile classification, not the live model or transport route, and makes no OAuth live claimLOC
The positive production delta is the provider-owned early validation, realtime endpoint routing, and canonical typed auth-order state required to distinguish selected, missing, unresolved, and unselected credential sources. This follow-up removes the duplicate SDK order reconstruction and reduces the L3 production net from +106 to +104.
Checklist
Punchcard-Session: golden-meadow-cedar-dv