Repository navigation
Conversation
Browser Talk posted the realtime reservation as Authorization: Bearer. A reverse proxy that uses the same header for the gateway password answers 401 before the gateway sees the token, and the password prompt repeats. Gateway-origin offers now send the reservation in X-OpenClaw-Realtime-Token and leave Authorization unset so the browser can attach its cached basic credentials. Direct OpenAI offers still use Bearer. The offer route accepts either header and does not challenge for basic auth. Refs: openclaw#172403
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR moves Gateway-origin browser Talk reservations into a dedicated header so HTTP Basic proxy credentials can accompany the offer. Example: Mobile Chrome starts Talk through a Caddy proxy protecting /plugins/openai/realtime/calls with HTTP Basic authentication.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open: it offers a coherent, focused remedy for the reported authentication collision, and current main still sends the reservation through Authorization. Priority: P2 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI exchanges a browser-generated SDP offer with the OpenAI plugin's Gateway broker, which validates a single-use reservation, creates the upstream call, and returns its SDP answer. flowchart LR
A[Control UI Talk] --> B[Basic auth proxy]
B --> C[Gateway offer route]
C --> D[Reservation owner]
D --> E[OpenAI call transport]
E --> F[SDP answer]
F --> A
Technical reviewBest possible solution: Adopt an owner-approved reservation transport that supports proxy authentication while preserving existing bearer clients and reservation authorization. Do we have a high-confidence way to reproduce the issue? Source establishes that Talk occupies Authorization with its reservation token, which conflicts with a proxy requiring Basic authentication; the inspected screenshot confirms a 401 but does not identify the rejecting server, and no current-main browser reproduction was run. Is this the best way to solve the issue? Separating the reservation from proxy credentials is a plausible, bounded solution that retains the existing broker owner, but adopting the new transport requires owner direction and browser evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1616d35dcb7f. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete authorization bypass was found, but the changed credential transport requires final-effect authorization evidence. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +76, Tests +176, Docs +7. Total +259 across 9 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 14, 2026, 2:48 PM ET / 18:48 UTC. |
Closes #172403
What Problem This Solves
Fixes: mobile Talk shows
Realtime WebRTC setup failed (401)and repeats the gateway password prompt when the Control UI is opened through a reverse proxy that uses HTTP basic auth.User Impact
User impact: a signed-in browser session can start Talk without the offer request occupying
Authorization. Re-entering the gateway password is no longer required to get the reservation token past the proxy.Native clients that already send
Authorization: Bearerkeep working. Directapi.openai.comoffers still send that bearer token and do not send the reservation header.Why This Change Was Made
Talk posted the single-use reservation as
Authorization: Beareron every offer, including/plugins/openai/realtime/calls. The proxy uses that same header for the gateway password, so it can answer 401 before the gateway sees the reservation. The browser then shows its password dialog again, and a script-setAuthorizationheader keeps the cached password from replacing the bearer token.Gateway-origin offers now send the reservation in
X-OpenClaw-Realtime-Token, leaveAuthorizationunset, and use credentialed fetch so the browser can attach the cached basic credentials. The offer route accepts that header or the existing bearer token. Its own 401 does not sendWWW-Authenticate. CORS allows the new header and credentialed browser origins.Exempting the offer path from the proxy's password check is not this fix.
Evidence
X-OpenClaw-Realtime-Tokenand noAuthorization; a directhttps://api.openai.com/v1/realtime/callsoffer still sendsAuthorization: Bearerand does not include credentials.webrtc.test.tsstill passes.Authorization: Basicplus the reservation header returns the SDP answer; basic auth alone returns401Invalid or expired realtime session tokenwith noWWW-Authenticate. Preflight allowsX-OpenClaw-Realtime-Tokenand credentialed CORS.