Repository navigation
fix(skills): return no skills when the skills directory cannot be read - #2083
Merged
Merged
Conversation
discover_skills raised when dir pointed to a file or could not be listed, which broke client setup. It now warns and returns an empty list, matching how unreadable lockfiles and entries are handled. Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
|
@claude review |
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. |
There was a problem hiding this comment.
Claude Code Review
No review was started: this request came from a bot account. Manual reviews can only be requested by someone with write access to this repository. Ask a maintainer to comment @claude review, or have your automation post the comment from a user account with write access.
Tip: disable this comment in your organization's Code Review settings.
hassiebp
enabled auto-merge (squash)
October 30, 2026 15:52
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.
What does this PR do?
discover_skills(dir=...)raisedNotADirectoryError,PermissionErroror a symlink-loopOSErrorwhendirpointed to a file or a folder it couldn't list. It's usually called insideLangfuse(skills={"available": discover_skills(...)}), so a wrong path broke client setup. Now it logs a warning and returns[], the same way it already handles unreadable lockfiles and skill entries.A missing directory still returns
[]without a warning.The matching JS change is in langfuse/langfuse-js on
hassiebbot/skills-discovery-parity-0456.Type of change
Verification
The new test points
dirat a file and at a symlink loop. Both fail the same way whatever the file permissions or user, so CI behaves the same as a local run.Checklist
code_review.md..env.templateif needed.

Confidence Score: 5/5
The PR appears safe to merge.Summary
discover_skillsnow warns and returns[]when it cannot read the skills directory, instead of raising an error.Reviews (1) · Last reviewed commit: "fix(skills): return no skills when the s..." · Reviewed by Greptile