Skip to content

chore: remove dead WakeWord and Voice files#11763

Merged
ashleeradka merged 2 commits into
mainfrom
devin/1772570847-remove-dead-wakeword-voice-files
Mar 3, 2026
Merged

chore: remove dead WakeWord and Voice files#11763
ashleeradka merged 2 commits into
mainfrom
devin/1772570847-remove-dead-wakeword-voice-files

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented Mar 3, 2026

Summary

Removes 5 unused Swift files (~474 lines) from the macOS Voice/WakeWord subsystem. These files define types (WakeWordErrorRecovery, WakeWordDismissHandler, WakeWordPrivacyGuard, AudioAmplitudeTracker, TTSEngine) that are never instantiated or referenced by WakeWordCoordinator, VoiceModeManager, AppDelegate, or any other production code.

They appear to have been written as supporting infrastructure for the wake word feature but were never wired in — the coordinator uses WakeWordFeedback and AlwaysOnAudioMonitor directly instead.

Found as part of a broader dead code investigation in clients/.

Updates since last revision

  • Restored WakeWordActivationIndicator.swift — review correctly identified that WakeWordActivationWindow is instantiated at WakeWordCoordinator.swift:27. The initial dead code scan missed this reference. This PR now deletes 5 files instead of the original 6.

Review & Testing Checklist for Human

  • Build the macOS target in Xcode to confirm no compile errors. This was authored on Linux without Xcode access, and CI builds were skipped for this draft PR — there has been no automated build verification.
  • Verify the Xcode project file (.pbxproj) doesn't reference the deleted files. This PR only deletes source files — it does not update any Xcode project. If these are listed in the project's build sources, the build will break.
  • Grep for WakeWordErrorRecovery, WakeWordDismissHandler, WakeWordPrivacyGuard, AudioAmplitudeTracker, and TTSEngine across the full repo (including non-Swift files). The original scan already had one false positive (WakeWordActivationIndicator), so extra caution is warranted for the remaining deletions.
  • Confirm TTSEngine wasn't used via a property on another object (e.g., stored as a let tts = TTSEngine() somewhere that grep might have missed in a multi-line context).

Notes


Open with Devin

Remove 6 unused files from the Voice/WakeWord subsystem:

- WakeWordErrorRecovery.swift (117 lines) — never wired into WakeWordCoordinator
- WakeWordActivationIndicator.swift (193 lines) — never wired into WakeWordCoordinator
- WakeWordDismissHandler.swift (109 lines) — never used by any code
- WakeWordPrivacyGuard.swift (113 lines) — never wired into WakeWordCoordinator
- AudioAmplitudeTracker.swift (41 lines) — zero references outside file
- TTSEngine.swift (94 lines) — zero references, likely obsoleted by voice simplification

These files define types that are never instantiated or referenced by
WakeWordCoordinator, VoiceModeManager, or any other production code.

Co-Authored-By: ashlee@vellum.ai <ashlee@vellum.ai>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

Requesting review from @alex-nork (authored WakeWord files in PRs #8141/#8159) and @AnitaKirkovska (authored AudioAmplitudeTracker/TTSEngine in PR #6095) — these 6 files were never wired into WakeWordCoordinator or VoiceModeManager.

@ashleeradka ashleeradka marked this pull request as ready for review March 3, 2026 21:16
@ashleeradka
Copy link
Copy Markdown
Contributor

@codex review

Copy link
Copy Markdown
Contributor Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

chatgpt-codex-connector[bot]

This comment was marked as resolved.

…eWordCoordinator

WakeWordActivationWindow is instantiated at WakeWordCoordinator.swift:27.
The initial dead code scan missed this reference. The other 5 files
(WakeWordErrorRecovery, WakeWordDismissHandler, WakeWordPrivacyGuard,
AudioAmplitudeTracker, TTSEngine) remain confirmed dead.

Co-Authored-By: ashlee@vellum.ai <ashlee@vellum.ai>
@ashleeradka
Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ashleeradka ashleeradka merged commit a7d8bab into main Mar 3, 2026
1 check passed
@ashleeradka ashleeradka deleted the devin/1772570847-remove-dead-wakeword-voice-files branch March 3, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant