Repository navigation
fix(talk): recognize agent-scoped browser gateway control - #125142
Conversation
Ensure gateway-control capability checks use the same routed agent as realtime provider readiness and browser-session authentication.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 3:28 AM ET / 07:28 UTC. ClawSweeper reviewWhat this changesPass the routed agent identity through browser realtime capability resolution so gateway control recognizes that agent’s OpenAI Platform credential. Merge readinessKeep open. Current main still drops the routed agent before browser capability evaluation, and the supplied patch carries that scope through the generic resolver to the OpenAI-owned auth check without a blocking defect found. The maintainer label also requires explicit maintainer handling. Priority: P1 Review scores
Verification
How this fits togetherBrowser Talk resolves a session’s owning agent and realtime provider before deciding whether Gateway-controlled audio is available. The provider’s capability result determines whether the Gateway creates the browser session or returns an unsupported-capability error. flowchart LR
A[Browser Talk request] --> B[Resolve session agent]
B --> C[Select realtime provider]
C --> D[Resolve browser capabilities]
D --> E[Check agent-scoped OpenAI auth]
E --> F[Allow gateway control]
E --> G[Return capability error]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +48. Total +57 across 9 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep one routed agent identity from session selection through the generic capability resolver, with provider-owned auth evaluation and focused scoped-versus-unscoped regression coverage. Do we have a high-confidence way to reproduce the issue? Yes. Current main resolves the routed agent for readiness but omits it from browser capability resolution, while the OpenAI auth predicate uses agentId to select the credential store. Is this the best way to solve the issue? Yes. Carrying the already-selected agent through the generic private capability context keeps provider-specific auth ownership in the OpenAI plugin and avoids duplicating credential lookup in Gateway code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f59e945013db. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Landing verification for exact head 81be430f781494f6bc5eca8a3b81ecc4c6e6bd24:
Current Known proof gap: no live authenticated browser-session capture was supplied. ClawSweeper classified real-behavior proof as not applicable for this maintainer-owned deterministic repair; focused owner-boundary regressions and exact-head CI provide the landing evidence. |
|
Merged via squash.
|
Follow-up to #125111
What Problem This Solves
Fixes an issue where browser Talk sessions requesting
gateway-control-v1could reject a routed agent as unsupported when that agent owned the only configured OpenAI Platform profile. Provider readiness and browser-session authentication already used the routed agent, but capability evaluation silently fell back to the unscoped auth store.Why This Change Was Made
The host-selected agent now flows through the generic realtime capability context into the provider-owned OpenAI browser capability check. The field remains optional, so callers and providers without a route-owned agent retain the existing unscoped behavior.
User Impact
Multi-agent browser realtime sessions can use Gateway-controlled OpenAI audio when the selected agent owns the relevant Platform credential, instead of failing before session creation with a misleading unsupported-capability error.
Evidence
false; the OpenAI provider test failed because agent-only Platform auth did not advertise gateway control; the Gateway handler tests failed because capability resolution omitted the selected agent.node scripts/run-vitest.mjs src/talk/provider-resolver.test.ts extensions/openai/realtime-voice-provider-routing.test.ts src/gateway/server-methods/talk.test.ts— 107 tests passed across 3 shards.node scripts/check-changed.mjs -- <9 changed paths>— passed all selected core, core-test, extension, and extension-test checks.pnpm plugin-sdk:surface:check— passed; no public Plugin SDK surface changed.oxfmt --check <9 changed paths>andgit diff --check— passed.The affected capability decision is entirely local and occurs before any external provider request; focused owner-boundary tests reproduce the exact credential-scope failure without requiring a live OpenAI session.
AI-assisted: yes. The implementation, regression proof, and final diff were maintainer-reviewed.