Skip to content

memory: merged foreign sessions are invisible to project-scoped search — add merge --remap-project and/or search --project #247

Closed

Description

@sandstream

Problem

kit memory merge <file> imports another machine's sessions keyed by THEIR project path.
A session merged from an ephemeral container lands under e.g. -home-user, so a
project-scoped kit memory search (the default, scoped to cwd) never surfaces it. The
merge succeeds, the push succeeds — but the knowledge is silently unreachable from the
project it actually concerns. A quiet variant of the false-green pattern: "merged" reads
as "available", which is only true if you know to query the foreign project key.

Real case: an ephemeral Claude Code session did kit work (#232–#246) in a container at
/home/user; its exported memory.db merged fine (9,040 messages) but is invisible from
the kit/kiosken project scopes where that work is relevant.

Proposal

  1. kit memory merge <file> --remap-project <path> — rewrite the imported sessions'
    project key to the given project so they join the scope they belong to.
  2. kit memory search --project <path> (and/or --all) — explicit cross-project search
    so foreign-keyed sessions are reachable without remapping.
  3. Merge summary should list the project keys it imported under ("1 session under
    -home-user — not your current project; use --remap-project to rehome"), so the
    scope mismatch is loud at merge time.

🤖 Generated with Claude Code

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