Skip to content

fix(talk): hide unavailable GPT-Live choices until configured - #119210

Closed
vincentkoc wants to merge 2 commits into
stack/realtime-openai-route-authfrom
stack/realtime-private-model-gate
Closed

vincentkoc wants to merge 2 commits into
stack/realtime-openai-route-authfrom
stack/realtime-private-model-gate

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Fixes an issue where Talk exposed the private GPT-Live alpha model as an ordinary
OpenAI picker choice even when the operator had not explicitly configured or
been enrolled for it. The same surface also incorrectly said ChatGPT/Codex OAuth
was sufficient for GPT-Live.

Why This Change Was Made

The OpenAI provider now advertises only generally available realtime models.
The generic Gateway catalog preserves an explicitly configured model for the
active provider, so enrolled operators can still use the exact GPT-Live id
without making it a default suggestion.

The root cause was a boundary mix-up: provider runtime acceptance and picker
eligibility shared one list. The provider owns default suggestions; the Gateway
owns preserving configured selections; the Talk UI owns enrollment guidance.
Keeping those facts separate is the canonical fix.

User Impact

Most operators see only generally available OpenAI realtime choices. Enrolled
operators can set the exact private model in talk.realtime.model, see that
selection returned by talk.catalog, and get accurate Platform API-key setup
guidance in the Talk UI.

Evidence

  • Exact head: f8394a1f08d178da1a0bbc8d91afea353e0752b2.
  • Exact tree: e7a55f444ec1d60f1319d99a0bca61f9d3b60cac.
  • Focused tests: 200 passed (OpenAI provider 134, Gateway/Talk 64, rendered Talk UI 2).
  • pnpm ui:i18n:verify: passed with 4,662 source keys.
  • Targeted oxfmt check and git diff --check: passed.
  • Independent local autoreview: clean, correctness confidence 0.98.
  • Blacksmith Testbox allocation https://github.com/openclaw/openclaw/actions/runs/31459526201 reached the prepared runner, but run-testbox was cancelled before any command executed. It is recorded as infrastructure failure, not remote proof.
  • Local Oxc changed-surface lint did not reach source analysis because the shared dependency snapshot fails DTS preparation at packages/terminal-core/src/ansi.ts:194 (TS2554). No L4 source finding was produced.

Dependency Contract

Checked current Codex remote head 2cc9dbb9846b2dc03948414df6712adb967c70eb.
Codex keeps picker visibility separate from explicit runtime selection: picker
catalog construction is owned by codex-rs/app-server/src/models.rs:13 and
codex-rs/protocol/src/openai_models.rs:750, while explicit model selection is
resolved through codex-rs/core/src/session/mod.rs:682,
codex-rs/models-manager/src/manager.rs:187, and
codex-rs/models-manager/src/manager.rs:654.

Realtime auth is resolved at codex-rs/core/src/realtime_conversation.rs:1190
and codex-rs/core/src/realtime_conversation.rs:1621, then passed through
codex-rs/core/src/client.rs:659 into the realtime endpoint client at
codex-rs/codex-api/src/endpoint/realtime_call.rs:50.

This PR does not claim native GPT-Live OAuth support or resolve #95289 or
#114510.

LOC

  • Production: +15 / -8 (net +7), justified by the generic configured-model
    preservation boundary.
  • Tests: +59 / -35 (net +24).
  • Docs: +14 / -11 (net +3).

Stack

Depends on #119209.

Punchcard-Session: golden-meadow-cedar-dv

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime extensions: openai size: XS maintainer Maintainer-authored PR labels Aug 4, 2026
@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 26, 2026, 3:03 PM ET / 19:03 UTC (Revision 23).

ClawSweeper review

What this changes

The branch removes private GPT-Live suggestions, adds the configured model to the Gateway Talk catalog, and changes Talk setup guidance in the UI and docs.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 9 items remain

Keep this protected member PR open. Current main resolves the original private-alpha picker exposure, but no formally linked merged PR replaces this branch, and the remaining changes conflict with shipped Talk contracts.

Priority: P1
Reviewed head: f8394a1f08d178da1a0bbc8d91afea353e0752b2

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused patch has useful tests, but its catalog privacy conflict and incorrect authentication guidance prevent merge readiness.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the contributor proof gate. Its changed provider suggestion, catalog projection, and UI copy have focused mocked tests but no captured real Talk run; the prepared screenshots belong to a separate merged PR and show voice choices. No stored-data contract changes.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the contributor proof gate. Its changed provider suggestion, catalog projection, and UI copy have focused mocked tests but no captured real Talk run; the prepared screenshots belong to a separate merged PR and show voice choices. No stored-data contract changes.
Evidence reviewed 13 items Introduced catalog disclosure: The PR appends the active provider's configured model to the catalog's public models array, including an unlisted account-issued value.
Released catalog privacy contract: Current main configures an unlisted model, then asserts that the entire Talk catalog omits its identifier; the catalog implementation publishes provider suggestions without appending configured private models.
Private model projection: The OpenAI plugin removes an unlisted GPT-Live model from the public Talk config projection. The docs likewise state that account-issued models are not published through catalogs or diagnostics.
Findings 2 actionable findings [P1] Keep account-issued models out of the Talk catalog
[P1] Restore route-specific GPT-Live authentication guidance
Security Needs attention Opaque realtime model disclosure: A configured private model is copied into the Talk catalog models array, bypassing the current public-projection rule and its explicit omission test.

How this fits together

The OpenAI voice plugin supplies model suggestions and authentication behavior to the Gateway. The Gateway catalog feeds Talk clients’ pickers, while session creation resolves the configured model and credentials before a realtime call.

flowchart LR
  A[Talk configuration] --> B[OpenAI model policy]
  B --> C[Gateway catalog]
  C --> D[Talk model picker]
  A --> E[Session authentication]
  B --> E
  E --> F[Realtime call]
Loading

Before merge

  • Keep account-issued models out of the Talk catalog (P1) - This append puts the active configured model into the catalog even when it is an account-issued unlisted route. Released main deliberately passes such a model to session readiness while asserting that the catalog omits its identifier. The privacy contract landed after the earlier review; remove this public projection when refreshing the branch.
  • Restore route-specific GPT-Live authentication guidance (P1) - The new text says ChatGPT/Codex OAuth cannot enable GPT-Live, but the released gpt-live-1-codex browser and Gateway-owned WebRTC route is OAuth-first. Update this string, its rendered test, and the matching docs to distinguish that route from Platform-only public or unlisted routes.
  • Resolve security concern: Opaque realtime model disclosure - A configured private model is copied into the Talk catalog models array, bypassing the current public-projection rule and its explicit omission test.
  • Resolve merge risk (P1) - The catalog append would expose an account-issued unlisted model ID through the Talk catalog, contrary to the privacy contract shipped in v2026.9.6.
  • Resolve merge risk (P1) - The blanket Platform-key guidance could make a supported GPT-Live Codex-route OAuth setup appear unavailable and steer operators toward a separately billed credential.
  • Resolve merge risk (P1) - The net seven-line production increase is largely a new Gateway catalog projection that current main deliberately avoids; its cross-provider policy needs removal or a demonstrated contract-backed need.
  • Complete next step (P2) - Refresh this stack against current main, remove the private-model catalog disclosure, and correct GPT-Live auth guidance and tests before merge.
  • Improve patch quality - Remove the configured-model catalog append and retain a regression asserting omission of an unlisted model.
  • Improve patch quality - Refresh the stack's UI copy, docs, and tests against the released OAuth-capable and Platform-only routes.

Findings

  • [P1] Keep account-issued models out of the Talk catalog — src/gateway/server-methods/talk.ts:393-399
  • [P1] Restore route-specific GPT-Live authentication guidance — ui/src/i18n/locales/en.ts:2417
  • [medium] Opaque realtime model disclosure — src/gateway/server-methods/talk.ts:397
Agent review details

Security

Needs attention: The generic catalog append can reveal an account-issued model ID that released main deliberately removes from public Talk projections.

PR surface

Source +7, Tests +24, Docs +3. Total +34 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 4 15 8 +7
Tests 3 59 35 +24
Docs 2 14 11 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 88 54 +34

Review metrics

Metric Value Why it matters
Production and test LOC production +15/−8 (net +7); tests +59/−35 (net +24) The positive production delta centers on the catalog projection, while the added tests cover provider suggestions and the RPC result.
Model discovery changes 1 picker suggestion list changed; 1 catalog projection changed; 0 config keys added The picker and catalog serve different clients and must respect the same shipped private-route boundary.

Merge-risk options

Maintainer options:

  1. Preserve the shipped Talk boundaries (recommended)
    Remove the public catalog append and update the route-specific auth copy and assertions while rebasing the stack onto current main.
  2. Retire the old stack if no distinct fix remains
    After owner review, close this draft branch if its useful behavior is fully covered by the shipped route and privacy work.

Technical review

Best possible solution:

Rebase on current main, retain its public-model suggestions and opaque-route redaction, remove the generic catalog append, and make UI and docs guidance specific to the selected GPT-Live route.

Do we have a high-confidence way to reproduce the issue?

No current-main reproduction of the original private-alpha picker exposure was found: the released suggestion set omits that ID. The branch's catalog disclosure is source-reproducible from its append and assertion, against the inverse current-main test; no runtime was executed.

Is this the best way to solve the issue?

No. Current main keeps private models available to session resolution while withholding them from the catalog, and already distinguishes OAuth-capable and Platform-only GPT-Live routes.

Full review comments:

  • [P1] Keep account-issued models out of the Talk catalog — src/gateway/server-methods/talk.ts:393-399
    This append puts the active configured model into the catalog even when it is an account-issued unlisted route. Released main deliberately passes such a model to session readiness while asserting that the catalog omits its identifier. The privacy contract landed after the earlier review; remove this public projection when refreshing the branch.
    Confidence: 0.97
  • [P1] Restore route-specific GPT-Live authentication guidance — ui/src/i18n/locales/en.ts:2417
    The new text says ChatGPT/Codex OAuth cannot enable GPT-Live, but the released gpt-live-1-codex browser and Gateway-owned WebRTC route is OAuth-first. Update this string, its rendered test, and the matching docs to distinguish that route from Platform-only public or unlisted routes.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b29a243dcd7f.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The branch would misstate a working authentication path and disclose an opaque model ID through a public-facing Talk response.
  • merge-risk: 🚨 compatibility: The new catalog projection reverses a shipped omission contract for account-issued models.
  • merge-risk: 🚨 auth-provider: The introduced guidance incorrectly excludes the released OAuth-first GPT-Live Codex route.
  • merge-risk: 🚨 security-boundary: An account-issued model identifier currently withheld from public Talk projections would enter the catalog response.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This member-authored PR is exempt from the contributor proof gate. Its changed provider suggestion, catalog projection, and UI copy have focused mocked tests but no captured real Talk run; the prepared screenshots belong to a separate merged PR and show voice choices. No stored-data contract changes.

Evidence

Security concerns:

  • [medium] Opaque realtime model disclosure — src/gateway/server-methods/talk.ts:397
    A configured private model is copied into the Talk catalog models array, bypassing the current public-projection rule and its explicit omission test.
    Confidence: 0.96

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (22 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-11T05:00:51.386Z sha f8394a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-11T06:05:48.674Z sha f8394a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-11T06:13:21.328Z sha f8394a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-19T18:44:48.497Z sha f8394a1 :: needs maintainer review before merge. :: none
  • reviewed August 19, 2026, 7:57 PM ET / 23:57 UTC sha unknown :: found issues before merge. :: [P1] Preserve GPT-Live OAuth guidance
  • reviewed 2026-08-19T23:57:40.369Z sha f8394a1 :: found issues before merge. :: [P1] Preserve GPT-Live OAuth guidance
  • reviewed 2026-08-26T01:38:55.538Z sha f8394a1 :: needs historical verification review before merge. :: [P1] Preserve GPT-Live OAuth guidance
  • reviewed 2026-09-02T02:57:23.988Z sha f8394a1 :: blocked before merge. :: [P1] Restore supported GPT-Live OAuth guidance

@vincentkoc
vincentkoc force-pushed the stack/realtime-openai-route-auth branch from 869a061 to 932995f Compare August 4, 2026 12:14
@vincentkoc
vincentkoc force-pushed the stack/realtime-private-model-gate branch from 68121b2 to 41f3ea0 Compare August 4, 2026 12:14
@vincentkoc
vincentkoc force-pushed the stack/realtime-openai-route-auth branch from 932995f to a7b7f0e Compare August 4, 2026 12:21
@vincentkoc
vincentkoc force-pushed the stack/realtime-private-model-gate branch from 41f3ea0 to 5ca0ca3 Compare August 4, 2026 12:21
@vincentkoc
vincentkoc force-pushed the stack/realtime-openai-route-auth branch from a7b7f0e to 0e7c96e Compare August 4, 2026 19:37
@vincentkoc
vincentkoc force-pushed the stack/realtime-private-model-gate branch from 5ca0ca3 to 474f202 Compare August 4, 2026 19:37
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. and removed P2 Normal backlog priority with limited blast radius. labels Aug 4, 2026
@vincentkoc
vincentkoc force-pushed the stack/realtime-openai-route-auth branch from 0e7c96e to ce786b8 Compare August 5, 2026 00:52
@vincentkoc
vincentkoc force-pushed the stack/realtime-private-model-gate branch from 474f202 to 7ccc2c9 Compare August 5, 2026 00:52
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 5, 2026
@vincentkoc
vincentkoc force-pushed the stack/realtime-private-model-gate branch from 7ccc2c9 to 24b8324 Compare August 5, 2026 01:08
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S and removed size: XS labels Aug 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 11, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 19, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 28, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Sep 2, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Sep 26, 2026
@steipete

Copy link
Copy Markdown
Contributor

Thanks for the PR. We're closing older pull requests that have gone stale against current main.

Current main already keeps the private GPT-Live model out of the ordinary Talk picker, which was the original problem here; this draft has had no commits since August.

If this change is still needed, please open a fresh PR against current main and we'll review it there.

@steipete steipete closed this Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation extensions: openai gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants