openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

[Bug] Autocomplete / background helper still runs after OpenHuman is deleted

Open Al629176 opened this issue 7 months ago • 1 comments

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

  1. Enable Text Auto-Complete / autocomplete server in OpenHuman.
  2. Use autocomplete at least once.
  3. Quit app and delete OpenHuman (Trash / uninstaller).
  4. 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).

Al629176 avatar Apr 10 '26 05:04 Al629176

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.

oxoxDev avatar Apr 13 '26 07:04 oxoxDev