Repository navigation
fix(discord): preserve routed agent for realtime voice - #125111
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 17, 2026, 2:35 AM ET / 06:35 UTC. ClawSweeper reviewWhat this changesThis PR propagates the selected agent through realtime voice provider readiness, bridge creation, and OpenAI/xAI credential lookup across Discord and sibling voice surfaces. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open: the shared Discord fix is sound, but two agent-scoped paths remain incomplete and can still reject valid routed credentials. Priority: P1 Review scores
Verification
How this fits togetherRealtime voice starts with a channel or call route that selects an agent, then resolves a provider and opens its audio bridge. Provider plugins use that agent scope to locate credentials before a voice session can join. flowchart LR
A[Voice route] --> B[Selected agent]
B --> C[Provider readiness]
C --> D[Realtime bridge]
D --> E[Agent-scoped credentials]
E --> F[Voice session]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +50, Tests +246. Total +296 across 26 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Resolve provider readiness at the effective per-call route, carry the same agent scope into browser capability evaluation, and retain one optional shared provider-context field for all realtime hosts. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: a multi-agent Discord route reaches provider readiness and bridge creation without its route agent on current main, and the same startup-versus-route mismatch is visible for voice-call number routes. Is this the best way to solve the issue? No: the shared fix is the right owner boundary, but it must also resolve voice-call providers after route selection and use agent-scoped browser capability checks. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c26eda0620d4. LabelsLabel 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
|
|
Land-ready proof for exact head Root cause: Discord realtime Before the fix, the regression failed with Focused proof:
Provenance is clear: #122479 / 90beb63 introduced/carried forward the ownerless resolver and bridge calls on 2026-08-12; code author, PR author, and merger were @steipete, with no bot automerge trigger. Production LOC: +60/-10 (net +50). Tests: +252/-6 (net +246). The production growth is the additive host-selected owner contract plus provider/sibling propagation. Known proof gap: no operator gateway was deployed or restarted, and there is no post-fix live Discord proof. Best-fix verdict: this is the owner-boundary repair. A global/default-agent fallback would select the wrong credential owner, a Discord-only guard would leave sibling realtime surfaces inconsistent, and inferring ownership from the session key would reconstruct an authoritative fact downstream instead of carrying it from the host selection boundary. ClawSweeper exact-head review handling:
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where Discord realtime voice
autoJoinon multi-agent gateways routed to the correct agent but droppedagentIdbefore provider readiness and bridge authentication, causingAGENT_SELECTION_REQUIREDand no joined session.Why This Change Was Made
Carries the host-selected owner through the existing generic realtime provider configured context and bridge session request, then propagates it through Discord, OpenAI/xAI agent-scoped credential lookup, Google Meet, voice-call, and the gateway relay sibling. There is explicitly no global or default-agent fallback.
User Impact
autoJoinand adjacent realtime voice surfaces now use the routed agent's credential store and reach bridge ready/joined instead of silently failing.Evidence
AGENT_SELECTION_REQUIRED: expected routed agent moltyand zero bridge creation; it passes after the fix.CHANGELOG.mdedit, per repository policy.AI-assisted: yes.