Skip to content

Project groups in the session manager show the worktree folder, not the repository #203

Closed

Description

@kobzevvv

Problem

The session manager groups sessions by project (#199/#200). The group label comes from the basename of the project's canonical directory.

A project canonical directory is a worktree, and worktrees are named after whatever the session needed, so a repository shows up under a label like session-smotri-po-nashemu-proektu-s-20261010-145111 instead of opencode-mem.

Proposal

Derive the project display name from the repository remote, which already identifies the project:

  • https://github.com/gpt-mem/opencode-mem.git -> opencode-mem
  • git@github.com:owner/repo.git -> repo

Store it on the project the first time the project is seen, filling only an empty column, so a name the user set by hand is never overwritten. Projects stored before the change get the name on their next resolve, which announces the update so open clients refresh the label.

Acceptance

  • A project resolved from a repository with a remote carries the repository name.
  • A name set through Project.update survives later resolves.
  • The session manager groups by that name.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions