Skip to content

Support directory selection in "Link File" attachment action#466

Draft
Copilot wants to merge 3 commits intodevelopfrom
copilot/enable-directory-attachment-preview
Draft

Support directory selection in "Link File" attachment action#466
Copilot wants to merge 3 commits intodevelopfrom
copilot/enable-directory-attachment-preview

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

  • Add open-path action registration in app.ts (Electron shell.openPath)
  • Add POST /api/open-path endpoint in server/index.ts: does fs.stat, opens if dir, returns { isDirectory }
  • Add openPathInOS(path) to renderer/support/api.ts
  • Replace isDirectory() in renderer/services/base.ts with openPathInOS() wrapping the new API
  • Update markdown-link/index.ts to call openPathInOS() (single API call), handle errors with .catch()
  • Remove isDirectory() RPC helper entirely

Agent-Logs-Url: https://github.com/purocean/yn/sessions/29b85dce-b64c-4ca3-8372-0fc35ba50143

Co-authored-by: purocean <7115690+purocean@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yn Ready Ready Preview, Comment Apr 4, 2026 6:25am
yn-api-doc Ready Ready Preview, Comment Apr 4, 2026 6:25am

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.

2 participants