Skip to content

cli: sessions import --project-path . refuses a registered project #2241

Description

@ScriptedAlchemy

Defect

tracedecay sessions import --project-path . from inside an initialized, registered project answers Error: config error: registered project not found for selector. The same command with the absolute path (--project-path "$PWD") is accepted and schedules the import.

Reproduction (master 0351078, perf+hotpath build, isolated HOME)

  1. tracedecay daemon run under an isolated HOME/TRACEDECAY_DATA_DIR/TRACEDECAY_DAEMON_SOCKET.
  2. cd <repo clone> && tracedecay init (the project registers; tracedecay status reports it).
  3. tracedecay sessions import --project-path . → Error: config error: registered project not found for selector.
  4. tracedecay sessions import --project-path "$PWD" → accepted (reports the background operation id).

The selector is apparently matched against registered roots without being resolved against the working directory first.

Found while seeding sessions for the dashboard journeys in #2239.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions