Repository navigation
fix(android): Talk does nothing when mic access is permanently denied - #206609
Conversation
…ntly denied The chat Talk button requested RECORD_AUDIO through its own ActivityResult launcher and returned silently on denial, so after "Don't ask again" a tap did nothing. Ask through MainViewModel.requestRecordAudioPermission instead, the PermissionRequester path voice notes and dictation already use, which shows the rationale or the "Enable permission in Settings" dialog.
|
🦞👀 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: passed. What this changesRoutes Talk microphone requests through the shared permission requester so permanent denial offers Android Settings. Example: Tap Start Talk after permanently denying android.permission.RECORD_AUDIO.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current Android silent failure through the existing permission owner; no actionable patch defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Android Chat composer requests microphone permission before checking Talk readiness and starting the existing Talk runtime. flowchart TD
A[Chat Talk button] --> B[Talk launcher]
B --> C[MainViewModel]
C --> D[PermissionRequester]
D --> E[Android permission prompt]
D --> F[Android Settings recovery]
C --> G[Talk readiness and runtime]
Technical reviewBest possible solution: Keep this focused shared-owner fix and land it after the required CI gate is satisfied. Do we have a high-confidence way to reproduce the issue? Current main visibly returns on denial without recovery; the contributor's API 36 emulator comparison corroborates that path, and no target code was run during this review. Is this the best way to solve the issue? Reusing PermissionRequester is the smallest complete fix for permanent-denial recovery and removes the competing launcher without changing Talk readiness or runtime ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 55f3ed6404f5. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +89. Total +91 across 2 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 27, 2026, 9:28 AM ET / 14:28 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* commit 'b21f557c8fa038ebc1842e204e356eb063aea4c6': (46 commits) test(ui): keep real exports in the channel settings distribution mock (#208855) test(normalization): preserve inline code in quoted previews (#208857) fix(ci): restore adaptive priors across large repository trees (#208838) test(agents): cover typography preservation in patch updates (#208851) fix(ci): wait for selected agent during model setup proof (#208847) fix: keep Telegram topic messages out of Home’s chat history (#208778) fix(worktrees): name the session to restore and say agents can't (#208828) fix: tell an idle parent when a child result couldn't reach its chat (#208772) fix: keep the provider search focused when accounts load (#208780) fix(clawrouter): respect permitted speeds on model fallback (#208830) fix(ui): show provider rejection details without Markdown escapes (#208829) fix: make the cloud worker deletion test reliable across reconnects (#208812) fix(update): preserve preparation lock ownership (#207139) chore(release): update appcast for 2026.11.12 (#208820) fix(android): Talk does nothing when mic access is permanently denied (#206609) test(config): preserve media model primaries across repeated edits (#208837) fix(browser): use the mock keychain for new headed macOS profiles (#208814) fix: start source workers without synchronous filesystem reads in the caller (#208789) refactor(ios): stop loading retired Overview data (#208795) perf(knowledge): stop repeating write-input schemas in batch and correct tools (#208617) ...
Closes #206076
What Problem This Solves
Fixes: tapping Talk in an Android chat does nothing when the microphone permission was denied with "Don't ask again" (or denied twice). Android answers the request at once without a system prompt, and the Talk button ignored the denial, so there was no message and no way to Settings.
User Impact
Tapping Talk with the microphone blocked now shows the same "Enable permission in Settings" dialog that voice notes and dictation already show, with an Open Settings button to the app's settings page. A first-time request still shows Android's own prompt, and granting it continues into Talk as before.
How it works
Talk keeps its Android activity-result launcher so the first tap can continue when the user grants permission, even after a long pause. A permanent denial goes through the shared Settings dialog used by dictation and voice notes. Canceling the prompt leaves the microphone off.
Evidence
All three Android Talk regressions passed in both the Play and third-party builds for
2d00a89273a. The platform callback tests verified that permanent denial offers Settings, a grant after 25 seconds starts Talk on the original tap, and cancellation leaves the microphone off. Each report contained all three cases with zero skips, failures, or errors. Android ktlint and both native-access checks passed in the same CI run.Contributor emulator evidence before the late-grant correction
Debug
playDebugbuilds of54efb719017(base) and the original contributor patch at70d508c6543, on an API 36 Google APIs emulator, connected to an isolated local Gateway. The microphone was put into the "Don't ask again" state withpm revokepluspm set-permission-flags … user-set user-fixed.permission=android.permission.RECORD_AUDIO result=2, no prompt appears, and the chat screen is unchanged.com.android.settings/.spa.SpaActivityon the OpenClaw Dev app info page.Screenshots
API 36 emulator, microphone set to "Don't ask again".
Nothing appears; the chat is unchanged.
Dictation already shows the Settings dialog.
Talk now shows the same dialog.
Open Settings opens the app info page.
The contributor's original patch passed the focused Talk, ChatScreen, PermissionRequester, and dictation suites. The emulator run also found that a grant after 25 seconds required a second tap on that patch. The correction preserves the native grant callback and adds regression coverage for that case.