Skip to content

fix: leave no dead ignore lines and re-enable skills disabled by name - #994

Merged
runkids merged 1 commit into
mainfrom
runkids/ignore-followups
Nov 23, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/ignore-followups

Conversation

@runkids

@runkids runkids commented Nov 23, 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

No issue. These are the remaining gaps from the ignore: and toggle fixes in #986–#993.

What was wrong

  1. A disable that a ! rule overrides left a dead line.
    • Example: .skillignore.local has !my-skill, and you run skillshare disable my-skill.
    • The command reported the skill as still enabled, but my-skill stayed in .skillignore.
    • The same happened from the list TUI and the dashboard.
  2. A skill disabled by its folder name could not be re-enabled from the list TUI or the dashboard.
    • skillshare disable inner writes inner.
    • Enabling group/inner from the TUI or the dashboard removed only the group/inner line, so the skill stayed disabled with a "still disabled" error.
    • Only skillshare enable inner could undo it.
  3. diff counted ignored files in the "source changed" time of a copy-mode target. Touching a file that ignore: keeps out of the copy moved the time, though sync would copy nothing.

Fix

  • toggle.Apply removes a line it just added (disable only) when every skill or agent the line names is still enabled. A line that still disables at least one of them stays. Globs, which name no item, are written as typed, as before. This one place covers the CLI, the TUI, and the dashboard's single and batch toggles.
  • A new Set.ItemLines gives the lines that a TUI or dashboard toggle writes or removes.
    • On enable, it also removes each item's folder or file name line.
    • The name line is kept if it also matches the path of a skill or agent that is not being enabled. A slash-less rule matches any path segment, so removing the line would enable that item too.
    • A dashboard batch that enables every skill sharing the name does remove the line.
  • diff takes the newest time among the files sync.CopiedFiles lists, as fix(diff): leave files sync does not copy out of the file diff #992 does for the file view.
  • Docs: enable.md and its four translations describe both toggle changes.

Tests

  • Toggle:
    • internal/toggle: TestApply_DisableOverriddenByNegationLeavesNoLine and TestItemLines. TestItemLines covers the name shared with a skill outside the batch and with one inside it.
    • TestDisable_OverriddenByNegationRule (integration) now also checks that the ignore file is left as it was, for a skill and an agent.
    • TestToggleKey_EnablesSkillDisabledByFolderName, TestHandleEnableSkill_DisabledByFolderName and TestHandleBatchToggle_EnableSkillsDisabledByFolderName cover the TUI and both dashboard handlers.
  • diff: TestCopiedMtimeLeavesOutIgnoredFiles.
  • Revert check: each fix was reverted on its own, and its tests fail.

Checks

  • make check passes in the devcontainer.
  • The integration tests TestDisable_*, TestEnable_* and TestToggle* pass.
  • python3 scripts/ai-context.py check passes.

Not changed, on purpose

  • The "target changed" time. It still counts every file under the target. The target holds the copies, the manifest and local skills, and the copies already lack ignored files.
  • Glob lines. A glob such as draft-* that a ! rule overrides is kept. It names no skill, and it still applies to skills added later.

Checklist

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

Three gaps left after the ignore: fixes in #986-#993:

- `disable` kept the line it wrote when a "!" rule kept the skill
  enabled, so the ignore file gained a rule that did nothing. The line is
  now removed again when it disables none of the skills it names.
- `skillshare disable inner` writes the folder name, but the list TUI and
  the dashboard removed only the skill's path line on enable, so the
  skill stayed disabled with no way to turn it back on there. They now
  also remove the folder-name line, unless it disables a skill or agent
  that is not being enabled.
- `diff` counted files that ignore: keeps out of the copy in the "source
  changed" time of a copy-mode target. It now counts only what sync
  copies.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T07:10:03.332955Z f5ca0a6 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 584e0c9 into main Nov 23, 2026
10 checks passed
@runkids
runkids deleted the runkids/ignore-followups branch November 23, 2026 07:14
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