Skip to content

CLI sync remote-graphs unnecessarily requires an existing local graph #1056

Description

@JaredStemper

Search first

  • I searched open and closed issues and found no report for this command requirement.

What happened?

sync remote-graphs is an account-level listing operation, but the CLI requires an existing local graph and db-worker context.

Running the command without --graph returns:

{
  "status": "error",
  "error": {
    "code": "missing-graph",
    "message": "graph name is required",
    "hint": "Use --graph <name>"
  }
}

The workaround is to create or select an unrelated local graph and pass it only so the CLI can start a worker. That local graph must not use the same name as a remote graph intended for download, because the name collision then blocks download.

Reproduce

  1. Configure valid authentication and sync endpoints.
  2. Ensure no default graph is set.
  3. Run logseq --output json sync remote-graphs.
  4. Run the same command with an unrelated local graph and observe that the remote account graph list is returned.

Expected behavior

sync remote-graphs should require only authentication and sync configuration. It should use a global or temporary runtime rather than require an unrelated local graph.

Platform

  • Current CLI repository build
  • macOS arm64

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