OpenCode don't work on it's own folder without using itself. #3668

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

Originally created by @tebayoso on GitHub (Dec 19, 2025).

Originally assigned to: @rekram1-node on GitHub.

Question

This is weird, but when I cloned the repo, and I wanted to use opencode from within repo, looks like opencode (😔) detects some content that makes him crash.
Is this intended? Should it be fixed?

https://github.com/user-attachments/assets/ea35f8b9-d370-46c1-a168-169e84dbde31

Originally created by @tebayoso on GitHub (Dec 19, 2025). Originally assigned to: @rekram1-node on GitHub. ### Question This is weird, but when I cloned the repo, and I wanted to use opencode from within repo, looks like opencode (😔) detects some content that makes him crash. Is this intended? Should it be fixed? https://github.com/user-attachments/assets/ea35f8b9-d370-46c1-a168-169e84dbde31
yindo closed this issue 2026-02-16 17:41:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2025):

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

  • #2304: OC fails with socket connection error when operating in a directory with a .git folder
  • #2365: Not work in a git project, but normal work in a not git dir
  • #3922: bun dev: starts in packages/opencode directory (related working directory detection issue)

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

@github-actions[bot] commented on GitHub (Dec 19, 2025): This issue might be a duplicate of existing issues. Please check: - #2304: OC fails with socket connection error when operating in a directory with a .git folder - #2365: Not work in a git project, but normal work in a not git dir - #3922: bun dev: starts in packages/opencode directory (related working directory detection issue) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 19, 2025):

We have a custom tool that has deps which means u gotta do a bun i then do opencode ... ill just switch it to use a fetch to alleviate this issue

@rekram1-node commented on GitHub (Dec 19, 2025): We have a custom tool that has deps which means u gotta do a `bun i` then do `opencode ...` ill just switch it to use a fetch to alleviate this issue
Author
Owner

@rekram1-node commented on GitHub (Dec 19, 2025):

i changed it to use native fetch so no dep needed now

@rekram1-node commented on GitHub (Dec 19, 2025): i changed it to use native fetch so no dep needed now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3668