opencode icon indicating copy to clipboard operation
opencode copied to clipboard

How to make opencode treat a directory as Project?

Open BinaryCheater opened this issue 10 months ago • 2 comments

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.

BinaryCheater avatar Jan 21 '26 10:01 BinaryCheater

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] avatar Jan 21 '26 10:01 github-actions[bot]

To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

github-actions[bot] avatar Mar 28 '26 03:03 github-actions[bot]