Skip to content

fix: handle absolute paths correctly in drag & drop file attachments (#1330)#1352

Closed
tleo19 wants to merge 1 commit into
anomalyco:devfrom
tleo19:fix/drag-drop-absolute-path-1330
Closed

fix: handle absolute paths correctly in drag & drop file attachments (#1330)#1352
tleo19 wants to merge 1 commit into
anomalyco:devfrom
tleo19:fix/drag-drop-absolute-path-1330

Conversation

@tleo19

@tleo19 tleo19 commented Jul 27, 2025

Copy link
Copy Markdown

Summary

  • Fixes issue where drag & drop of files from outside the working directory results in ENOENT error
  • The server was incorrectly joining absolute paths with the cwd, creating invalid double paths like /cwd/path/Users/username/Desktop/file.txt

Changes

  • Added a check in session/index.ts to detect if the pathname is already absolute
  • If absolute, use the path directly without joining with cwd
  • If relative, continue with the existing logic

Test plan

  • Tested locally by dragging a file from Desktop into opencode
  • Verified the file attachment works correctly without ENOENT errors
  • Existing relative path functionality remains unchanged

Fixes #1330

@adamdotdevin

Copy link
Copy Markdown
Member

i believe this is resolved with #1335

@tleo19

tleo19 commented Jul 27, 2025

Copy link
Copy Markdown
Author

i believe this is resolved with #1335

nice, i will close this then.

@tleo19 tleo19 closed this Jul 27, 2025
bussard76 pushed a commit to bussard76/openwork that referenced this pull request May 12, 2026
…yco#1352)

* feat(docs): add changelog page generated from release tracker

Add a script (scripts/generate-changelog.mjs) that parses
changelog/release-tracker.md and generates a minimalistic
changelog.mdx for the Mintlify docs. Each entry shows the date,
a tag (New/Improved/Adjusted/Misc), and either a one-liner (minor)
or bullet points (major). Version headings link to GitHub compare
URLs derived from consecutive versions.

* fix(docs): use Mintlify Update components and href tab for changelog

Switch changelog.mdx to use Mintlify's built-in <Update> component
with label, description, and tags props. Fix the tab config to use
href instead of pages.

* fix(docs): move changelog from tab to sidebar group

Place changelog as a grouped section in the sidebar navigation
instead of a separate tab that was causing redirect issues.

* fix(docs): plain version in description, link in body

The description prop renders as plain text in Mintlify, so markdown
links showed raw. Move version to plain description and put the
compare link as a "View changes" link inside the Update body.

* fix(docs): version as heading, multiple tags, Mintlify conventions

Use version as ## heading inside each Update body, support multiple
tags (New releases, Improvements, Deprecations), indent content
2 spaces per Mintlify convention, remove description prop.

* fix(docs): update changelog tags with emojis and new names

Tags are now: 🚀 New Features, 🐛 Bug Fixes, 🏗️ Refactoring

* feat(docs): group changelog entries by date

Merge same-day releases into a single Update block. Tags are
unioned across versions, Misc is dropped when real tags exist.
Each version remains as an ## heading within the grouped day.
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.

bug: drag & drop text file results in error

2 participants