Skip to content

fix(install): log skipped skills and agents - #886

Merged
runkids merged 1 commit into
mainfrom
runkids/install-log-skipped
Nov 13, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/install-log-skipped

Conversation

@runkids

@runkids runkids commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

Follow-up to #884 (#877).

What changed

  • install records the names it kept without --force in the operation log as skipped_skills. These are the same names --json reports in skipped.
  • The dashboard's install-from-config action records skipped_skills too. Before this change, its response counted the skills it kept, but the log named none of them. When it keeps nothing, it logs an empty list rather than null, which the dashboard's log page would print as "null".
  • ss log lists skipped items for install entries, in both the TTY and plain output.

Why

After #884, an install run with --json and without --force keeps existing skills and agents and names them in skipped. The operation log recorded only the installed and failed names, so it could not show what the install kept.

Verification

  • make check in the devcontainer passed: Go unit and integration tests, and the Herdr node tests (138 passed).
  • New tests, each seen failing before the fix:
    • TestInstall_JSON_ReportsKeptAgentsOfSkillRepo, in global and project mode: a repo with skills and an agent is reinstalled with --json. The locally edited agent is kept and named in skipped and in the oplog.
    • TestHandleInstallFromConfig_LogsSkippedSkills, plus an empty-list check in TestHandleInstallFromConfig_AllFailedLogsError
    • The skipped assertions added to TestFormatInstallLogDetail_IncludesInstalledSkills

Not run: Windows, and E2E runbooks.

Not covered

These problems exist on main today, and this change does not touch them:

  • Reinstalling a skill from the same repo is reported in failed, not in skipped, because checkExistingConflict reads only the legacy .skillshare-meta.json.
  • The dashboard's batch install logs an agent that already existed as installed.
  • ss search batch installs do not log skipped names.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section — left for the maintainer to confirm
  • I've reviewed every line of the diff and can explain it — left for the maintainer to confirm
  • Tests included and passing (make check) — for code changes
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

After #884, an install without --force keeps existing skills and agents
and names them in the --json skipped array, but the operation log
recorded only installed and failed names, so `ss log` could not show
what an install kept.

Record the kept names as skipped_skills for CLI installs and for the
dashboard's install-from-config action, and list them in `ss log`.
The config install starts with an empty list, so the dashboard log
shows no "null" when nothing was kept.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T13:38:22.929871Z a7bc9bd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids
runkids merged commit 51306f4 into main Nov 13, 2026
9 checks passed
@runkids
runkids deleted the runkids/install-log-skipped branch November 13, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant