Skip to content

[Feature]: Improve Browser GPT-Live startup latency (3.18s measured to listening) #149185

Closed as not planned

Description

@dielessen

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

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.

Activity

  1. added
    P2
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    impact:ux-friction
    issue-rating: 🦪 silver shellfish
    on Sep 15, 2026
  2. clawsweeper commented on Sep 15, 2026

    @clawsweeper
    Contributor

    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

    • Question: Should Browser Talk receive a bounded GPT-Live OAuth startup performance investigation?
    • Recommendation: Sponsor measurement first: Establish repeated clean-release timings for provider creation, sideband attachment, and browser readiness before choosing an optimization.
    • Why: The report identifies a real user-visible wait on an owned surface, but neither a violated latency contract nor a safe optimization is established.

    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:

    • The single trial on a locally modified installation does not establish typical current-release startup latency.
    • The safely reducible OpenClaw contribution remains unknown because provider creation and sideband setup were measured together.

    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:

    Likely related people:

    • Peter Steinberger: Raw commit de34731 adds ui/src/pages/chat/talk/webrtc.ts:139 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: de3473171a22; files: ui/src/pages/chat/talk/webrtc.ts)
    How this review workflow works
    • 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; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 20, 2026, 10:25 AM ET / 14:25 UTC.

  3. added
    issue-rating: 🌊 off-meta tidepool
    and removed
    issue-rating: 🦪 silver shellfish
    on Sep 24, 2026
  4. openclaw-barnacle commented on Oct 20, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. added
    stale
    on Oct 20, 2026
  6. added
    clawsweeper:intake:feature
    and removed
    clawsweeper:intake:feature
    on Oct 20, 2026
  7. removed
    stale
    on Oct 21, 2026
  8. openclaw-barnacle commented on Oct 24, 2026

    @openclaw-barnacle

    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.

  9. added
    stale
    on Oct 24, 2026
  10. openclaw-barnacle commented on Nov 2, 2026

    @openclaw-barnacle

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-primpact:ux-frictionissue-rating: 🌊 off-meta tidepoolstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions