Skip to content

refactor: move IDE selection to inline dropdown in Folder view (#1254)#1261

Open
eureka928 wants to merge 3 commits intoeigent-ai:mainfrom
eureka928:refactor/open-agent-folder-workflow
Open

refactor: move IDE selection to inline dropdown in Folder view (#1254)#1261
eureka928 wants to merge 3 commits intoeigent-ai:mainfrom
eureka928:refactor/open-agent-folder-workflow

Conversation

@eureka928
Copy link
Contributor

Description

Closes #1254 — The "Open in IDE" feature (PR #1159) currently splits the action across two disconnected places: a "Preferred IDE" dropdown in Settings → General and a terminal icon button in the Folder view header. This is hard to discover and adds unnecessary friction.

This PR moves IDE selection to the point of action by replacing the single icon button with an inline DropdownMenu that offers three options directly: "Open in VS Code", "Open in Cursor", and "Open in File Manager". The last choice is remembered via authStore.setPreferredIDE(). The now-redundant Settings section is removed.

Key Changes:

src/components/Folder/index.tsx:

  • Replaced the single <Button> with a <DropdownMenu> using the same terminal icon as trigger
  • Extracted inline onClick handler into handleOpenInIDE(ide) function
  • 3 menu items each immediately open the folder with the selected IDE
  • On success, persists the choice via authStore.setPreferredIDE(ide)

src/pages/Setting/General.tsx:

  • Removed the entire "Preferred IDE" settings card (Select dropdown with VS Code / Cursor / System File Manager)

src/i18n/locales/*/chat.json (11 locales):

  • Added open-in-vscode, open-in-cursor, open-in-file-manager keys with translations

src/i18n/locales/*/setting.json (11 locales):

  • Removed obsolete preferred-ide, preferred-ide-description, system-file-manager keys

No changes needed:

  • src/store/authStore.tspreferredIDE + persistence kept (still used to remember last choice)
  • electron/main/index.ts — IPC handlers unchanged
  • electron/preload/index.ts — Preload bridge unchanged

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Move IDE selection to the point of action via a dropdown menu on the
terminal icon button, offering "Open in VS Code", "Open in Cursor",
and "Open in File Manager" options. Remembers last choice via authStore.
The IDE selection is now handled inline in the Folder view dropdown,
making this settings section redundant.
Add open-in-vscode, open-in-cursor, open-in-file-manager keys to
chat.json across all 11 locales. Remove obsolete preferred-ide,
preferred-ide-description, and system-file-manager keys from setting.json.
@bytecii
Copy link
Collaborator

bytecii commented Feb 13, 2026

Can you add a short video or snapshot for your PR? Thanks.

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.

[Feature Request] Refactor "Open Agent Folder" workflow

2 participants