Skip to content

fix(voice): warm GPT-Live for a minute, not for as long as the screen is up - #90

Merged
Tarquinen merged 1 commit into
devfrom
port-warmup
Nov 16, 2026
Merged

Tarquinen merged 1 commit into
devfrom
port-warmup

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

With a phone-key GPT-Live route, every open session screen re-warmed the connection every 10 s for as long as it was up, so the radio never went idle. Covered screens and Catch Up cards did it too. Now the screen in front warms for one minute, a call warms as it starts, and covered screens and Catch Up cards don't warm. iOS's 5 s WebRTC warm-up gap isn't ported: with only the front screen warming it saves at most one request.

iOS: 1735b12e

Verified on the emulator with a dummy phone key, counting requests to api.openai.com (tcpdump) for 150 s after launch:

  • dev: one request every 10 s for the whole 150 s.
  • This PR: 6 requests in the first minute (0–50 s), then none.

scripts/check.sh :feature:voice :feature:session passes.

Port of iOS 1735b12e. With a phone-key GPT-Live route, every resumed
session screen re-warmed the connection every 10 s for as long as it
was up (an HTTPS request to api.openai.com on WebRTC, a fresh socket
on WebSocket), so the radio never idled; a root covered by a subagent
and Catch Up cards warmed too, each on its own loop. Now the screen in
front warms for one minute (LiveSocketWarmer.warmWindow) and a call
warms as it starts (also when the project picker opens first). Covered
screens and Catch Up cards don't warm. iOS's 5 s WebRTC warm-up gap
isn't ported: with only the front screen warming it saves at most one
request.

Verified: vm.sh check :feature:voice :feature:session passes. On the
FX_2 emulator with a dummy phone key, tcpdump of api.openai.com
traffic over 150 s after launch: dev sends a request every 10 s for
all 150 s; this branch sends 6 (0-50 s) and then nothing.
@Tarquinen
Tarquinen merged commit 8b37dfc into dev Nov 16, 2026
1 check passed
@Tarquinen Tarquinen mentioned this pull request Nov 16, 2026

This branch was previously deployed

1 inactive deployment
release — ff8e1611 Deployed Nov 16, 2026 by Tarquinen via check #316
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant