Repository navigation
fix(ios): harden Talk voice-session lifecycle from review - #111424
Merged
Merged
Conversation
- Close+clear the adopted logical voice session when a config/provider change invalidates a realtime prefetch (a live call is preserved); prevents the gateway rejecting a stale voiceSessionId resume under a new provider. - Retry talk.client.close (0/500/2000ms) before forgetting the session, matching the web client, so a transient close does not orphan it until the 6h sweep. - Surface exhausted transcript-persist failures through the session delegate so a dropped affirmation transcript no longer silently blocks spoken confirmation. - Localize the "Confirmation needed" status through the presentation switches; add its native locale translations.
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 20, 2026
…11424) - Close+clear the adopted logical voice session when a config/provider change invalidates a realtime prefetch (a live call is preserved); prevents the gateway rejecting a stale voiceSessionId resume under a new provider. - Retry talk.client.close (0/500/2000ms) before forgetting the session, matching the web client, so a transient close does not orphan it until the 6h sweep. - Surface exhausted transcript-persist failures through the session delegate so a dropped affirmation transcript no longer silently blocks spoken confirmation. - Localize the "Confirmation needed" status through the presentation switches; add its native locale translations.
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
…11424) - Close+clear the adopted logical voice session when a config/provider change invalidates a realtime prefetch (a live call is preserved); prevents the gateway rejecting a stale voiceSessionId resume under a new provider. - Retry talk.client.close (0/500/2000ms) before forgetting the session, matching the web client, so a transient close does not orphan it until the 6h sweep. - Surface exhausted transcript-persist failures through the session delegate so a dropped affirmation transcript no longer silently blocks spoken confirmation. - Localize the "Confirmation needed" status through the presentation switches; add its native locale translations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Follow-up to the merged iOS voice-session adoption (#111369), addressing four review findings on the Talk realtime lifecycle.
Why This Change Was Made
voiceSessionId(and creates a server-side voice session) before any live transport exists. On a config/provider change,reloadConfigand the Talk-disable path previously cleared onlyprefetchedRealtimeSession, leavingactiveRealtimeVoiceSessionIdset — so the nexttalk.client.createsent the stale id with a possibly-new provider, and the gateway rejects resuming a voice session under a different provider (createOrResumeClientVoiceSessionthrows "voice session provider does not match"), breaking direct realtime until the session was closed. Both invalidation points now route throughinvalidatePrefetchedRealtimeSession(), which closes+clears the adopted session when no live call is active and preserves an in-progress direct call otherwise.talk.client.closefailures were logged after state was already cleared, with no retry, orphaning the gateway session until the 6h stale sweep and delaying the mutation digest. Closes now retry (0/500/2000ms), matching the web client.presentationText/watchPresentationswitches now localize it; its native locale translations are added.User Impact
Evidence
xcodegen generate→xcodebuild, iPhone simulator, Xcode 27 beta, no signing):** BUILD SUCCEEDED **.TalkModeManagerTests(55) +TalkRealtimeTranscriptWriteQueueTests(2) → 57 pass, zero failures, including new regressions: config-invalidation closes+clears an adopted prefetch, config-invalidation preserves a live call, close retries three times, and transcript exhaustion surfaces to the delegate.pnpm native:i18n:checkexit 0 (entries=4961); locale artifacts consistent.git diff --checkclean; rebased current on main. apps/ios + apps/.i18n only.