Repository navigation
refactor(ios): share voice permission support - #120176
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 7:51 PM ET / 23:51 UTC. ClawSweeper reviewWhat this changesThe PR centralizes iOS Talk Mode and Voice Wake microphone and speech-permission handling in one internal Voice helper while preserving feature-specific messages and timeout domains. Merge readinessKeep open for normal maintainer handling: this member-authored, maintainer-labeled PR is a focused net-negative refactor, and no blocking correctness or security finding was identified. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherTalk Mode and Voice Wake request iOS microphone and speech-recognition permission before capture begins. The shared Voice helper returns permission outcomes to each manager, which retains control of its status text and start/stop state. flowchart LR
A[User starts a voice feature] --> B[Talk Mode or Voice Wake]
B --> C[Shared permission support]
C --> D{System permission result}
D -->|Granted| E[Start listening or capture]
D -->|Denied or restricted| F[Feature-specific status message]
Decision needed
Why: The protected maintainer label and MEMBER association require explicit human handling even though the reviewed patch has no blocking finding. Before merge
Agent review detailsSecurityNone. PR surfaceOther -67. Total -67 across 5 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. Technical reviewBest possible solution: Retain one Voice-owned permission implementation while keeping each manager's caller-specific timeout domain and presentation behavior explicit. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving refactor, not a report of a separate failing product behavior. Is this the best way to solve the issue? Yes: a Voice-owned helper removes duplicate permission mechanics without making Voice Wake depend on Talk Mode or changing either feature's local presentation behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bf78ec9a0abe. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
cbf6c9b to
0b92524
Compare
|
@clawsweeper re-review The draft was intentionally reused for a new exact-head iOS refactor. The previous Matrix head and findings are archived in the PR body and are not part of the current diff. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Reused Draft
This PR reuses an intentionally non-landing draft because the maintainer account is at the open-PR cap.
fix(qa): restore Matrix scenario config exactlycbf6c9b239f90f5bc23fa48209d25e2fde579c23The previous commit and review history remain available by immutable SHA. They are unrelated to this replacement.
What Problem This Solves
Talk Mode and Voice Wake independently implemented the same microphone request, speech-recognition request, eight-second timeout, and speech authorization message mapping. The copies had already drifted in small callback details and made future permission fixes easy to apply to only one voice path.
Why This Change Was Made
The Voice owner now has one internal
VoicePermissionSupportimplementation for:PermissionRequestBridgeTalk Mode and Voice Wake retain their existing timeout error domains. Voice Wake's microphone-specific denial wording remains local because it has different product behavior. No SDK seam, public API, config, persistence, fallback, or permission policy changes.
User Impact
No behavior change is intended. Talk Mode and Voice Wake still request the same iOS permissions, preserve the same timeout behavior, and show the same denial/restriction messages.
Evidence
0b92524ec341ea305d9fb4f4d1977c19193c361d+32/-114(net-82)+19/-0+3/-7c3eca4f5081to9afc4ef28e7changed no iOS or native-i18n files; exact-head focused tests, formatting, lint, and i18n verification were rerunOn, returned toOff, Voice Wake resumedOn, and was restored toOff-allowProvisioningUpdateswas not used because it can mutate Apple developer account statetbx_01m0xfz625pg80a04nkdh8s07vpnpm check:changedRepair Closeout
apps/ios/Sources/Voice