Skip to content

fix(sync): targets sharing a skills folder with different naming or mode aren't reported as a conflict #498

Closed

Description

@runkids

Two targets that sync skills into the same folder with different target_naming (or different mode) undo each other on every sync, but skillshare doesn't report them as a conflict.

SkillsFolderConflicts (internal/config/path_overlap.go) only flags a shared folder when sameSkillsSettings returns false, and sameSkillsSettings compares only include and exclude. So sync and doctor fall back to the generic "targets share skill folders" hint instead of the "each sync undoes the other" warning with the command to keep one.

Repro (merge mode, one nested skill frontend/dev):

targets:
  aflat:
    skills: { path: <shared>, mode: merge, target_naming: flat }
  bstd:
    skills: { path: <shared>, mode: merge, target_naming: standard }
  • sync 1: aflat links frontend__dev, then bstd migrates it to dev.
  • sync 2: backup is taken, aflat reports 1 linked · 1 pruned, bstd migrates again.
  • Both syncs and doctor show only the generic shared-path hint.

Fix: compare Mode and TargetNaming (using the effective naming, so an unset value equals the global default) in sameSkillsSettings, and add the cases to path_overlap_test.go.

Found while reviewing #497, which would add a third naming value.

Activity

  1. added
    bug
    on Oct 8, 2026
  2. self-assigned this
    on Oct 8, 2026
  3. added a commit that references this issue on Oct 10, 2026
    366fb23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions