Skip to content

feat(ios): start live voice from Siri and Shortcuts - #141003

Merged
steipete merged 2 commits into
mainfrom
steipete/build-and-test-26d2c2
Sep 7, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/build-and-test-26d2c2

Conversation

@steipete

@steipete steipete commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Full iOS Simulator app build passed, including the embedded Watch companion and App Intents extraction.
  • 24 focused tests passed; 0 failures and 0 skipped across OpenClawAppDelegateTests and OpenClawTypographyTests. 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, and git diff --check passed.
  • pnpm native:i18n:verify passed 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.
  • Fresh independent pre-commit review found no actionable P0–P2 findings.
  • In Apple's actual Shortcuts app on an isolated iOS simulator, verified action discovery, unpaired cold launch, persistent setup guidance after onboarding dismissal, warm Settings-to-Chat activation, repeated activation without disabling Talk, configured cold launch from a stopped app, and stopping Talk.
  • The extracted app metadata contains the discoverable 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.

Before: no live voice action in Shortcuts search

After: OpenClaw Start Live Voice appears in Shortcuts search

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.
@steipete steipete self-assigned this Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: ios App: ios size: M maintainer Maintainer-authored PR labels Sep 7, 2026
@steipete
steipete marked this pull request as ready for review September 7, 2026 08:05
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 7, 2026, 4:35 AM ET / 08:35 UTC.

ClawSweeper review

What this changes

Adds 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
Reviewed head: 2016e6792c0d90bf89fc3ee64f7b9b0be53c58b9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with reported real simulator coverage and useful lifecycle tests; the previous blocker is fixed.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The external-contributor gate does not apply to this maintainer-authored PR. Reported Apple Shortcuts simulator runs exercise the new registry-to-root-to-Talk handoff; physical audio and spoken Siri recognition are explicitly unclaimed, and attachment retrieval failed in this review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor gate does not apply to this maintainer-authored PR. Reported Apple Shortcuts simulator runs exercise the new registry-to-root-to-Talk handoff; physical audio and spoken Siri recognition are explicitly unclaimed, and attachment retrieval failed in this review.
Evidence reviewed 8 items Prior finding resolved: Comparing the previously reviewed head with this head shows only the two requested native source inventory additions. The supplied current-head checks report native-i18n success, and the author explicitly addressed the finding at #141003 (comment).
Launch and request ownership: The intent requests foreground launch and queues through the application registry. RootTabs waits for initial session selection, onboarding evaluation, and an active scene; the model consumes setup-rejected requests and avoids toggling an already-enabled Talk session.
Canonical Talk handoff and safeguards: The new consumer calls setTalkEnabled, also used by the existing inline Talk control. Talk retains foreground and Gateway admission, microphone permission checks, capture arbitration, and start-attempt revalidation after awaited work. No new credentials, remote endpoint, or authorization bypass is introduced.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - Spoken Siri recognition and physical-device microphone-to-provider audio remain outside the reported simulator coverage.
Agent review details

Security

None.

PR surface

Docs +20, Other +218. Total +238 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 20 0 +20
Config 0 0 0 0
Generated 0 0 0 0
Other 7 230 12 +218
Total 8 250 12 +238

Review metrics

Metric Value Why it matters
Production and test growth Swift production +113 net lines; tests +103 lines Production growth supports bounded launch buffering, navigation, and error presentation while reusing the voice backend.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #140998
Summary: This PR implements the paired foreground-shortcut request; background Siri conversation support remains a distinct proposal.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the shortcut as a thin foreground entry point into the existing Talk owner, preserving current-session selection and consuming rejected setup requests.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate does not apply to this maintainer-authored PR. Reported Apple Shortcuts simulator runs exercise the new registry-to-root-to-Talk handoff; physical audio and spoken Siri recognition are explicitly unclaimed, and attachment retrieval failed in this review.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This adds useful one-action access to existing iOS voice behavior with a limited platform scope.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate does not apply to this maintainer-authored PR. Reported Apple Shortcuts simulator runs exercise the new registry-to-root-to-Talk handoff; physical audio and spoken Siri recognition are explicitly unclaimed, and attachment retrieval failed in this review.

Evidence

What I checked:

  • Prior finding resolved: Comparing the previously reviewed head with this head shows only the two requested native source inventory additions. The supplied current-head checks report native-i18n success, and the author explicitly addressed the finding at feat(ios): start live voice from Siri and Shortcuts #141003 (comment). (apps/.i18n/native-source.json:2134, 2016e6792c0d)
  • Launch and request ownership: The intent requests foreground launch and queues through the application registry. RootTabs waits for initial session selection, onboarding evaluation, and an active scene; the model consumes setup-rejected requests and avoids toggling an already-enabled Talk session. (apps/ios/Sources/StartLiveVoiceIntent.swift:3, 2016e6792c0d)
  • Canonical Talk handoff and safeguards: The new consumer calls setTalkEnabled, also used by the existing inline Talk control. Talk retains foreground and Gateway admission, microphone permission checks, capture arbitration, and start-attempt revalidation after awaited work. No new credentials, remote endpoint, or authorization bypass is introduced. (apps/ios/Sources/Model/NodeAppModel.swift:3475, 2016e6792c0d)
  • Current-main necessity and release check: The inspected main source retains the existing Talk enablement path, while the search for AppIntent, AppShortcutsProvider, StartLiveVoice, Siri, and Shortcuts in iOS sources and platform docs returned no matches. No merged replacement was supplied. The v2026.9.2 tag object was unavailable locally, so release inclusion is not claimed. (apps/ios/Sources/Model/NodeAppModel.swift:1326, b48ad1e469c6)
  • Simulator proof and explicit boundary: The supplied PR body and author follow-up report actual Apple Shortcuts simulator discovery, cold and warm activation, current-chat navigation, repeated invocation, setup rejection, and stopping Talk against a synthetic offline Gateway. The before/after attachment URLs could not be retrieved by this reviewer, so their visual contents were not independently inspected. Spoken Siri recognition and physical-device audio are explicitly outside the reported proof. (2016e6792c0d)
  • Focused behavioral coverage: The added tests exercise cold-launch buffering, inactive-scene waiting, current-session preservation, repeated activation, rejection without later replay, and canonical capture rejection. The supplied evidence reports 24 focused tests passing; this read-only review did not execute them. (apps/ios/Tests/OpenClawAppDelegateTests.swift:86, 2016e6792c0d)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-07T08:12:13.787Z sha d3327a2 :: blocked before merge. :: [P2] Regenerate the native source inventory for the new localized text

@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the native localization finding in 2016e67: pnpm native:i18n:baseline added exactly the two new source entries, and pnpm native:i18n:verify now passes with no inventory drift. The generated delta also passed independent review. The PR body has been updated while preserving both screenshots; required CI is rerunning on the new head.

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.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 7, 2026
@steipete
steipete merged commit acc505f into main Sep 7, 2026
122 of 123 checks passed
@steipete
steipete deleted the steipete/build-and-test-26d2c2 branch September 7, 2026 08:50
@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 7, 2026
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.
steipete added a commit that referenced this pull request Sep 7, 2026
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.
steipete added a commit that referenced this pull request Sep 7, 2026
…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.
steipete added a commit that referenced this pull request Sep 7, 2026
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.
steipete added a commit that referenced this pull request Sep 7, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
…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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Start iOS live voice with a native Shortcut

1 participant