openhuman
openhuman copied to clipboard
[Bug] Autocomplete / background helper still runs after OpenHuman is deleted
Summary
OpenHuman inline autocomplete (or related background helper) continues running after the app is deleted/uninstalled.
Problem
- User removes OpenHuman from the machine.
- Autocomplete-related process or service still runs (e.g. notifications, hotkey listener, or helper binary).
- Causes confusion, battery use, and potential privacy concerns.
Steps to reproduce
- Enable Text Auto-Complete / autocomplete server in OpenHuman.
- Use autocomplete at least once.
- Quit app and delete OpenHuman (Trash / uninstaller).
- Observe background behavior (Activity Monitor, login items, notifications, hotkey).
Expected
All OpenHuman-related background processes stop when the app is removed (or user explicitly disables autocomplete).
Actual
Autocomplete or helper continues running after app deletion.
Tasks
- [ ] Identify which process persists (helper app, LaunchAgent, login item, separate binary).
- [ ] Ensure uninstall path removes LaunchAgents/daemons and login items registered for autocomplete.
- [ ] On app quit/disable: stop server and unregister hotkeys/listeners.
- [ ] Add cleanup on uninstall script / pkg uninstall hook (per platform).
- [ ] Document manual cleanup steps for affected users until fix ships.
- [ ] Add regression test or checklist for install → enable → uninstall → no orphan process.
Acceptance criteria
- [ ] After uninstall, no OpenHuman autocomplete process remains running.
- [ ] Disabling autocomplete stops background work immediately.
- [ ] Install/uninstall hooks documented and verified on macOS (and others if applicable).
Resolved by #460 (graceful shutdown handler for autocomplete engine and Swift overlay helper) + #495 (SIGTERM before SIGKILL on sidecar shutdown so cleanup hooks actually run). Background helper processes are now properly terminated on app exit.