opencode
opencode copied to clipboard
How to make opencode treat a directory as Project?
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.
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.
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.