Repository navigation
fix(macos): resume concurrent location permission requests - #116183
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 10:37 PM ET / July 30, 2026, 02:37 UTC. ClawSweeper reviewWhat this changesThe PR replaces the macOS location permission requester's single waiter with a coordinator that coalesces concurrent callers, resumes all waiters together, and prevents cancelled timeout work from affecting a later request. Merge readinessKeep this PR open for explicit macOS-owner review. It targets a concrete suspended-caller failure in the native permission path, and the provided evidence shows focused coverage plus a changed-gate run; the Priority: P2 Review scores
Verification
How this fits togetherThe macOS app asks Core Location for authorization when a feature needs location access. Permission requests enter the native requester, which waits for the Core Location delegate result or a timeout, then returns authorization status to every requesting caller. flowchart TD
A[macOS feature requests location access] --> B[Location permission requester]
B --> C{Authorization already decided?}
C -- Yes --> D[Return current status]
C -- No --> E[Request coordinator]
E --> F[Core Location prompt and delegate result]
F --> G[Resume all waiting callers]
E --> H[Generation-bound timeout]
H --> G
Decision needed
Why: This changes continuation ownership around an OS-managed authorization prompt; focused unit coverage is useful but cannot by itself establish all device-level delegate and Settings-launch behavior. Before merge
Agent review detailsSecurityNone. PR surfaceDocs +1, Other +68. Total +69 across 3 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land a single-owner coordinator only after the macOS owner confirms real authorization-prompt behavior for concurrent When-In-Use and Always requests, including cancellation and timeout behavior, and the native checks finish successfully. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was independently run in this review. The reported failure is source-reproducible from the former single stored continuation and the new focused test's two-waiter scenario, but Core Location device behavior was not observed here. Is this the best way to solve the issue? Unclear. A single coordinator is the maintainable ownership boundary for coalescing waiters, but the complete delegate, escalation, and timeout implementation needs macOS-owner confirmation before this can be called the best fix. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5128df0cdd97. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Final exact-head maintainer review for
Provenance: the single stored continuation and cancellation-swallowing timeout were introduced in commit |
* origin/main: fix(macos): stop canceled voice wake timers (openclaw#116189) fix(macos): coalesce location permission requests (openclaw#116183) fix(macos): guard remote tunnel restart ownership (openclaw#116172) fix(agents): throw CompactionError when summarization fails (openclaw#115500) fix(test): isolate ACP startup output stream (openclaw#116076) fix(agents): deny all tools when scheduled authority names a removed account (openclaw#115932) fix(test): stop collecting Vydra test helpers (openclaw#116139) fix(discord): preserve webhook deadline errors (openclaw#116155) fix(test): isolate Google embedding batch timeout (openclaw#116161) fix(cron): stop replaying old schedule slots after a cron job is edited (openclaw#115779) fix(plugins): report request timeouts for stalled response bodies (openclaw#116166)
What Problem This Solves
Fixes an issue where concurrent macOS location permission requests could overwrite the single pending continuation, leaving an earlier caller suspended forever. A cancelled timeout could also act on a newer request and open Settings or complete the wrong waiter.
Why This Change Was Made
Location permission requests now use one coordinator that coalesces all concurrent waiters, resumes them together, and owns one cancellation-aware timeout per request generation. An
Alwaysrequest can still escalate an active prompt once without replacing existing waiters.User Impact
Concurrent location checks no longer hang indefinitely, and stale timeout work cannot interfere with a later permission request.
Evidence
e0d6fc01704:PermissionManagerLocationTestspassed 3 tests, including concurrent waiter completion