anomalyco / anomalyco/opencode

BUG LLM fails when opening opencode in a large project directory; switching to an empty folder then back fixes it

Open
#38,415 0 comments 0 reactions 1 assignee View on GitHub

@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:

  1. Start opencode inside a large project directory (e.g., /mnt/d/WorkSpaces/rmmicroservice – a Java Maven multi-module project)
  2. LLM calls fail or do not respond properly
  3. Switch to an empty folder (e.g., /mnt/d/workSpaceAgent) – LLM works normally
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.