Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. from source inspection: current main's browser realtime and realtime transcription paths require direct OpenAI API key configuration, and the Talk protocol/UI lack the new launch option fields. I did not run a live current-main OAuth-only failure path. Real behavior proof Next step before merge Security Review detailsBest possible solution: Land or request changes on a maintainer-reviewed version that keeps OAuth limited to native OpenAI realtime endpoints, preserves direct-key behavior for Azure/custom endpoints, and carries typed launch context through the existing provider seams with regression coverage. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main's browser realtime and realtime transcription paths require direct OpenAI API key configuration, and the Talk protocol/UI lack the new launch option fields. I did not run a live current-main OAuth-only failure path. Is this the best way to solve the issue? Yes, subject to maintainer product acceptance. The latest PR direction uses existing auth/profile and provider seams, appears to address the earlier review blockers, and includes tests plus after-fix runtime proof, but its cross-surface scope still needs owner review. Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 76b64d76b5dc. Re-review progress:
|
b8fb055 to
f7a844f
Compare
There was a problem hiding this comment.
Pull request overview
This PR extends OpenClaw’s realtime voice stack to support OAuth-only OpenAI/Codex setups (no direct API key), modernizes OpenAI Realtime session payloads (while keeping Azure deployment compatibility), and adds Control UI “Talk options” to select provider/transport/model/voice/VAD/reasoning at launch.
Changes:
- Add OAuth-backed auth fallback for OpenAI realtime voice bridges and realtime transcription when no direct API key is configured.
- Add Control UI Talk launch options and propagate those options through browser/WebRTC, gateway relay, voice-call, and Meet bidi/test-speech surfaces.
- Update OpenAI Realtime session payload shape/defaults (default model
gpt-realtime-2, remove native temperature, add reasoning/VAD fields, preserve Azure deployment payload shape).
Reviewed changes
Copilot reviewed 42 out of 42 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ui/src/ui/views/chat.ts | Add Talk options UI panel and toggle button. |
| ui/src/ui/views/chat.test.ts | Add coverage for Talk options presence and editing. |
| ui/src/ui/realtime-talk.test.ts | Assert launch options are forwarded to session creation RPC. |
| ui/src/ui/realtime-talk-gateway-relay.test.ts | Add relay shutdown/error propagation regression tests. |
| ui/src/ui/chat/realtime-talk.ts | Add typed launch options and pass through RPC payloads. |
| ui/src/ui/chat/realtime-talk-gateway-relay.ts | Harden relay stop/error handling and preserve error details. |
| ui/src/ui/app.ts | Maintain Talk option state and build typed launch options for sessions. |
| ui/src/ui/app-view-state.ts | Add Talk options state/update method to view state contract. |
| ui/src/ui/app-render.ts | Wire Talk options props and handlers into Chat render. |
| ui/src/styles/chat/layout.css | Add layout/styling for Talk options panel. |
| src/talk/session-runtime.ts | Thread full runtime config into realtime voice bridge creation. |
| src/talk/session-runtime.test.ts | Verify cfg is passed through to provider bridge callbacks. |
| src/talk/provider-types.ts | Extend provider request types with cfg + additional launch fields. |
| src/realtime-transcription/websocket-session.ts | Allow async URL/header resolution before opening WebSocket. |
| src/realtime-transcription/websocket-session.test.ts | Add tests for async URL/headers and close/timeout races. |
| src/realtime-transcription/provider-types.ts | Add cfg to transcription session creation request. |
| src/gateway/talk-transcription-relay.ts | Pass runtime config into transcription provider session creation. |
| src/gateway/talk-transcription-relay.test.ts | Update relay tests for new context.getRuntimeConfig usage. |
| src/gateway/talk-realtime-relay.ts | Ensure unified talk sessions are forgotten on relay close/cleanup; pass cfg into bridge creation. |
| src/gateway/server-methods/talk.test.ts | Extend handler tests to include VAD/prefix/reasoning inputs. |
| src/gateway/server-methods/talk-shared.ts | Add helper to compute realtime voice launch option overrides. |
| src/gateway/server-methods/talk-session.ts | Apply launch options to gateway-relay realtime session creation. |
| src/gateway/server-methods/talk-client.ts | Apply launch options to client-owned realtime session creation. |
| src/gateway/protocol/schema/channels.ts | Extend gateway schemas with VAD/silence/prefix/reasoning params. |
| scripts/dev/realtime-talk-live-smoke.ts | Update live smoke script defaults + event/method names. |
| extensions/voice-call/src/webhook/realtime-handler.ts | Pass core runtime config into backend realtime bridge creation. |
| extensions/voice-call/src/webhook.ts | Provide cfg to streaming/transcription config for OAuth resolution. |
| extensions/voice-call/src/runtime.ts | Thread cfg into realtime call handler construction. |
| extensions/voice-call/src/media-stream.ts | Pass cfg into realtime transcription provider session creation. |
| extensions/openai/realtime-voice-provider.ts | Add OAuth fallback via client_secret minting; update session payload shape; add reasoning/VAD options; validate voice list; default model gpt-realtime-2. |
| extensions/openai/realtime-voice-provider.test.ts | Add/adjust tests for OAuth minting, payload shape changes, and Azure deployment compatibility. |
| extensions/openai/realtime-transcription-provider.ts | Add OAuth fallback via transcription_session client_secret minting; use async headers resolution. |
| extensions/openai/realtime-transcription-provider.test.ts | Add tests for OAuth-configured behavior and minted secrets. |
| extensions/openai/realtime-provider-shared.ts | Factor shared “mint realtime secret” helper for voice/transcription flows. |
| extensions/google-meet/src/runtime.ts | Respect requested mode for test_speech (including bidi) and adjust health refresh behavior. |
| extensions/google-meet/src/realtime.ts | Pass full config into transcription provider for OAuth resolution. |
| extensions/google-meet/src/realtime-node.ts | Pass full config into transcription provider for OAuth resolution (node bridge). |
| extensions/google-meet/src/cli.test.ts | Add CLI coverage ensuring test-speech mode is delegated to gateway runtime. |
| extensions/google-meet/index.test.ts | Update tests for new status/health behavior and bidi test-speech mode. |
| docs/web/control-ui.md | Document OAuth support + new Talk options panel behavior. |
| docs/providers/openai.md | Document OAuth support, new default model, voice constraints, and new option fields. |
| CHANGELOG.md | Add release note entry for OAuth realtime + Talk options + Meet bidi test-speech. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f7a844faea
ℹ️ 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".
f7a844f to
3662ef1
Compare
3662ef1 to
08355d3
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08355d3c7f
ℹ️ 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".
9396bd8 to
19554f5
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 19554f5b4f
ℹ️ 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".
e7853b5 to
ea08ef6
Compare
ea08ef6 to
fedccf6
Compare
fedccf6 to
2ef17aa
Compare
|
Landed via rebase merge onto Proof:
Thanks @Solvely-Colin. |
Summary
openai-codexOAuth-backed auth for native OpenAI realtime voice in browser Talk, Gateway relay/Voice Call realtime bridges, and OpenAI realtime transcription when no direct OpenAI API key is configured.gpt-realtime-2, and remove native OpenAI realtime temperature usage.test_speechmode: "bidi"coverage.Why
OAuth-only OpenAI/Codex setups could not use realtime Talk or backend realtime bridges because those paths required a direct OpenAI API key. The Control UI also had no way to choose provider/model/voice/transport/VAD options at launch time, which made live voice testing and provider comparison much rougher than it needed to be.
Real Behavior Proof
Behavior or issue addressed: OAuth-only OpenAI/Codex setups could not use realtime Talk or backend realtime bridges without a direct OpenAI API key, and Control UI Talk had no launch-time options for provider, transport, model, voice, reasoning, or VAD tuning.
Real environment tested: configured local OpenClaw runtime host running the Control UI and OpenAI realtime voice with OAuth auth available; direct OpenAI API-key env was deliberately unset for the proof. Supplemental Linux validation ran on an owned static SSH Crabbox host with no live OpenClaw auth state.
Exact steps or command run after this patch: started the local OpenClaw dashboard/gateway, opened Control UI, launched browser Talk with the new OpenAI realtime options, talked back and forth successfully, then ran a redacted one-off runtime smoke with direct API-key env removed. Also ran the targeted realtime voice/OpenAI/Google Meet Vitest set on Crabbox Linux.
Evidence after fix: after-fix screenshot of the actual Control UI Talk options panel from the tested setup, plus redacted live runtime output showing OAuth-backed OpenAI realtime bridge/WebRTC connection states. No credential values, tokens, profile IDs, email addresses, bearer headers, client-secret values, or auth-file contents are included.
Redacted live output summary:
directOpenAIKeyEnv=false;configuredViaAuthProfile=true; bridge server eventssession.created -> session.updated; browser WebRTCanswerHasAudio=true;remoteDescriptionApplied=true;connectionState=connected.Observed result after fix: browser realtime Talk connected and worked manually in the UI using the OAuth path; the options panel was visible and usable; the backend realtime bridge reached ready state through OAuth-backed auth; the browser WebRTC path completed SDP negotiation and connected.
What was not tested: no fresh live Google Meet join in the final pass; no live Azure OpenAI realtime call in the final pass; no live OAuth realtime run on Crabbox because the static host has no OpenClaw auth state for the Crabbox user.
Validation
pnpm test extensions/openai/realtime-voice-provider.test.ts extensions/openai/realtime-transcription-provider.test.ts src/realtime-transcription/websocket-session.test.ts ui/src/ui/realtime-talk.test.ts ui/src/ui/realtime-talk-gateway-relay.test.ts ui/src/ui/views/chat.test.tspnpm check:changedcodex review --base origin/mainreturned no high-confidence findings. Its internal sandbox could not create the repo heavy-check lock under.git, so the focused test command above was run separately with normal repo lock access.pnpm crabbox:run -- --provider ssh --no-sync --timing-json --shell -- 'PATH="$PWD/.crabbox-bin:$PATH" OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test extensions/openai/realtime-voice-provider.test.ts extensions/openai/realtime-transcription-provider.test.ts src/gateway/talk-realtime-relay.test.ts src/gateway/talk-transcription-relay.test.ts ui/src/ui/realtime-talk-gateway-relay.test.ts ui/src/ui/realtime-talk.test.ts extensions/google-meet/index.test.ts extensions/google-meet/src/cli.test.ts'passed 4 Vitest shards / 176 tests on the owned static SSH Crabbox host.Screenshots
Before: the Chat composer had no Talk options panel to capture.
After:
AI Assistance
AI-assisted with Codex. Human live-tested browser Talk and uploaded the Control UI screenshot.
Not Tested / Limits
crabboxuser; local live runtime proof covers the OAuth-backed OpenAI realtime connection.