Repository navigation
fix(resource): never skip a hidden-named agents source root - #515
Merged
Merged
Conversation
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).
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
* 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
Same class of bug as #514 (background: #511). A
sources.agentsdirectory whose basename starts with.(e.g.~/.agents) discovered zero agents.Root cause
AgentKind.Discoverskipped any hidden directory withutils.IsHidden(info.Name()) && info.Name() != ".". The!= "."guard never fires becausewalkRootis an absolute resolved path, sofilepath.Walk's first callback (the root itself) returnedSkipDir.Fix
internal/resource/agent.go: guard withpath != walkRoot, same as the other walks in the repo (internal/config/reconcile_core.go,cmd/skillshare/update_project.go). Nested hidden dirs are still skipped.internal/server/handler_skills.go: same one-line guard on the skill detail file listing walk, which had no root exemption.Verification (devcontainer image, worktree mounted in a temporary container)
TestAgentKind_Discover_HiddenSourceRoot:.agents/demo.mdis discovered,.agents/.nested/skipped.mdis not. Fails without the fix (got []), passes with it.go test ./internal/resource/ ./internal/server/passes.make checkpasses (exit 0, all unit and integration tests).Notes
install_discovery.go(its first-level rule is intentional) and the no-opinfo.Name() != "."in the ignore-matcher branch ofagent.go, which is harmless (follow-up candidate).