How to make opencode treat a directory as Project? #7069

Open
opened 2026-02-16 18:06:04 -05:00 by yindo · 1 comment
Owner

Originally created by @BinaryCheater on GitHub (Jan 21, 2026).

Originally assigned to: @jayair on GitHub.

Question

I found ~/.local/share/opencode/storage/project dir, which includes several json file about projects.

But it not contains all the directories i ever used opencode in.

Many dir not included, i have no idea when opencode will treat a directory as project, /init or git or make a conversation? No answer from documents.

Maybe it's a bug.

Originally created by @BinaryCheater on GitHub (Jan 21, 2026). Originally assigned to: @jayair on GitHub. ### Question I found `~/.local/share/opencode/storage/project` dir, which includes several json file about projects. But it not contains all the directories i ever used opencode in. Many dir not included, i have no idea when opencode will treat a directory as project, /init or git or make a conversation? No answer from documents. Maybe it's a bug.
yindo added the docs label 2026-02-16 18:06:04 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 21, 2026):

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

  • #7066: Opencode can't tell what my work folder is - Describes similar confusion about project detection
  • #8538: Session lookup fails with NotFoundError when PTY spawned from non-git directory context - Related to project detection based on git repositories

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

@github-actions[bot] commented on GitHub (Jan 21, 2026): This issue might be a duplicate of existing issues. Please check: - #7066: Opencode can't tell what my work folder is - Describes similar confusion about project detection - #8538: Session lookup fails with NotFoundError when PTY spawned from non-git directory context - Related to project detection based on git repositories Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7069