fix: preserve skill mentions for custom agents - #76
Closed
1-WEEK wants to merge 1 commit into
Closed
Conversation
Unknown agent types previously collapsed missing directory mappings into a truthy empty Set, so the candidate filter removed every scanned skill. Return null before aggregation when the agent type is unregistered, while retaining explicit empty mappings for known agents. Model: gpt-5.6-sol
|
@1-WEEK, this pull request body does not match Lody's PR template. This PR is marked If the body remains invalid for 7 days, this PR will be closed and marked Every external PR must link a Lody issue and provide a complete public Context handoff with concise, PR-specific review instructions. Checker findings |
5 tasks
5 tasks
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.
Author type
Problem / pressure
Custom command configurations receive generated
custom-<uuid>agent types that are not registered inACP_SKILL_DIRS_BY_AGENT_TYPE. The skill mention source converted that missing mapping into an emptySet, which is truthy and therefore filtered every scanned$skill candidate out of the menu.Summary
nullfromgetAllowedSkillMentionDirswhen the selected agent type is not registered, preserving the existing meaning ofnullas no whitelist restriction.deepagents.Before / after
null.Test plan
@lody/componentssuite reported the three new assertions failing while 2,735 existing tests passed.corepack pnpm --filter @lody/components exec vitest run tests/mention-skill-source.test.ts— 23 tests passed.corepack pnpm --filter @lody/components test— 382 files and 2,738 tests passed.corepack pnpm --filter @lody/components typecheck— passed.corepack pnpm exec oxlint --quiet packages/components/src/components/mentions/mention-skill-source.tsx packages/components/tests/mention-skill-source.test.ts— no warnings or errors.git diff --check— passed.Agent handoff
Instructions for reviewing agents
mention-skill-source.tsxand the custom/known/explicit-empty cases inmention-skill-source.test.ts.nullcorrectly means no mention-directory restriction for unregistered agents while a registered empty mapping remains restrictive.$menu smoke test.Authoring context
$skill candidates for custom commands, add focused tests, commit the change, fork the repository, and open an upstream pull request.Sharing consent (author side)
N/A/ redacted