Skip to content

CLI diff does not list orphan links in merge mode #940

Closed

Description

@runkids

In merge mode, skillshare diff never lists a link that sync is about to prune. The dashboard's Sync page does.

collectMergeDiff (cmd/skillshare/diff.go:767) records links only to know which skills are already linked. Its "local only" loop skips them, and nothing calls sync.OrphanLink.

Steps

  1. Sync a skill to a merge-mode target.
  2. Delete the skill from the source.
  3. Run skillshare diff.

Expected: the link is listed as an orphan that sync will remove, as copy mode lists "orphan (will be pruned)".
Actual: nothing is listed. skillshare sync then removes the link.

Call sync.OrphanLink for each link that no source skill maps to, and list it when RemoveReason is set.

Activity

  1. added
    bug
    sync
    on Nov 17, 2026
  2. added a commit that references this issue on Nov 17, 2026
    7af9224
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

    bugsync

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions