Repository navigation
Description
Summary
Please consider improving Browser Talk's GPT-Live start-to-listening latency, with content-free phase timings to identify which parts OpenClaw can safely optimize. One measured start took approximately 3.18 seconds; this is a performance/UX request, not a claim of a proven regression.
Problem to solve
For wakeword-initiated voice interaction, waiting several seconds before the microphone is ready for the conversation feels slow. In this measurement, almost all browser-startup time was after microphone acquisition, during GPT-Live call setup and subsequent WebRTC readiness. This is connection startup, not model response latency after speaking.
Environment and reproduction
- OpenClaw 2026.9.4; Linux; dedicated Chromium Control UI Browser Talk.
- OpenAI
gpt-live-1-codex, ChatGPT OAuth, direct browser WebRTC with Gateway-managed agent-consult/sideband; not Gateway audio relay. - Existing browser and Gateway were already running; this was a new voice connection, not a cold Gateway boot.
- A local wakeword bridge requests Talk start. Timing below starts at the browser's catalog request, excluding recognition and bridge latency.
- Start Talk from idle, do not ask a question, and wait for the listening state. Observe only request timings and state transitions using passive browser diagnostics.
- Important qualification: the installation has a local consult-start ordering hotfix for a SQLite transcript race. No consult was invoked in this trial. This is not a clean-package A/B reproduction and does not establish that the hotfix is irrelevant.
Evidence/examples
Single physical trial, rounded durations:
| Phase | Duration |
|---|---|
talk.catalog request/response |
27 ms |
Catalog response to talk.client.create request, including microphone acquisition |
29 ms |
talk.client.create, browser-observed |
79 ms |
| Gap before voice offer | 3 ms |
/plugins/openai/realtime/calls through response-body completion |
2236 ms |
| Offer completion to observed UI listening | 810 ms |
| Total | 3184 ms |
The last interval includes up to approximately 100 ms of UI polling resolution. Independent Gateway logging reports 70 ms server work for talk.client.create. The loopback offer HTTP connect was approximately 1 ms.
Installed GPT-Live handler inspection shows call creation awaited before sideband connection, with the SDP response returned afterward. Therefore 2236 ms is an aggregate, not a measurement of pure network latency or of either upstream subphase individually. Listening follows WebRTC data-channel opening. We have no p50/p95 distribution, no isolated call-vs-sideband timings, and no evidence that every start takes exactly this long.
Proposed solution
Could maintainers advise which parts of this direct-browser startup path can safely be shortened, and whether an existing supported optimization is available? Content-free timings for call creation, sideband readiness, and WebRTC readiness would help distinguish provider cost from OpenClaw sequencing before proposing a code change.
Please preserve readiness correctness, authorization/consult guarantees, cancellation, and microphone lifecycle. This request does not assume that parallelizing setup is safe or ask to announce listening before the transport is ready.
Alternatives considered
- Keeping the same Talk session active avoids another setup, but keeps the microphone and connection active; that is not equivalent to fast on-demand startup.
- Lowering VAD/reasoning settings targets other latency stages, not the measured startup.
- Related: fix(talk): preserve readiness during WebRTC relay startup #144604 concerns relay readiness and explicitly retains direct-transport behavior; improve(talk): reduce voice conversion CPU work #146469 reduces audio conversion CPU work and explicitly does not claim lower provider/network latency. Neither is assumed to fix this case.
Impact
Observed in one Linux Browser Talk setup used for on-demand voice interaction. Annoying rather than blocking: listening eventually works. The user notices the wait on new connections; frequency and latency distribution have not been quantified. No release-blocker claim.
Do you plan to open a PR for this?
No, proposing the idea only.
Additional information
Shared with the operator's permission. No audio, transcripts, credentials, SDP, hostnames, or private session identifiers are included. No new permanent instrumentation or transport changes were made for this measurement.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Sep 15, 2026
Codex review: this still needs some work.
Summary
Keep this issue as a concrete Browser Talk performance investigation: current main retains the reported startup sequence, and related work does not establish a latency fix.
Reproducibility: The reported sequence is source-confirmed, but no current-main latency reproduction was run and the single hotfixed trial cannot establish a repeatable performance defect.
Maintainer decision needed
Next step
Decide whether to sponsor a clean-release phase baseline before specifying any startup optimization.
Review details
Best possible solution:
Identify avoidable startup work with repeated content-free phase measurements, then shorten it within the existing transport owners while preserving readiness and cleanup.
Do we have a high-confidence way to reproduce the issue?
The reported sequence is source-confirmed, but no current-main latency reproduction was run and the single hotfixed trial cannot establish a repeatable performance defect.
Is this the best way to solve the issue?
Measurement before optimization is appropriate because the sideband needs the provider-created call identifier and owns required control behavior; aggregate timing alone cannot justify reordering startup.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against e28a63d8b99e.
Label changes
Label changes:
No label changes.
Label justifications:
P2: The reported delay affects on-demand voice usability, but Listening eventually works and no regression or widespread failure is established.impact:ux-friction: Waiting approximately three seconds before a new voice connection becomes usable adds noticeable friction without blocking the workflow.Evidence reviewed
What I checked:
extensions/openai/realtime-quicksilver-session.ts:439, e28a63d8b99e)extensions/openai/realtime-quicksilver-session.ts:453, e28a63d8b99e)ui/src/pages/chat/talk/webrtc.ts:134, e28a63d8b99e)docs/nodes/talk/realtime-sessions.md:192, e28a63d8b99e)Likely related people:
ui/src/pages/chat/talk/webrtc.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 20, 2026, 10:25 AM ET / 14:25 UTC.
openclaw-barnacle commentedon Oct 20, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Oct 24, 2026
This issue has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.
openclaw-barnacle commentedon Nov 2, 2026
Closing as not planned after the inactivity notice and full retest/update grace. This is an administrative close; the reported problem has not been confirmed fixed. Please reopen with current reproduction details if it still occurs.