Repository navigation
feat(ios): start live voice from Siri and Shortcuts - #141003
Conversation
Expose a foreground Start Live Voice App Shortcut that preserves the current chat and reuses the existing Talk lifecycle. Coalesce cold-launch requests, avoid toggling active Talk, and retain setup guidance without modal presentation races.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 7, 2026, 4:35 AM ET / 08:35 UTC. ClawSweeper reviewWhat this changesAdds an iOS shortcut that opens the current chat and starts existing Talk mode, with cold-launch handling, setup guidance, tests, and usage documentation. Merge readiness⛔ Blocked before merge - 1 item remains The prior localization blocker is resolved, and no remaining blocking defect was found. This remains a useful, maintainer-sponsored feature absent from the inspected main source. Priority: P2 Review scores
Verification
How this fits togetherThe iOS app connects users to their Gateway and manages local voice capture. The new shortcut passes a foreground launch request through the app model and root navigation into the existing Talk lifecycle. flowchart TD
A[Siri or Shortcuts] --> B[Foreground app launch]
B --> C[Buffered start request]
C --> D[Active scene and setup checks]
D -->|Ready| E[Open current chat]
D -->|Setup incomplete| F[Visible setup guidance]
E --> G[Existing Talk lifecycle]
G --> H[Microphone and Gateway admission]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs +20, Other +218. Total +238 across 8 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shortcut as a thin foreground entry point into the existing Talk owner, preserving current-session selection and consuming rejected setup requests. Do we have a high-confidence way to reproduce the issue? Not applicable to this feature request; current-main inspection confirms the missing native shortcut, and the supplied simulator report exercises its new entry point. Is this the best way to solve the issue? Yes. A parameterless foreground shortcut reuses the existing Talk lifecycle without introducing a competing conversation backend or configuration path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b48ad1e469c6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Addressed the native localization finding in 2016e67: The remaining physical-device/audio concern is a documented proof boundary, not an unaddressed runtime change: this PR adds a foreground action and hands off to the unchanged Talk owner. Actual Apple Shortcuts simulator testing covered discovery, cold/warm handoff, current-chat navigation, Talk enablement, repeated invocation, setup rejection and stopping. The attached screenshots were inspected locally before upload. We are not claiming spoken Siri recognition or a real microphone/provider roundtrip; those remain physical-device release validation. |
|
Merged via squash.
|
Match the optional AppIntent description requirement so framework consumers receive the existing description instead of the protocol default. Keep a protocol-typed regression that fails before this correction and passes afterward. This isolated CI repair fixes a witness mismatch introduced in #141003; no voice execution behavior changes.
Match the optional AppIntent description requirement so framework consumers receive the existing description instead of the protocol default. Keep a protocol-typed regression that fails before this correction and passes afterward. This isolated CI repair fixes a witness mismatch introduced in #141003; no voice execution behavior changes.
…native (#139514) * refactor(native): share the device settings wire contract * refactor(ios): move Settings into the Dashboard and keep Gateway native * refactor(ios): retire native Gateway data screens * fix(ios): handle the shared Chrome extension setup action * test(ios): restore the shared Settings screenshot target * fix(ios): enforce settings authority and retire stale preferences * refactor(native): remove retired settings helpers * fix(ios): preserve permission lifetimes across settings navigation Keep overlapping location authorization waiters independent so retiring a Dashboard document cannot orphan its pending request. Start HealthKit authorization through the callback API under current main-actor authority, retain its store until completion, and preserve native error semantics. Validation: 30 focused iOS tests across five suites, including the former WKNavigation crash regression; changed-file checks; original-versus-fixed continuation lifecycle probe; real SDK executor proof; final independent review through P2. * fix(ios): expose live voice intent description to Shortcuts Match the optional AppIntent description requirement so framework consumers receive the existing description instead of the protocol default. Keep a protocol-typed regression that fails before this correction and passes afterward. This isolated CI repair fixes a witness mismatch introduced in #141003; no voice execution behavior changes.
Keep per-connection epochs and reject retired socket callbacks through one OpenClawKit value. Preserve macOS publication retirement before clearing socket state and retain platform route and invocation cleanup. Proof: 1665 shared Swift tests, both Apple builds, strict macOS Periphery, protocol:check:swift, check-changed, and independent Codex review passed. Native locale parity remains blocked by 42 missing translations for two strings introduced in #141003; no localization artifacts were changed.
Keep per-connection epochs and reject retired socket callbacks through one OpenClawKit value. Preserve macOS publication retirement before clearing socket state and retain platform route and invocation cleanup. Proof: 1665 shared Swift tests, both Apple builds, strict macOS Periphery, protocol:check:swift, check-changed, and independent Codex review passed. Native locale parity remains blocked by 42 missing translations for two strings introduced in #141003; no localization artifacts were changed.
* feat(ios): start live voice from Siri and Shortcuts Expose a foreground Start Live Voice App Shortcut that preserves the current chat and reuses the existing Talk lifecycle. Coalesce cold-launch requests, avoid toggling active Talk, and retain setup guidance without modal presentation races. * fix(ios): include live voice text in native catalog
…native (openclaw#139514) * refactor(native): share the device settings wire contract * refactor(ios): move Settings into the Dashboard and keep Gateway native * refactor(ios): retire native Gateway data screens * fix(ios): handle the shared Chrome extension setup action * test(ios): restore the shared Settings screenshot target * fix(ios): enforce settings authority and retire stale preferences * refactor(native): remove retired settings helpers * fix(ios): preserve permission lifetimes across settings navigation Keep overlapping location authorization waiters independent so retiring a Dashboard document cannot orphan its pending request. Start HealthKit authorization through the callback API under current main-actor authority, retain its store until completion, and preserve native error semantics. Validation: 30 focused iOS tests across five suites, including the former WKNavigation crash regression; changed-file checks; original-versus-fixed continuation lifecycle probe; real SDK executor proof; final independent review through P2. * fix(ios): expose live voice intent description to Shortcuts Match the optional AppIntent description requirement so framework consumers receive the existing description instead of the protocol default. Keep a protocol-typed regression that fails before this correction and passes afterward. This isolated CI repair fixes a witness mismatch introduced in openclaw#141003; no voice execution behavior changes.
Keep per-connection epochs and reject retired socket callbacks through one OpenClawKit value. Preserve macOS publication retirement before clearing socket state and retain platform route and invocation cleanup. Proof: 1665 shared Swift tests, both Apple builds, strict macOS Periphery, protocol:check:swift, check-changed, and independent Codex review passed. Native locale parity remains blocked by 42 missing translations for two strings introduced in openclaw#141003; no localization artifacts were changed.
Closes #140998
Related: #47584 (broader background Siri question-and-answer support is not part of this change).
What Problem This Solves
Starting live voice on iOS required opening OpenClaw, finding Chat, and tapping Talk. There was no native action for starting the existing voice conversation from Shortcuts, Siri, the Action Button, or a Home Screen shortcut.
Why This Change Was Made
Adds a parameterless Start Live Voice App Shortcut with the Siri phrase “Start live voice with OpenClaw.” It foregrounds the app, preserves the selected chat, and uses the existing Talk owner for Gateway admission, microphone permissions, audio arbitration, and connection recovery. App Intents metadata generation is enabled for the iPhone app so the action is actually discoverable.
Early launch requests are coalesced and wait for the active root UI and initial session selection. Repeated runs enable rather than toggle or restart Talk. Setup rejection consumes the request so completing onboarding cannot unexpectedly start an old microphone request. Immediate failures use the existing dismissible notice banner; simulator testing caught an alert/onboarding-dismissal collision and the banner avoids that modal race.
No new voice backend, public URL route, Gateway option, intent extension, or background Siri conversation path is introduced.
User Impact
Users can choose Shortcuts → Apps → OpenClaw → Start Live Voice, invoke the Siri phrase, or assign a saved shortcut to the Action Button or Home Screen. The existing Gateway setup and iOS foreground, unlock, and permission requirements remain in place. Usage and limitations are documented on the iOS platform page.
Evidence
OpenClawAppDelegateTestsandOpenClawTypographyTests. Coverage includes cold-launch buffering, inactive-scene admission, selected-session preservation, repeated invocation, setup rejection without later replay, and canonical capture rejection.node scripts/check-changed.mjs, Swift formatting/lint, andgit diff --checkpassed.pnpm native:i18n:verifypassed after regenerating the two new source inventory entries. The first CI attempt caught the missing generated catalog; no runtime change or translated locale update was needed.StartLiveVoiceIntent, foreground launch behavior, and the registered Siri phrase.Proof boundary: simulator activation used a synthetic offline Gateway. This proves discovery, launch, navigation, and Talk enablement, not a real iPhone microphone-to-provider conversation or spoken Siri recognition. No production Gateway was modified.
The first build stopped on a missing pinned Watch Rust toolchain/Cargo PATH prerequisite. After installing the declared toolchain and exposing Cargo to Xcode, both the build and final focused tests passed; no source workaround or dependency change was added.
Before and after
The inspected simulator captures below show the empty action search before installation and the discoverable Start Live Voice action after installation. They contain only synthetic simulator UI.