Skip to content

fix: restore GPT-Live subscription calls and model-specific voices - #133079

Merged
steipete merged 4 commits into
mainfrom
codex/gpt-live-oauth-call-routing
Aug 30, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/gpt-live-oauth-call-routing

Conversation

@steipete

@steipete steipete commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Related: #115021, #119209, #119210

What Problem This Solves

Fixes an issue where users starting GPT-Live Talk with an OpenAI subscription login received a 403 even though the same account worked in Codex. The web voice picker also offered GA Realtime voices that Codex's GPT-Live V3 contract rejects.

Why This Change Was Made

The OpenAI plugin now creates OAuth GPT-Live calls using Codex's ChatGPT backend JSON contract, while keeping Platform call creation multipart and both authenticated sidebands on the public live endpoint. GPT-Live owns its nine voices and cove default; GA Realtime keeps its ten voices. The provider publishes model-specific choices through an optional catalog field, and the UI selects them from the current draft model without a save or another request.

This repairs the provider and catalog owners without a route fallback, another voice engine, new configuration, database changes, or protocol-version changes. Existing custom voice settings remain visible. Unsupported GPT-Live voice values normalize to its documented default. The earlier blanket diagnosis of HTTP 403 is removed because the status alone cannot identify the denied input.

The older Vincent-owned #119209/#119210 stack addresses broader auth-order and catalog policy and explicitly disables GPT-Live OAuth pending proof. It is not equivalent to this live-proven repair and is left intact for its owner.

User Impact

After OpenAI sign-in in OpenClaw, configured browser and Gateway-relay GPT-Live sessions use the working subscription route and matching voice choices. Codex CLI sign-in remains separate; this adds no credential import or runtime fallback to Codex's credential store. Platform access is still required for Platform-only consumers.

Release-note context: OpenAI Talk: repair GPT-Live subscription call setup and show model-specific voice choices in the web settings picker.

Evidence

  • Compared OSS Codex 63d213884daea50e4f74efc192cdc44f549b67d5 (refreshed latest main to dde85b435b16994f956bce08e5fb796ed94c27fd; all cited realtime contract files are unchanged): codex-rs/codex-api/src/endpoint/realtime_call.rs (backend JSON versus Platform multipart), codex-rs/core/src/realtime_conversation.rs (V3 voice family and transport/auth preparation), and codex-rs/protocol/src/protocol.rs (nine voices, default cove). The acting maintainer inspected these files directly.
  • Before the fix, the same valid OAuth account received 403 on our public multipart route with both an old GA voice and a valid GPT-Live voice. Native Codex rejected the GA voice, then connected and received audio with spruce.
  • Live unmodified repaired source: connected with spruce, transcribed “Please reply with the single word glacier.”, answered “glacier”, received 231,346 PCM bytes, and emitted zero audio after close. Authentication stayed in memory through the canonical credential reader; no credential values or files are included. This proves provider audio and transcripts, not an agent delegation (none occurred).
  • A second live run with no voice override exercised the canonical cove default: exact input transcript, “Glacier.” reply, 244,786 PCM bytes, and zero audio after close.
  • Post-merge deployment proof at cfddfc2f700ea456c66b887d70716b83d3ac0ea2: the immutable installed release passed the default-voice speech round trip again (exact input transcript, “glacier” reply, 226,546 PCM bytes, zero audio after close). Managed Gateway deep health and web endpoints passed. This still uses test-only in-memory OAuth and is not a claim that the operator completed OpenClaw sign-in or browser microphone proof.
  • GA OAuth sibling live call creation also returned HTTP 201 on its unchanged public route, with the SDP answer accepted by the media peer. This is connection proof only, not a GA OAuth speech round trip.
  • GA Realtime with a real Platform key also completed the speech round trip. The tested Platform account lacks GPT-Live access (HTTP 400), so no Platform GPT-Live success is claimed; its wire/auth sibling is covered deterministically.
  • Regression-first proof: 23 OpenAI failures, one missing Gateway catalog field, and three incorrect rendered voice-choice cases before repair. The GA UI sibling passed before repair. After repair: 184 OpenAI, 79 Gateway, and 40 rendered UI tests pass. Protocol generation completes without native generated changes.
  • Final review caught early voice normalization losing a valid configured voice when the session overrides its model. Two additional resolve-config-to-session regressions failed first; after moving validation to the session owner, 109 affected tests and type-aware lint pass. Final independent Codex autoreview is clean through P2 on the repaired patch.
  • Build: isolated native PR checkout, frozen dependencies, full build passed in 4m14s at 0ad6527c8e3. Subsequent CI-only follow-through removes voice casts and completes the catalog test fixture; the exact failing core test-type stripe and assertion ratchet pass locally, along with 17 wire and 40 UI tests. Independent follow-through review is clean. Also fixed the independently reproduced quota-ownership E2E fixture exposed by fix(ui): show plan usage only for the session provider #132972: supply the selected provider through realistic assistant history while preserving all delayed-auth assertions. Before: 4 pass/1 fail; after: all 5 pass. Final-head CI run 33293925063 and required openclaw/ci-gate are green at 76378ddb777eacbe2c7f65c4247692b2f5830e97.
  • Browser limitation: the authenticated extension relay exposed no eligible tabs, so actual browser microphone permissions and the signed-in web flow could not be exercised. The development screenshots below and rendered DOM tests support the picker behavior; they are not presented as signed-in live voice proof.

Provenance: the incorrect public OAuth route/voice assumption is present in current main and its prior GPT-Live implementation. Exact upstream behavior-change timing is unknown; the same-account live differential is the repair evidence.

LOC: docs +54/-47 (net +7), tests +145/-44 (net +101), production +110/-86 (net +24). Production growth is limited to the separate upstream voice contract and generic model-to-voice catalog metadata; the call-request owner itself shrinks. There are no new config keys or persisted stores.

Follow-up discovered during live setup: immutable local Gateway deployment can leave the Chrome native-host launcher pinned to an older release. Reinstalling through the canonical extension installer repairs the current registration; the managed deploy owner should refresh an already-owned registration before pruning old releases. This is separate from the voice call failure.

Development UI evidence

Actual running Control UI with sanitized prior/current synthetic catalog fixtures on the final renderer. The prior catalog offers GA voices for GPT-Live; the current catalog offers GPT-Live voices. This is not an old binary or an authenticated voice session. Browser assertions verify all ten GA versus all nine GPT-Live choices, focus refresh, and an unsaved GA-to-GPT-Live model switch; zero page errors. Native select popups are not included in Chromium screenshots, so these images show selected values.

Prior catalog: GPT-Live with alloy Current catalog: GPT-Live with cove
Prior catalog voice selection Current model-specific voice selection

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime extensions: openai size: M maintainer Maintainer-authored PR labels Aug 30, 2026
@steipete steipete self-assigned this Aug 30, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 30, 2026, 1:14 AM ET / 05:14 UTC.

ClawSweeper review

What this changes

The PR routes subscription-authenticated GPT-Live WebRTC calls through the ChatGPT backend, separates GPT-Live voices from GA voices, and exposes model-specific voice options in Talk settings.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this PR open: the new picker still falls back to GA voices for a supported mixed-case GPT-Live model, so a selected voice is silently replaced with cove at session creation. The subscription call-route contract could not be independently re-read because the required sibling Codex checkout and network access were unavailable.

