Repository navigation
feat(server): broker voice through Console credentials - #57576
Draft
kitlangton wants to merge 3 commits into
Draft
kitlangton wants to merge 3 commits into
kitlangton wants to merge 3 commits into
Conversation
kitlangton
force-pushed
the
voice-models
branch
from
October 21, 2026 05:39
820361b to
debe394
Compare
kitlangton
force-pushed
the
voice-console
branch
from
October 21, 2026 05:40
070142f to
3607281
Compare
kitlangton
force-pushed
the
voice-console
branch
from
October 21, 2026 06:16
d9c59f6 to
52fb322
Compare
This was referenced Oct 23, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Feature/design draft for Kit and Adam’s October 21 discussion. Stacked on #57194 (
voice-models); intended eventual base isdev.Type of change
What does this PR do?
Phone users have to sign into Console twice today, once on their computer and again on their phone. This implements option B: the paired phone asks its server to create a GPT-Live session using the server’s selected Console connection and workspace.
sequenceDiagram participant P as Paired iPhone participant S as OpenCode server participant C as Console participant O as OpenAI P->>S: SDP offer S->>C: Create with stored credential and workspace C->>O: Create session and attach metering sideband C-->>S: Session ID and SDP answer S-->>P: Call reference and SDP answer P<<->>O: Direct WebRTC audio P->>S: Instructions for owned call S->>C: Forward as original account and workspace C->>O: Update instructions over sidebandThe server proxies setup and instruction updates only. The Console credential stays on the server, and audio goes directly from the phone to OpenAI.
experimental.voice.routecan explicitly selectconsoleorkey. Failed requests and explicit choices never fall back to another payer.data.call.id; control usesPOST /api/experimental/voice/session/:id/instructions.Discovery currently reports credential availability. Console still checks voice entitlement, models, budgets and funding at setup. The iOS hookup and a real billed-call check are follow-up work.
Questions for Adam
How did you verify your code works?
14 targeted tests passed:
voice.test.tsandvoice-refresh.test.ts(9): key/Console/unavailable precedence, explicit route selection, refresh through the real Console integration, SDP and instruction forwarding, ownership, workspace/account changes, location rebuilds, expiry, WebSocket refusal and no payer fallback. Console HTTP calls are mocked.voice.test.tsandauth.test.ts(4): HTTP routing, pairing enforcement even with general auth disabled, cross-pair control rejection, cookie origin checks, token uniqueness, tampering, expiry and revocation.process.test.ts, filtered to “pairing links” (1): browser and API pairing still work.bun run generatecompleted inpackages/client. Core, server and client typechecks passed. The required rootbun run checkpassed through HiveMind (with existing lint warnings). No full test suite or paid session was run.Screenshots / recordings
Server/API change; no UI.
Checklist