Repository navigation
fix(security): keep MCP settings out of backups, speech on the Mac, safe uninstaller paths - #53
Merged
Merged
Conversation
3 of 4 tasks
…afe uninstaller paths - Backup: never export or restore mcp.* keys or the Claude plan-limits opt-in. - Speech: always require on-device recognition; show a clear message when the language has no local model. - Uninstaller: validate app name/id before building paths, keep leftovers inside ~/Library, add tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quost
force-pushed
the
fix/security-backup-speech-uninstaller
branch
from
November 24, 2026 00:56
b5f7387 to
8581cfc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Three privacy and safety fixes from the codebase audit.
1. Backups no longer carry the MCP server settings or its key. A
.menewbackup used to export and restore every setting, includingmcp.http.token,mcp.httpand the MCP source toggles. Someone could share a "my Menew setup" backup, and restoring it would turn on the loopback MCP HTTP server with a key the author knows, with clipboard history readable. Now everymcp.*key and the opt-in Claude plan-limits fetch (agents.claudePlan) are never exported and never restored (Backup.sensitive). Other preferences, including ignored apps and "ignore passwords", still travel with the backup.2. Speech recognition always stays on the Mac. On the pre-macOS 26 paths,
requiresOnDeviceRecognitionwas only set when the language had an on-device model. For other languages, audio went to Apple's servers, against the microphone prompt ("Audio stays on your Mac and is never sent") and the README. Now it is always required:SpeechTranscriberpath was already on-device and is unchanged.3. The uninstaller can't be tricked into trashing other folders. Leftover paths were built from the dropped app's own
CFBundleNameand bundle id without checks. An app named../../Documentswould have listed~/Documentsas a pre-selected leftover. A 1-character bundle id matched almost everything inPreferences,LaunchAgentsandGroup Containers. Now:/,\or.., or shorter than 4 characters, are ignored.com.company.app.~/Libraryafter normalization.UninstallerTestscover these cases.Notes for review
check-l10n.pypasses). CHANGELOG is left for the release.Checklist
./build.shand I tried the change in the app. (CI builds it)swift testpasses, with new tests for the uninstaller path checks (CI)L("…")with en, de, es and zh🤖 Generated with Claude Code