Skip to content

fix: browser voice stays unavailable after OpenAI login - #133048

Merged
steipete merged 1 commit into
mainfrom
codex/openai-browser-voice-startup
Aug 30, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/openai-browser-voice-startup

Conversation

@steipete

@steipete steipete commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #133047
Related: #126594

What Problem This Solves

Fixes an issue where users signing in with OpenAI could still find browser Talk unavailable without manually configuring a Talk provider. The chat microphone could also retain its pre-login unavailable state on the same Gateway connection.

Why This Change Was Made

The OpenAI plugin now declares startup ownership for its existing browser-session broker, including when login happens after Gateway boot. The composer refreshes Talk readiness when the user returns focus from sign-in, following the existing Talk Settings behavior. Listener disposal and stale-request fencing remain owned by the picker.

User Impact

An enabled OpenAI plugin no longer needs unrelated Talk settings to provide its OAuth browser broker. Returning from sign-in refreshes the microphone's readiness. Plugin disable/deny/allow rules, microphone permissions, explicit session start, credentials, and model defaults are unchanged: GA Realtime remains the default, and GPT-Live remains an explicit model choice.

Evidence

  • Two real-manifest startup regressions failed before the manifest repair; afterward, 203 metadata/startup tests passed, including existing disable/deny/allowlist cases.
  • Two composer focus/lifetime regressions failed before the UI repair; afterward, 39 owner/composer/new-session tests passed, covering disposal, reuse, and stale results.
  • Independent Codex P0–P2 review of the complete patch found no actionable findings. Formatting and diff checks passed.
  • Exact-head hosted CI is green. Full pnpm build passed in the native review worktree with its own pnpm install --frozen-lockfile (7m 1.8s, including UI budgets). The first build in the shared-dependency checkout failed because its workspace packages resolve to an unrelated branch; the clean native build removes that environment mismatch.
  • Scoped profile-extension-memory.mts --extension openai --skip-combined --concurrency 1 passed: 403.9 MiB peak RSS, 43.0 MiB empty-Node baseline, +360.9 MiB isolated-import delta; zero failures/timeouts. This includes shared SDK/runtime imports and is not incremental Gateway RSS. Earlier registration is an intentional startup cost for the existing broker capability; plugin opt-outs remain available. This addresses the latest ClawSweeper build/profile Rank-up move.
  • No provider API payload changes. No successful live GPT-Live call is claimed. Signed-in dashboard verification is currently blocked because the browser relay does not expose the target dashboard tab; startup and browser owner tests are the available before/after evidence. No visual layout changes.
  • Production TypeScript +5/-0; manifest +1/-1; tests +97/-0; docs +7/-0. Growth owns the focus listener's connected/disposed lifetime; no new configuration or database schema.

Separate follow-up: OAuth-only agents.defaults.voiceModel selection still checks backend/Platform readiness when no Talk provider is explicit (src/gateway/server-methods/talk-shared.ts:247). Explicit Talk provider/model selection is unaffected; this PR does not claim to repair that selector.

AI-assisted implementation and verification. Release-note context: OpenAI login activates browser voice without hidden provider setup, and the web microphone refreshes readiness after sign-in.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui extensions: openai size: S maintainer Maintainer-authored PR labels Aug 30, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 11:34 PM ET / August 30, 2026, 03:34 UTC.

ClawSweeper review

What this changes

The PR starts the bundled OpenAI plugin at Gateway boot and refreshes the Control UI microphone capability catalog when the browser regains focus after sign-in.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for normal maintainer validation. The patch correctly repairs the default post-login browser-voice path and preserves plugin opt-outs, but its new default startup activation still needs the scoped build and OpenAI import-memory evidence recorded before merge.

Priority: P2
Reviewed head: f4d8cdc4c5f92abfe33541f156f546aaca717b2a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-aligned repair with meaningful regression coverage; only the required startup-cost validation remains.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied owner-level tests are supplemental, and the PR accurately discloses that signed-in dashboard proof was unavailable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied owner-level tests are supplemental, and the PR accurately discloses that signed-in dashboard proof was unavailable.
Evidence reviewed 7 items PR-owned startup trigger: The introduced manifest change makes the default-enabled OpenAI plugin eligible for startup activation.
Broker ownership and existing security boundary: Full registration acquires the broker and registers its existing plugin-authenticated route; the PR changes when this existing owner is registered, not route authentication.
Startup policy still honors opt-outs: The startup planner only considers on-startup manifests after the activation policy, which rejects global disablement, deny entries, disabled entries, and restrictive allowlists.
Findings None None.
Security None None.

How this fits together

Browser Talk reads a capability catalog from the Gateway, whose fully registered OpenAI plugin owns the OAuth browser-session broker. The chat microphone uses that catalog to decide whether it can start a voice session.

flowchart LR
  Login[OpenAI sign-in] --> Gateway[Running Gateway]
  Gateway --> Plugin[OpenAI plugin broker]
  Plugin --> Catalog[Talk capability catalog]
  Catalog --> Picker[Chat microphone picker]
  Focus[Browser focus returns] --> Picker
  Picker --> Ready[Updated voice readiness]
Loading

Before merge

  • Resolve merge risk (P1) - The default-enabled OpenAI plugin will now fully register on every ordinary Gateway boot. The required scoped build and extension import-memory profile have not yet been recorded at this head, so startup-cost impact remains unverified.
  • Complete next step (P2) - This maintainer-authored, protected PR needs its normal exact-head validation rather than a ClawSweeper repair job.
Agent review details

Security

None.

PR surface

Source +5, Tests +97, Docs +7. Total +109 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 2 6 1 +5
Tests 2 97 0 +97
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 110 1 +109

Review metrics

Metric Value Why it matters
Production versus test delta runtime/config +6/-1, tests +97/-0, docs +7/-0 The small runtime/config growth changes default plugin startup and adds a focus-lifetime owner; test growth directly covers both repaired boundaries.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #133047
Summary: This PR is the candidate repair for the default post-login browser Talk path; the explicit configured-provider path is separate.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Complete startup-cost validation (recommended)
    Run the scoped OpenAI extension memory profile and build at the current head, then record the results before merging the new default activation behavior.

Technical review

Best possible solution:

Retain manifest-owned broker startup and the picker’s focus refresh, then record a clean exact-head build and the scoped OpenAI extension memory profile before merge.

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

Yes, source-reproducible with high confidence: fetched main leaves the default OpenAI plugin out of startup while full registration is the owner of the browser broker, and the picker only refreshed on connection changes.

Is this the best way to solve the issue?

Yes. Manifest-owned startup registration is the narrowest way to provide the broker without adding core provider policy, and the picker mirrors the existing Talk Settings focus-refresh lifecycle.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a focused repair for a normal-priority browser voice availability failure.
  • add merge-risk: 🚨 compatibility: Changing a default-enabled plugin from lazy to startup registration can affect existing Gateway startup behavior and resource use.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied owner-level tests are supplemental, and the PR accurately discloses that signed-in dashboard proof was unavailable.

Label justifications:

  • P2: This is a focused repair for a normal-priority browser voice availability failure.
  • merge-risk: 🚨 compatibility: Changing a default-enabled plugin from lazy to startup registration can affect existing Gateway startup behavior and resource use.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied owner-level tests are supplemental, and the PR accurately discloses that signed-in dashboard proof was unavailable.

Evidence

What I checked:

  • PR-owned startup trigger: The introduced manifest change makes the default-enabled OpenAI plugin eligible for startup activation. (extensions/openai/openclaw.plugin.json:4, f4d8cdc4c5f9)
  • Broker ownership and existing security boundary: Full registration acquires the broker and registers its existing plugin-authenticated route; the PR changes when this existing owner is registered, not route authentication. (extensions/openai/index.ts:28, f5eea3197c55)
  • Startup policy still honors opt-outs: The startup planner only considers on-startup manifests after the activation policy, which rejects global disablement, deny entries, disabled entries, and restrictive allowlists. (src/plugins/gateway-startup-plugin-plan.ts:178, a93a015a5695)
  • UI repair follows the established sibling pattern: The picker installs a focus listener only while connected, removes it on transition and disposal, and fences older catalog requests; Talk Settings already re-reads the catalog on focus after terminal OAuth login. (ui/src/pages/chat/composer-microphone-picker.ts:62, f4d8cdc4c5f9)
  • Consumer and regression coverage: Chat renders one picker per pane and starts Talk only after its status becomes ready; added tests cover focus refresh, disposal, reuse, and stale-result fencing, while the manifest test covers empty and OAuth/chat-model startup inputs. (ui/src/pages/chat/components/chat-composer.ts:433, f4d8cdc4c5f9)
  • Current-main necessity and release check: Fetched main still has OpenAI startup disabled, while this unmerged head is in no locally available release tag; the central repair is therefore neither obsolete nor implemented on main. (extensions/openai/openclaw.plugin.json:4, a93a015a5695)

Likely related people:

  • unknown: The blamed commit carries this line unchanged from a recorded parent; no introducing author is attributed. (role: carried-forward source line; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record the exact-head build and scoped OpenAI extension memory-profile result.

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.

@steipete
steipete merged commit 5d07c11 into main Aug 30, 2026
197 checks passed
@steipete
steipete deleted the codex/openai-browser-voice-startup branch August 30, 2026 03:41
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 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 maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAI login leaves browser Talk unavailable without manual setup or refresh

1 participant