Skip to content

emacs-app (Homebrew) windows not detected — window_count: 0 despite app running #313

@japhir

Description

@japhir

Describe the bug

Rift does not detect any windows for emacs-app (installed via Homebrew cask). rift-cli query applications shows the app running with
window_count: 0 even when Emacs has a visible frame open. As a result, Rift cannot tile, float, or manage the window in any way — keybinds
like toggle_window_floating have no effect when Emacs is focused.

To reproduce

  1. Install emacs-app via Homebrew: brew install --cask emacs-app
  2. Grant Rift accessibility permissions in System Settings → Privacy & Security → Accessibility
  3. Launch Emacs: a frame should be visible
  4. Run rift-cli query applications and observe window_count: 0 for org.gnu.Emacs
  5. Focus the Emacs window and attempt any Rift keybind (e.g. toggle_window_floating). no effect

Expected behavior

Rift detects and manages Emacs windows like any other Cocoa app.

Actual behavior

{"bundle_id": "org.gnu.Emacs", "name": "Emacs", "window_count": 0}

App rule { app_id = "org.gnu.Emacs", floating = false, manage = true } has no effect.

Environment

  • macOS: 26.3.1 (Build 25D771280a)
  • Emacs: emacs-app 30.2-1 (bundle ID: org.gnu.Emacs)
  • rift-cli query metrics: windows_managed: 7 (other apps managed correctly)

Additional context

Also tested with railwaycat/emacsmacport/emacs-mac — same result. Issue persists after reboot and re-granting accessibility permissions.
Other apps (Ghostty, Firefox) are detected and managed correctly.

Note that I had an LLM write the issue to quickly make it reproducible, but a human is having this issue ;-).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions