Repository navigation
fix(sourcewalk): never skip the source root as a target dotdir - #514
Merged
Merged
Conversation
SkipTargetDotDir only exempted dotdirs directly under the walk root, never
the root itself. ProjectTargetDotDirs() always contains ".skillshare", so a
source whose basename is a target dotdir (".skillshare", ".claude", ...) had
its first Walk callback return SkipDir. Discovery then saw an empty source:
`skillshare list` returned [] and sync pruned previously managed links.
Exempt path == walkRoot in the shared helper so both callers
(sync discovery and resource skill discovery) are fixed. Nested target
dotdirs are still skipped and first-level ones stay visible.
Fixes #511
Codex Review SummaryThis 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. |
runkids
added a commit
that referenced
this pull request
Oct 10, 2026
AgentKind.Discover and the skill detail file listing skipped every hidden directory, including the walk root itself. The `!= "."` guard in agent.go never fires because walkRoot is an absolute resolved path, so a sources.agents directory such as ~/.agents discovered zero agents. Exempt the walk root (`path != walkRoot`), matching the other walks in the repo. Nested hidden directories are still skipped. Related to #511 (same class as #514).
runkids
added a commit
that referenced
this pull request
Oct 10, 2026
* chore(main): release 0.25.4 * chore(release): synchronize release metadata * docs(changelog): restore the curated 0.25.4 entry and add #511, #513, #515 Release Please regenerated the entry when #513 landed on main. Restore the user-facing version and describe the three fixes merged since: the skills source named like a tool folder (#511, via #514), the hidden agents source folder (#515) and moved installed skills (#513). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Willie <[email protected]>
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.
Summary
Fixes #511: a source root named
.skillshare(or any target dotdir such as.claude) was skipped entirely during discovery, soskillshare listreturned[]and sync pruned previously managed links. Regression from 881d08e (v0.24.4).Root cause
config.ProjectTargetDotDirs()always includes.skillshare.sourcewalk.SkipTargetDotDircheckedfilepath.Dir(path) != walkRootbut never exemptedpath == walkRoot, so at the root callback the parent comparison was true and the helper returnedSkipDirfor the whole source.Fix
Exempt the walk root in the shared helper (
internal/sourcewalk/walk.go):if path == walkRoot || !info.IsDir() || .... Callers (internal/sync/discover_walk.go,internal/resource/skill.go) are unchanged and already pass a symlink-resolvedwalkRoot.Verification (devcontainer, worktree mounted in a temporary container)
TestSkipTargetDotDir: root named.skillsharenot skipped; nestedsome-skill/.claudeskipped; first-level.cursornot skipped.TestDiscoverSourceSkills_SourceRootNamedAsTargetDotDir:.skillshare/skills/demo/SKILL.mdis discovered.walk.goand pass with the fix.[{"name":"skills__demo","kind":"skill","relPath":"skills/demo"}].make check(docs-check, fmt-check, vet, unit + integration tests) passes.Follow-ups (not in this PR)
internal/resource/agent.go:55skips every hidden directory including the walk root, so an agents source with a hidden basename would be skipped the same way.internal/install/install_discovery.gohand-rolls its own copy of the nested-dotdir rule; it differs in behaviour (also skips first-level dotdirs), so merging it is not behaviour-neutral.