Skip to content

feat: add file menu actions for agent/workspace workflows#142

Merged
Dimillian merged 4 commits intomainfrom
codex/add-features-to-file-menu
Jan 20, 2026
Merged

feat: add file menu actions for agent/workspace workflows#142
Dimillian merged 4 commits intomainfrom
codex/add-features-to-file-menu

Conversation

@Dimillian
Copy link
Owner

Motivation

  • Expand the File menu so users can create agents and workspaces from the app menu instead of only closing the window.
  • Reuse existing frontend handlers for agent/worktree/clone/workspace flows so menu actions follow the same behavior as UI shortcuts.
  • Emit menu events from the Tauri backend so the frontend can subscribe and react in a platform-appropriate way.

Description

  • Added new File menu items in src-tauri/src/lib.rs for New Agent, New Worktree Agent, New Clone Agent, Add Workspace..., and Settings..., and emit corresponding events (menu-new-agent, menu-new-worktree-agent, menu-new-clone-agent, menu-add-workspace, menu-open-settings).
  • Added subscription helpers in src/services/events.ts (subscribeMenuNewAgent, subscribeMenuNewWorktreeAgent, subscribeMenuNewCloneAgent, subscribeMenuAddWorkspace, subscribeMenuOpenSettings) that listen for the emitted menu events.
  • Updated src/App.tsx to import the new subscriptions, refactored the existing add-agent/add-worktree/add-clone/add-workspace handlers to useCallback, and subscribed to the new menu events to invoke the existing flows (handleAddAgent, handleAddWorktreeAgent, handleAddCloneAgent, handleAddWorkspace, handleOpenSettings).
  • Ensured the existing CMD+N/new-agent shortcut continues to call the unified handleAddAgent handler so keyboard and menu actions are consistent.

Testing

  • Ran npm run lint which completed but produced a TypeScript version warning about the installed TypeScript being newer than the supported range.
  • Ran npm run typecheck and fixed type issues; tsc --noEmit completed successfully.
  • No new automated unit tests were added for the menu wiring in this change.

Codex Task

@Dimillian Dimillian changed the title Add file menu actions for agent/workspace workflows feat: add file menu actions for agent/workspace workflows Jan 20, 2026
@Dimillian Dimillian merged commit a1eb35e into main Jan 20, 2026
5 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant