Skip to content

fix(ios): native Talk respects session thinking level - #112901

Merged
steipete merged 10 commits into
mainfrom
steipete/pr-111754-landing
Jul 23, 2026
Merged

steipete merged 10 commits into
mainfrom
steipete/pr-111754-landing

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Closes #111485

Supersedes #111754. Original fix and reproduction by @alfred429; maintainer follow-up strengthened regression coverage, corrected the Realtime scope, proved the live compatibility boundary, and repaired an unrelated red-main test fixture exposed by the landing gates.

AI-assisted: the original patch was prepared with Codex.

What Problem This Solves

Fixes an issue where users starting native or fallback Talk Mode on iOS could have every spoken turn rejected before model execution when the selected model supported only off. The iOS native Talk path hard-coded thinking: "low", overriding the live session and model policy.

Healthy direct OpenAI Realtime WebRTC or gateway-relay sessions do not traverse this native chat.send path and are not changed. The fix applies to native Talk and to fallback from unavailable Realtime transport into the native speech pipeline.

Why This Change Was Made

Native Talk now uses a shared nil policy value for the optional thinking field. OpenClawChatGatewayRequests.sendMessage therefore omits the field and the gateway resolves thinking from session/model policy, matching the established macOS voice-path behavior.

The iOS app-hosted regression constructs the same gateway request with the production policy value and verifies the real parameters rather than scanning Swift source text. Share Extension and Canvas request paths remain separate and unchanged.

The canonical full-suite gate also exposed a current-main secret-provider test fixture that created a plugin entrypoint directory with default permissions while expecting production trust validation to accept it. The fixture now uses its existing secure directory/file helpers; production secret validation is unchanged.

User Impact

iOS users can use native/fallback Talk with models whose supported thinking catalog contains only off. Speech-provider selection remains independent from model thinking policy.

Evidence

Exact reviewed head: 62a02f3e99ab3482934ea682379f707531c866fc.

  • iPhone 17 Pro simulator, Xcode 27: TalkModeManagerTests passed 56/56. The regression verifies chat.send, session/message/idempotency fields, the 30-second run timeout, and absence of thinking.
  • Actual app UI interaction on the same simulator: OpenClawSnapshotUITests.testVoiceWakeResumesAfterTalkModeToggle passed. It launches the app, opens Voice & Talk, toggles Talk Mode on/off, and verifies the app remains healthy.
  • Isolated off-only gateway proof on Blacksmith Testbox tbx_01ky41v06mh62f25f81wcgy15s: the model catalog advertised thinkingLevels=["off"]; a request omitting thinking completed with assistant marker TALK_OFF_ONLY_OK; exactly one model request was observed. Run: https://github.com/openclaw/openclaw/actions/runs/29891564792
  • Native i18n inventory check passed with no source-catalog drift.
  • node scripts/run-vitest.mjs src/secrets/provider-integrations.test.ts: 19/19 passed after securing the fixture directory/file.
  • Source-blind behavior validation passed for native/fallback request shape, off-only compatibility, and healthy direct Realtime exclusion.
  • Final branch autoreview was clean with no accepted/actionable findings.
  • git diff --check passed.

No physical iPhone was connected. Simulator speech capture is intentionally unavailable in the production app, so proof binds the actual app Talk control, app-hosted native request payload, and isolated live gateway/model boundary separately rather than claiming a physical spoken recording.

Co-authored-by: RECOVERI [email protected]

@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios size: XS maintainer Maintainer-authored PR labels Jul 23, 2026
@steipete
steipete marked this pull request as ready for review July 23, 2026 04:43
@steipete
steipete requested a review from a team as a code owner July 23, 2026 04:43
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 62a02f3e99ab3482934ea682379f707531c866fc:

  • Canonical hosted CI: https://github.com/openclaw/openclaw/actions/runs/29980254732 — required checks green, including macos-swift, ios-build, native i18n, shrinkwrap, type/lint, security, dead-code, and changed test shards.
  • iPhone 17 Pro simulator, Xcode 27: TalkModeManagerTests passed 56/56.
  • Actual app UI interaction: OpenClawSnapshotUITests.testVoiceWakeResumesAfterTalkModeToggle passed after launching the app, opening Voice & Talk, and toggling Talk Mode on/off.
  • Isolated live compatibility proof: Blacksmith Testbox tbx_01ky41v06mh62f25f81wcgy15s advertised thinkingLevels=["off"]; the omitted-thinking request completed assistant marker TALK_OFF_ONLY_OK with exactly one model request. Run: https://github.com/openclaw/openclaw/actions/runs/29891564792
  • node --import tsx scripts/native-app-i18n.ts check passed without catalog drift.
  • node scripts/run-vitest.mjs src/secrets/provider-integrations.test.ts passed 19/19 for the red-main fixture repair.
  • Source-blind behavior validation passed.
  • Final Codex autoreview: no accepted/actionable findings.
  • Repo-native OPENCLAW_TESTBOX=1 scripts/pr prepare-run 112901: passed; prepared and remote heads match exactly.

Known proof gap: no physical iPhone was connected. Production simulator speech capture is intentionally unavailable, so proof binds the actual app Talk UI, app-hosted request payload, and isolated live gateway/model boundary separately.

ClawSweeper's exact-item run completed successfully and published no additional rank-up move beyond its placeholder.

@steipete
steipete merged commit 26e4dec into main Jul 23, 2026
191 of 195 checks passed
@steipete
steipete deleted the steipete/pr-111754-landing branch July 23, 2026 05:02
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 23, 2026
* fix(ios): inherit thinking in native Talk

* test(ios): verify native Talk thinking inheritance

* test(ios): keep Talk regression i18n-neutral

* test(ios): import Talk request builder module

* test(secrets): secure plugin preset fixture

---------

Co-authored-by: RECOVERI <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: iOS Talk hard-codes unsupported thinking level low

2 participants