Skip to content

Dashboard: cannot filter memories or add sessions for non-git directories #160

@hille721

Description

@hille721

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

  1. Memory project filter should list all projects — both git-scoped and directory-hash-scoped.
  2. Workspace picker should allow sessions from non-git directories.

Reproduction

  1. Start OpenCode in a non-git directory (e.g., )
  2. Run a session long enough for memories to be created
  3. Open the dashboard → memories → project filter: the project is missing
  4. Try to add the session to a workspace: it's not selectable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions