Repository navigation
fix(ios): native Talk respects session thinking level - #112901
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 23, 2026 04:43
Contributor
Author
|
Land-ready proof for exact head
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. |
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]>
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.
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-codedthinking: "low", overriding the live session and model policy.Healthy direct OpenAI Realtime WebRTC or gateway-relay sessions do not traverse this native
chat.sendpath 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
thinkingfield.OpenClawChatGatewayRequests.sendMessagetherefore 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.TalkModeManagerTestspassed 56/56. The regression verifieschat.send, session/message/idempotency fields, the 30-second run timeout, and absence ofthinking.OpenClawSnapshotUITests.testVoiceWakeResumesAfterTalkModeTogglepassed. It launches the app, opens Voice & Talk, toggles Talk Mode on/off, and verifies the app remains healthy.tbx_01ky41v06mh62f25f81wcgy15s: the model catalog advertisedthinkingLevels=["off"]; a request omitting thinking completed with assistant markerTALK_OFF_ONLY_OK; exactly one model request was observed. Run: https://github.com/openclaw/openclaw/actions/runs/29891564792node scripts/run-vitest.mjs src/secrets/provider-integrations.test.ts: 19/19 passed after securing the fixture directory/file.git diff --checkpassed.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]