Repository navigation
refactor(macos): remove write-only voice wake state - #106468
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 12:19 PM ET / 16:19 UTC. Summary PR surface: Other -6. Total -6 across 1 file. Reproducibility: not applicable. This PR removes demonstrably write-only private state rather than fixing a user-visible failure; the exhaustive symbol audit is the relevant verification path. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Next step before merge
Security Review detailsBest possible solution: Land the narrow deletion while retaining isCapturing, currentConfig, recognition tasks, and VoiceSessionCoordinator as the authoritative lifecycle surfaces. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes demonstrably write-only private state rather than fixing a user-visible failure; the exhaustive symbol audit is the relevant verification path. Is this the best way to solve the issue? Yes. Deleting the unused private model and its assignments is the narrowest maintainable solution because no caller reads it and the real lifecycle owners remain unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7a0efada743b. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Other -6. Total -6 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Merged via squash.
|
What Problem This Solves
The macOS Voice Wake runtime retained a private listening-state model that was only written and never read. That stale state implied lifecycle authority it did not have and could drift from the runtime's actual capture and configuration state.
Why This Change Was Made
Remove the unused enum, property, and three assignments while preserving the real lifecycle owners (
isCapturing,currentConfig, recognition tasks, and push-to-talk coordination).pauseForPushToTalk()still callsstop(dismissOverlay: false)unchanged.User Impact
No user-visible behavior changes. The runtime now has one less misleading state path to maintain.
Evidence
swiftc -frontend -parse apps/macos/Sources/OpenClaw/VoiceWakeRuntime.swiftswiftformat --lint apps/macos/Sources/OpenClaw/VoiceWakeRuntime.swift --config config/swiftformatswiftlint lint --strict --config config/swiftlint.yml apps/macos/Sources/OpenClaw/VoiceWakeRuntime.swiftOPENCLAW_TESTBOX=1changed gate: Blacksmith Testbox run 29260131827; all five macOS-related Vitest shards passed.gpt-5.6-solmedium autoreview: clean, confidence 0.99. The repository reviewer rejected the full file because existing unrelated content triggered its secret-like-content guard, so the review used a sanitized behavior-complete slice containing the exact six-line deletion plus source, history, ownership, and validation evidence.AI-assisted: yes. I reviewed the complete change and validation evidence. No transcript is attached.