File/directory links with parens don't work #1110

Closed
opened 2026-02-16 17:29:29 -05:00 by yindo · 6 comments
Owner

Originally created by @jakeleventhal on GitHub (Aug 4, 2025).

Originally assigned to: @adamdotdevin on GitHub.

When @ mentioning files or folders with parentheses (i.e. any Next.js organizational folder like src/app/(dashboard)/page.tsx), an error is thrown. Saw this was similar to #797 but I think slightly different/more narrow scope in this issue.

Image
Originally created by @jakeleventhal on GitHub (Aug 4, 2025). Originally assigned to: @adamdotdevin on GitHub. When `@` mentioning files or folders with parentheses (i.e. any Next.js organizational folder like `src/app/(dashboard)/page.tsx`), an error is thrown. Saw this was similar to #797 but I think slightly different/more narrow scope in this issue. <img width="447" height="211" alt="Image" src="https://github.com/user-attachments/assets/f2d7b755-3d94-4cd3-9dcb-c2653e187da9" />
yindo closed this issue 2026-02-16 17:29:29 -05:00
Author
Owner

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

What version are you on? I cannot replicate:
https://opencode.ai/s/nwMAFLoC

@rekram1-node commented on GitHub (Aug 4, 2025): What version are you on? I cannot replicate: https://opencode.ai/s/nwMAFLoC
Author
Owner

@jakeleventhal commented on GitHub (Aug 5, 2025):

Very strange. I opened the issue on v0.3.126. This morning I just tried reproducing and could not. I even entered the same session and couldn't reproduce it. Then I updated to v0.3.130, started a new session and couldn't reproduce it, then revisited the same failing session and couldn't reproduce it.

I'd say let's close the issue but clearly the bug was occurring and changelog suggests no meaningful change here between those versions.

I'm 100% certain the error occurred on v0.3.126 since I didn't even download opencode until yesterday.

@jakeleventhal commented on GitHub (Aug 5, 2025): Very strange. I opened the issue on `v0.3.126`. This morning I just tried reproducing and could not. I even entered the same session and couldn't reproduce it. Then I updated to `v0.3.130`, started a new session and couldn't reproduce it, then revisited the same failing session and couldn't reproduce it. I'd say let's close the issue but clearly the bug was occurring and changelog suggests no meaningful change here between those versions. I'm 100% certain the error occurred on `v0.3.126` since I didn't even download opencode until yesterday.
Author
Owner

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

very odd, thanks for the detailed response! Seems like there may be a separate issue at hand then, I will continue to try to replicate

@rekram1-node commented on GitHub (Aug 5, 2025): very odd, thanks for the detailed response! Seems like there may be a separate issue at hand then, I will continue to try to replicate
Author
Owner

@jayair commented on GitHub (Aug 8, 2025):

Closing

@jayair commented on GitHub (Aug 8, 2025): Closing
Author
Owner

@jakeleventhal commented on GitHub (Aug 23, 2025):

@jayair @rekram1-node Noticed this similarly when i pasted in a directory path. It auto-prefixed it with the @ tag and then said file not found

@jakeleventhal commented on GitHub (Aug 23, 2025): @jayair @rekram1-node Noticed this similarly when i pasted in a directory path. It auto-prefixed it with the @ tag and then said file not found
Author
Owner

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

yeah we need to add directory support there is a separate ticket for that

@rekram1-node commented on GitHub (Aug 23, 2025): yeah we need to add directory support there is a separate ticket for that
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1110