Pasting in a relative path to a folder results in an error #1529

Closed
opened 2026-02-16 17:31:24 -05:00 by yindo · 3 comments
Owner

Originally created by @roderik on GitHub (Aug 29, 2025).

Originally assigned to: @thdxr on GitHub.

I use Cursor to copy a relative path to a folder and type:

in this folder change x and y + cmd-v of the folder path

This gets added as a colored @path (like a file)

Sending the prompt gives an error popup.

If the relative path is to a file, it does work.
Claude Code can handle the above scenario.

Options:

  • it should @ tag it and it should work
  • it should not @ tag it, which would also make it work
Originally created by @roderik on GitHub (Aug 29, 2025). Originally assigned to: @thdxr on GitHub. I use Cursor to copy a relative path to a folder and type: `in this folder change x and y ` + cmd-v of the folder path This gets added as a colored @path (like a file) Sending the prompt gives an error popup. If the relative path is to a file, it does work. Claude Code can handle the above scenario. Options: - it should @ tag it and it should work - it should not @ tag it, which would also make it work
yindo closed this issue 2026-02-16 17:31:24 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 29, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2261: Describes the same core problem where @ symbols that don't resolve to files cause command failure. The issue was about OpenCode blindly trying to map any @ ref into a file without checking if the path actually resolves to a valid file.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 29, 2025): This issue might be a duplicate of existing issues. Please check: - #2261: Describes the same core problem where @ symbols that don't resolve to files cause command failure. The issue was about OpenCode blindly trying to map any `@` ref into a file without checking if the path actually resolves to a valid file. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 29, 2025):

Yeah I think adding proper @ support for directories would be good

@rekram1-node commented on GitHub (Aug 29, 2025): Yeah I think adding proper @ support for directories would be good
Author
Owner

@rekram1-node commented on GitHub (Oct 1, 2025):

should work now

@rekram1-node commented on GitHub (Oct 1, 2025): should work now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1529