Repository navigation
fix: leave no dead ignore lines and re-enable skills disabled by name - #994
Merged
Merged
Conversation
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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
No issue. These are the remaining gaps from the
ignore:and toggle fixes in #986–#993.What was wrong
disablethat a!rule overrides left a dead line..skillignore.localhas!my-skill, and you runskillshare disable my-skill.my-skillstayed in.skillignore.skillshare disable innerwritesinner.group/innerfrom the TUI or the dashboard removed only thegroup/innerline, so the skill stayed disabled with a "still disabled" error.skillshare enable innercould undo it.diffcounted ignored files in the "source changed" time of a copy-mode target. Touching a file thatignore:keeps out of the copy moved the time, though sync would copy nothing.Fix
toggle.Applyremoves 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.Set.ItemLinesgives the lines that a TUI or dashboard toggle writes or removes.difftakes the newest time among the filessync.CopiedFileslists, as fix(diff): leave files sync does not copy out of the file diff #992 does for the file view.enable.mdand its four translations describe both toggle changes.Tests
internal/toggle:TestApply_DisableOverriddenByNegationLeavesNoLineandTestItemLines.TestItemLinescovers 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_DisabledByFolderNameandTestHandleBatchToggle_EnableSkillsDisabledByFolderNamecover the TUI and both dashboard handlers.diff:TestCopiedMtimeLeavesOutIgnoredFiles.Checks
make checkpasses in the devcontainer.TestDisable_*,TestEnable_*andTestToggle*pass.python3 scripts/ai-context.py checkpasses.Not changed, on purpose
draft-*that a!rule overrides is kept. It names no skill, and it still applies to skills added later.Checklist
make check) — for code changes