Add macOS login startup and complete uninstall - #28
Open
pedroapfilho wants to merge 2 commits into
Open
Conversation
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.
Users can opt into macOS login startup with
tokenmaxx install --autostartortokenmaxx daemon install. A completetokenmaxx uninstallnow reverses setup and removes the installed application.uninstallstop the manager, restore Codex/Claude/pi routing, remove startup files and the launcher app, delete tokenmaxx’s Keychain entries (including orphaned credentials and chunks), remove account/usage data, preferences, logs and isolated profiles, then remove the global CLI through its owning package manager. It never restarts the daemon.daemon disableremoves startup and stops the daemon;uninstall routinganduninstall pionly restore routing. Update help, status, doctor, recovery instructions and README accordingly.Behavior change: plain
tokenmaxx uninstallnow deletes saved tokenmaxx accounts and usage data and removes the global package. Usetokenmaxx uninstall routingfor the previous routing-only operation. Emergency recovery instructions now use that narrower command.Validation:
bun run check— typecheck, formatting/lint, and 102 passing tests.bun run build.TOKENMAXX_TEST_LAUNCHD=1 bun test src/launch-agent.test.ts— real macOS integration with a unique service label, temporary directories, an empty account database and an ephemeral port. Covers one manager process, automatic restart, stop/start, reinstall, conflict handling and full cleanup. This test is opt-in because it requires a macOS GUI login session. Credential deletion and global package removal use isolated test doubles; no live accounts or packages are removed by tests.