Skip to content

config/skill-edit: YAML comment & ordering loss in skill select list; 'global: yes' produces duplicate entries #271

Description

@gmoigneu

Summary

Two YAML-editing bugs in internal/config/skill_install_edit.go.

Items

  1. Select-list comment/order loss. mergeSkillSelect (:180-185) does selectNode.Content = selectNode.Content[:0] then rebuilds sorted scalar nodes — dropping per-item comments (- alpha # pinned) and user ordering. This is the one real comment-loss path in the otherwise round-trip-safe YAML editor.
  2. global: yes duplicate. boolValue (:270-277) uses strconv.ParseBool, which fails on yes, while yaml.v3 decodes global: yes to true. So skillNodeIdentityMatches (:143) never matches a hand-written global: yes entry against a Global: true install → gaal skill install appends a duplicate entry each run.

Suggested fix

Merge into the existing select list in place (preserve comments/order); accept YAML boolean spellings in boolValue.


Surfaced by an automated full-repository review. Filed for triage — not yet verified against product intent. Line numbers reference main at review time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority / nice to havebugSomething isn't workingtriageSurfaced by review, needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions