Skip to content

Fix hotkey, launch agent, OpenAI, hide dock icon#1

Open
gititya wants to merge 1 commit into
mainfrom
session/2026-05-31-hotkey-launch-agent
Open

Fix hotkey, launch agent, OpenAI, hide dock icon#1
gititya wants to merge 1 commit into
mainfrom
session/2026-05-31-hotkey-launch-agent

Conversation

@gititya

@gititya gititya commented May 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaced pynput with NSEvent global monitor — pynput silently fails on macOS even with Accessibility granted
  • Hotkey: right ⌘ hold-to-record, release-to-process (replaces broken ⌥/)
  • LLM: switched to OpenAI gpt-4o-mini (key from macOS Keychain); Ollama auto-starts as fallback
  • UI: menu icon ⚡, no Python dock icon
  • Launch agent at ~/Library/LaunchAgents/com.aditya.flinch.plist — starts on login

Pending

  • Keychain permission prompts when running as launch agent — need to grant ACL to venv Python binary or user clicks "Always Allow"

🤖 Generated with Claude Code

- Replaced pynput keyboard listener with NSEvent global monitor (pynput
  silently fails on macOS even with Accessibility granted)
- Hotkey changed from ⌥/ to right ⌘ hold-to-record / release-to-process
- Switched default LLM from Ollama gemma3:4b to OpenAI gpt-4o-mini;
  key read from macOS Keychain (service=OPENAI_API_KEY, account=mars)
- Added _ensure_ollama() to auto-start Ollama if needed (fallback path)
- Menu icon changed from 🦆 to ⚡
- Dock icon hidden via NSApplicationActivationPolicyAccessory
- Created ~/Library/LaunchAgents/com.aditya.flinch.plist for login startup
- Pending: fix Keychain permission prompts when running as launch agent

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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