Priority: P1
Reviewed head: 76378ddb777eacbe2c7f65c4247692b2f5830e97

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The PR has strong stated validation but retains a concrete model-to-voice picker regression.
Proof confidence 🌊 off-meta tidepool Not applicable: This repository-member PR is exempt from the external-contributor proof gate; its body nevertheless records after-fix subscription speech round trips and rendered Control UI evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This repository-member PR is exempt from the external-contributor proof gate; its body nevertheless records after-fix subscription speech round trips and rendered Control UI evidence.
Evidence reviewed 6 items Introduced UI trigger: The introduced raw-key lookup selects voicesByModel only for an exact configured model string, otherwise falling back to GA voices.
Case-insensitive provider contract: The OpenAI provider recognizes GPT-Live models case-insensitively, and its supported-model check also normalizes case; model-specific capability keys are lower-case literals.
Silent replacement path: A configured unsupported GPT-Live voice is normalized to cove when the broker builds the actual session, so choosing a GA voice from the fallback picker does not preserve the operator’s selection.
Findings 1 actionable finding [P2] Normalize the model key before selecting its voice family
Security None None.

How this fits together

The OpenAI plugin creates Talk sessions and validates their voice choice; the Gateway publishes provider capabilities and the Control UI renders those choices. Together they control what an operator can select before a realtime call is created.

flowchart LR
A[Talk settings] --> B[Gateway capability catalog]
B --> C[OpenAI realtime provider]
C --> D[Model and voice validation]
D --> E[Subscription call request]
E --> F[OpenAI realtime service]
Loading

Before merge

  • Normalize the model key before selecting its voice family (P2) - This lookup is exact, but the OpenAI provider accepts supported GPT-Live model identifiers case-insensitively. A stored GPT-LIVE-1-CODEX therefore misses the lower-case catalog entry, renders GA voices such as marin, and then silently sends cove when session shaping rejects that GA voice. Add a case-insensitive supported-model regression; this concern was visible on the earlier reviewed head.
  • Resolve merge risk (P1) - The PR sends subscription OAuth request material to a different OpenAI endpoint; the required direct Codex source check could not be completed in this environment, so exact endpoint/header compatibility remains a maintainer-visible auth-provider risk.
  • Resolve merge risk (P1) - Production code is net +24 lines for a bug fix; the remaining picker defect should be absorbed into the existing model-to-voice resolution rather than adding another compatibility path.
  • Complete next step (P2) - A narrow P2 repair is clear, but this maintainer-authored, protected-label PR also needs direct verification of the external Codex call contract before merge.

Findings

  • [P2] Normalize the model key before selecting its voice family — ui/src/pages/config/talk.ts:261
Agent review details

Security

None.

PR surface

Source +24, Tests +101, Docs +7, Other 0. Total +132 across 24 files.

View PR surface stats
Area Files Added Removed Net
Source 11 110 86 +24
Tests 9 145 44 +101
Docs 3 54 47 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 24 310 178 +132

Review metrics

Metric Value Why it matters
Production versus test delta production +110/-86 (net +24); tests +145/-44 (net +101); docs +54/-47 (net +7) The production growth establishes an external voice contract and catalog metadata, so the remaining lookup should stay within the existing picker path.

Merge-risk options

Maintainer options:

  1. Normalize the picker model lookup (recommended)
    Match supported GPT-Live model identifiers case-insensitively before selecting its voice family and add a focused rendered-picker regression.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Normalize the OpenAI model-to-voice lookup for a supported mixed-case GPT-Live model and add focused Talk picker coverage.

Technical review

Best possible solution:

Preserve the separate GA and GPT-Live voice families, but resolve the provider-published voice map with the same canonical GPT-Live model identity accepted by the OpenAI provider, then cover a mixed-case stored model setting.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: set a stored OpenAI model to GPT-LIVE-1-CODEX; the provider accepts it as GPT-Live, while the raw UI lookup misses the lower-case catalog key and offers GA voices.

Is this the best way to solve the issue?

No: the provider and UI use different model-key normalization rules, so the model-specific picker repair is incomplete until its lookup shares the accepted GPT-Live identity.

Full review comments:

  • [P2] Normalize the model key before selecting its voice family — ui/src/pages/config/talk.ts:261
    This lookup is exact, but the OpenAI provider accepts supported GPT-Live model identifiers case-insensitively. A stored GPT-LIVE-1-CODEX therefore misses the lower-case catalog entry, renders GA voices such as marin, and then silently sends cove when session shaping rejects that GA voice. Add a case-insensitive supported-model regression; this concern was visible on the earlier reviewed head.
    Confidence: 0.97
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1ab7b7533318.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This repository-member PR is exempt from the external-contributor proof gate; its body nevertheless records after-fix subscription speech round trips and rendered Control UI evidence.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: The PR targets a broken subscription-authenticated realtime Talk workflow.
  • merge-risk: 🚨 compatibility: Existing stored GPT-Live model and voice settings can still yield a misleading GA voice choice.
  • merge-risk: 🚨 auth-provider: The subscription path changes its call-creation endpoint and request encoding.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This repository-member PR is exempt from the external-contributor proof gate; its body nevertheless records after-fix subscription speech round trips and rendered Control UI evidence.

Evidence

What I checked:

  • Introduced UI trigger: The introduced raw-key lookup selects voicesByModel only for an exact configured model string, otherwise falling back to GA voices. (ui/src/pages/config/talk.ts:261, 96548bb37ca5)
  • Case-insensitive provider contract: The OpenAI provider recognizes GPT-Live models case-insensitively, and its supported-model check also normalizes case; model-specific capability keys are lower-case literals. (extensions/openai/realtime-quicksilver.ts:36, 76378ddb777e)
  • Silent replacement path: A configured unsupported GPT-Live voice is normalized to cove when the broker builds the actual session, so choosing a GA voice from the fallback picker does not preserve the operator’s selection. (extensions/openai/realtime-quicksilver.ts:22, 76378ddb777e)
  • Missing regression coverage: The new UI cases cover lower-case GPT-Live identifiers and no model-key case variation. (ui/src/pages/config/talk.test.ts:331, 76378ddb777e)
  • Current-main check: Current main still has the prior single voice-list picker, so it does not already contain this PR’s model-specific-picker repair. (ui/src/pages/config/talk.ts:256, 1ab7b7533318)
  • Codex contract inspection limitation: The required sibling ../codex checkout is absent, and a direct read of the cited upstream files failed because api.github.com could not be resolved; the backend endpoint and header contract therefore remains independently unverified in this review.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Gazali: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Normalize the supported GPT-Live model key before voice-map lookup and add a mixed-case stored-setting regression.
  • Have a maintainer complete the required direct Codex source-contract check before relying on the new OAuth route.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-30T04:57:28.146Z sha 0ad6527 :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Confirmed the ClawSweeper source-contract and rank-up item by directly reading the required sibling Codex checkout at 63d213884daea50e4f74efc192cdc44f549b67d5, not from the PR description or another review:

The saved-voice impact is intentional and documented: GA-only values cannot select a GPT-Live V3 voice, so the existing normalization contract now uses the correct default. The UI preserves the saved value, and configured voices are retained until the effective session model is known, so opposite-family request overrides do not lose a valid setting. No config rewrite or migration is added.

The +24 production lines implement the distinct voice contract and generic model-specific catalog projection; the request owner shrinks. No route fallback, new engine, config setting, schema change, or protocol bump is introduced. The reviewer environment's missing checkout is not a remaining source-proof gap for this maintainer review.

CI follow-through removes the moved validator's casts, reduces its old assertion baseline, and replaces a partial catalog test cast with a fully typed fixture. It also repairs the independently reproduced quota ownership E2E fixture exposed by #132972: supply a realistic assistant provider when switched-session metrics are absent, while preserving every delayed-auth assertion. Before: 4 pass/1 fail; after: all 5 pass. Final focused reviews are clean; landing still requires final-head CI.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 30, 2026
@steipete
steipete merged commit cfddfc2 into main Aug 30, 2026
266 checks passed
@steipete
steipete deleted the codex/gpt-live-oauth-call-routing branch August 30, 2026 05:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
…penclaw#133079)

* fix: restore GPT-Live subscription calls and model-specific voices

* fix: describe GPT-Live Gateway relay in Talk setup

* fix: type Talk catalog fixtures and simplify voice validation

* test: identify the provider in the quota ownership fixture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation extensions: openai gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant