anomalyco / anomalyco/opencode
BUG LLM fails when opening opencode in a large project directory; switching to an empty folder then back fixes it
Open
@rekram1-node is already working on this.
Since Jul 23, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Environment: Linux (WSL2), opencode
Steps to reproduce:
- Start opencode inside a large project directory (e.g., /mnt/d/WorkSpaces/rmmicroservice – a Java Maven multi-module project)
- LLM calls fail or do not respond properly
- Switch to an empty folder (e.g., /mnt/d/workSpaceAgent) – LLM works normally
- Manually cd back to the large project folder from the empty folder – LLM remains functional
Expected behavior: Opening opencode directly in a large project directory should work without needing to switch folders
Actual behavior: LLM is inaccessible in the large project directory until you first open opencode in an empty folder and then navigate back
Plugins
No response
OpenCode version
1.18.4
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.