fix(local-agent): resolve skill source correctly when SKILL.md name differs from server slug#175
Merged
jeff-r2026 merged 2 commits intoJul 9, 2026
Conversation
…iffers from server slug scanSkillsFromDisk uses the SKILL.md `name:` field as the reported slug, but collectManifestSlugs only collected the server slug (manifest key). When dir_name ≠ slug (i.e. SKILL.md name differs from the server slug), resolveSource failed to find the entry and incorrectly returned 'local' for enterprise-distributed skills. Include dir_name in the manifest slug set so the lookup succeeds. --story=1032029153857553 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
flushQueue expects {url, body} entries but the queue file may contain
diagnostic log entries ({at, entry}) written by local-agent's error
logger. These entries have no url/body, causing postJson to fail and
leaving them stuck in the queue forever.
Skip entries missing url or body so they are silently drained.
--story=1032029153857553
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
dir_name(SKILL.md name) in the manifest slug set used byresolveSourcesource: 'local'when SKILL.mdname:differs from the server slugRoot Cause
scanSkillsFromDiskuses SKILL.md'sname:frontmatter field as the reported slug. However,collectManifestSlugsonly collected server slugs (manifest keys). When a skill is installed withdir_name ≠ slug(because SKILL.md name differs from the server slug),resolveSource(name, manifestSlugs)fails to find a match and returns'local'instead of'enterprise'.Test plan
name:differs from the server slugteamai hook-dispatch session-startreports that skill withsource: 'enterprise'name === slugcontinue to reportsource: 'enterprise'(no regression)source: 'local'🤖 Generated with Claude Code