You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Glob patterns with ~/ expansion don't work in instructions configuration #3289
ls -la ~/.config/opencode/rules/
total 24
drwxrwxr-x 2 user user 4096 Oct 19 20:10 ./
drwxrwxr-x 5 user user 4096 Oct 20 00:06 ../
lrwxrwxrwx 1 user user 72 Oct 19 17:03 mcp-list.md -> /home/user/dotfiles/dotfiles/dotconfig/config/opencode/rules/mcp-list.md
lrwxrwxrwx 1 user user 77 Oct 19 17:03 prog-example.-md -> /home/user/dotfiles/dotfiles/dotconfig/config/opencode/rules/prog-example.-md
lrwxrwxrwx 1 user user 81 Oct 19 20:10 prog-global-rules.md -> /home/user/dotfiles/dotfiles/dotconfig/config/opencode/rules/prog-global-rules.md
lrwxrwxrwx 1 user user 74 Oct 19 20:10 user-rules.md -> /home/user/dotfiles/dotfiles/dotconfig/config/opencode/rules/user-rules.md
This issue might be a duplicate of existing issues. Please check:
Interrupting a tool call breaks sending new messages #41: Feature suggestion: Optional tilde expansion support (~/path → /home/user/path) - This issue specifically discusses tilde expansion support for paths, which is directly related to glob patterns with ~/ not working in instructions configuration
Feel free to ignore if none of these address your specific case.
Strange. The problem is clearly present. however, I tried to run opencode on a clean Kubuntu and there was no such error. I think the problem is on my side. It is possible that my nvm may be misconfigured. So far, I do not know how to reproduce the error.
Activity
github-actions commentedon Oct 19, 2025
This issue might be a duplicate of existing issues. Please check:
~/path→/home/user/path) - This issue specifically discusses tilde expansion support for paths, which is directly related to glob patterns with~/not working in instructions configurationFeel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 19, 2025
will fix
rekram1-node commentedon Oct 19, 2025
@ZarionX5 I just tested this we definitely do expand the instructions, what makes you say they aren't expanded?
Did you restart opencode after updating your opencode.json?
I just tested with your example and your exact file names and I verified they are all read correctly
ZarionX5 commentedon Oct 20, 2025
Strange. The problem is clearly present. however, I tried to run
opencodeon a cleanKubuntuand there was no such error. I think the problem is on my side. It is possible that mynvmmay be misconfigured. So far, I do not know how to reproduce the error.rekram1-node commentedon Oct 20, 2025
no problem, lmk if u run into any other issues