Skip to content

fix(claude-ops): plugins sync report drops the ask install gap after zero picks #5635

Closed

Description

@kyle-sexton

Problem

/claude-ops:plugins sync with install_new: ask stops before Step 4 with a non-empty install_gap and lists the gap under Action needed. When the user picks nothing and the skill re-enters with --only-install "" (documented as legal at plugins/claude-ops/skills/plugins/SKILL.md:135, "install nothing, still complete Step 5"), the final report, which "supersedes the first one", has three defects:

  1. The gap vanishes. The digest still carries a non-empty install_gap, stopped_before_install: false, installed: [], install_new: "ask". The install-gap bullet in render-report.jq:202-208 fires only for stopped_before_install == true, a deferred refresh, or install_new == "none" / audit-mode ask. None match, so the not-installed plugins are not named anywhere in the report.
  2. The status line is unexplained. $needs (render-report.jq:62) is true when install_gap is non-empty and nothing installed, so line 68 prints Marketplace: <name>: needs update even when the source is 0 behind and nothing was updated or withheld. With defect 1 there is no bullet explaining that status.
  3. No rule for a dismissed prompt. SKILL.md step 3 and context/sync-install-enable.md:55-56 ("present every entry in one batched AskUserQuestion multi-select, then install each the user picks") do not say what to do when the multi-select is dismissed or returns no answer. The reporting session guessed "re-enter with an empty list".

Evidence

Verified on origin/main 4ed0fcf5a (claude-ops 0.77.3; reported against 0.62.6):

  • Read plugins/claude-ops/skills/plugins/scripts/render-report.jq lines 40-68 and 195-239: the $needs expression and the Action needed install-gap branches are as described.
  • Read SKILL.md lines 115-140 and context/sync-install-enable.md lines 50-75: empty-list re-entry is documented, a dismissed prompt is not.
  • Existing render fixtures under scripts/fixtures/render/ include ask-stopped-before-install.txt and ask-reentry-installed.txt (a re-entry that installed one plugin). There is no fixture for a re-entry that installed nothing.
  • Issue search (plugins sync install_gap ask, claude-ops sync render report needs update) finds no open or closed issue for this.

Reported, not reproduced here: the reporter's run journal (a user-scope data path) showed the post-re-entry digest fields above. The render logic alone is enough to show the gap is dropped for that digest shape.

Proposed approach

  1. In render-report.jq, add an Action needed branch for a sync-mode (not audit) ask run where install_gap is non-empty, stopped_before_install is false, and nothing from the gap installed, for example: N catalog plugin(s) offered and not installed (policy ask): a, b, c; ask offers them again on every sync unless they are disabled with enabledPlugins: false. Also cover a partial pick (the gap minus the ids installed).
  2. Make every $needs condition have a matching Action needed bullet, or word the status per cause (for example N catalog plugin(s) not installed). Prefer the first: add a test that, for each disjunct of $needs, a digest satisfying only that disjunct renders at least one Action needed bullet.
  3. In SKILL.md step 3 and context/sync-install-enable.md Step 4, state that a dismissed or unanswered multi-select means re-enter with an empty id list (complete Step 5), and that the report then shows the declined gap per step 1.

Alternative: leave the run stopped on a dismissed prompt. Rejected by default because Step 5 (enable) work is then skipped for no reason; the maintainer may choose otherwise.

Files: plugins/claude-ops/skills/plugins/scripts/render-report.jq, scripts/fixtures/render/ (new fixture), scripts/sync-run.test.sh, SKILL.md, context/sync-install-enable.md, claude-ops plugin.json + CHANGELOG.md.

Acceptance criteria

  • A new golden fixture (for example scripts/fixtures/render/ask-reentry-none-picked.txt) renders the declined gap under Action needed, naming each plugin.
  • A partial-pick digest renders only the not-installed remainder.
  • A test asserts that each $needs disjunct produces at least one Action needed bullet.
  • SKILL.md and context/sync-install-enable.md state the dismissed-prompt rule.
  • scripts/sync-run.test.sh passes.
  • claude-ops version bumped with a CHANGELOG entry.

Constraints and gotchas

  • Audit mode already has its own ask branch at line 206; do not change audit output.
  • The stopped_before_install wording at line 203 is for the first pass and should stay distinct from the post-re-entry wording.
  • Keep the "declining does not stick" note accurate: under ask, the only persistent opt-out is enabledPlugins: false (see context/sync-install-enable.md caveat around line 66).

Context

Source: local handoff item 20260929-130526-claude-ops-plugins-sync-ask-reentry-render.md (retired into this issue). Related: #4456 (directory-source behind status, closed), #3728.

Activity

  1. added
    agent-ready
    on Sep 30, 2026
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

    agent-ready

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions