Skip to content

maple-agent: add macOS Hide, Hide Others, and Show All - #1014

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-agent-hide-maple
Sep 23, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-agent-hide-maple

Conversation

@maple-engineering

@maple-engineering maple-engineering Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the standard macOS application-menu hide commands to maple-agent, matching Apple's reserved shortcuts, v1 Maple, and Zed:

  • Hide Maple (⌘H)
  • Hide Others (⌥⌘H)
  • Show All (no reserved key equivalent)

Handlers are macOS-only and call GPUI's hide / hide_other_apps / unhide_other_apps, which map to NSApplication. The shortcut catalog includes Hide and Hide Others only on macOS, so Ctrl+H on Linux/Windows is unchanged. About and Check for Updates stay out of scope.

Windows and Linux have no equivalent application-menu pattern; GPUI's hide APIs are no-ops there (and hide_other_apps would panic on Windows). Those platforms are intentionally unchanged.

Fixes #1013

Test plan

  • just ci in apps/maple-agent
  • On a Mac: Hide Maple (⌘H and the menu item) hides the app
  • Hide Others (⌥⌘H) hides other apps
  • Show All unhides them
  • Confirm Linux/Windows menus and Ctrl+H are unchanged

The Maple menu now includes the standard macOS hide commands. Hide Maple
is ⌘H, Hide Others is ⌥⌘H, and Show All has no reserved key. The
handlers call GPUI's NSApplication hide APIs, matching v1 Maple and
Zed. Linux and Windows catalogs omit these slots.

Fixes #1013
@maple-engineering
maple-engineering Bot marked this pull request as draft September 23, 2026 16:34
@marksftw

Copy link
Copy Markdown
Collaborator

tested on macOS. All three new menu items work correctly.

@maple-engineering
maple-engineering Bot marked this pull request as ready for review September 23, 2026 16:46

@AnthonyRonning AnthonyRonning left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 6fd3f56. Small, correctly cfg-gated change: Hide/Hide Others/Show All only on macOS, no conflicting cmd-h / alt-cmd-h bindings in the catalog, other platforms' catalogs and menus unchanged (asserted by tests), CI green on macOS/Linux/Windows, and manually verified on macOS by @marksftw. LGTM.

@AnthonyRonning
AnthonyRonning merged commit 8b7ca90 into master Sep 23, 2026
22 checks passed
@marksftw
marksftw deleted the codex-agent-hide-maple branch September 23, 2026 18:29
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.

maple-agent: on macOS add support for standard application menu shortcuts

2 participants