Problem
When running OpenCode in a directory that is not a git repository, magic-context handles project scoping differently:
- Git projects: scoped by git root commit SHA
- Non-git directories: scoped by directory hash
The dashboard only surfaces git-scoped projects in the project picker:
1. Memory project filter only shows git projects
In the dashboard's memory view, the project filter dropdown only lists git-tracked projects. Memories from non-git sessions (e.g., a general session from ) are not selectable or viewable.
2. Workspace cannot include non-git sessions
The workspace picker doesn't allow adding sessions from non-git directories. Only git-tracked projects appear as options.
Expected behavior
- Memory project filter should list all projects — both git-scoped and directory-hash-scoped.
- Workspace picker should allow sessions from non-git directories.
Reproduction
- Start OpenCode in a non-git directory (e.g., )
- Run a session long enough for memories to be created
- Open the dashboard → memories → project filter: the project is missing
- Try to add the session to a workspace: it's not selectable
Problem
When running OpenCode in a directory that is not a git repository, magic-context handles project scoping differently:
The dashboard only surfaces git-scoped projects in the project picker:
1. Memory project filter only shows git projects
In the dashboard's memory view, the project filter dropdown only lists git-tracked projects. Memories from non-git sessions (e.g., a general session from ) are not selectable or viewable.
2. Workspace cannot include non-git sessions
The workspace picker doesn't allow adding sessions from non-git directories. Only git-tracked projects appear as options.
Expected behavior
Reproduction