Commit Graph

5 Commits

Author SHA1 Message Date
Revofusion 84c4c58063 fix(read): preserve literal routed URL semicolons 2026-08-04 15:53:58 -06:00
Revofusion 3d6ecf9237 fix(read): split semicolon-delimited internal URLs 2026-08-04 15:41:45 -06:00
can1357 452338edc3 test(coding-agent): use Bun for skill fixtures 2026-08-02 20:53:47 +02:00
zhang17-24 3625b1b9e7 test(coding-agent): cover custom-dir override of default-path skills
Review feedback (#7246): the added tests disabled every default discovery
source, so the custom-overrides-default branch was never exercised — the
suite would pass without the production change.

- New test writes a same-named skill into an enabled Claude project
  default path (cwd/.claude/skills) and a customDirectories entry, then
  asserts the custom path and content win; verified it fails against the
  pre-change loader.
- Construct protocol URLs via parseInternalUrl instead of casting.
- Reset the process-global active skill snapshot after each test.
- Add the coding-agent [Unreleased] changelog entry.
2026-08-02 10:58:56 +08:00
zhang17-24 1596d9231e fix(coding-agent): let customDirectories skills win over default-path duplicates
When a skill name exists both in a default discovery path (e.g.
~/.claude/skills/<name>) and in an explicitly configured
skills.customDirectories entry, the default-path copy loaded first and the
custom-directory skill was silently dropped on the name collision. As a
result skill://<name> resolved to the default path and reported "File not
found" when the user's skill lived only in the custom directory.

Custom-directory skills now override same-named default-path skills (the
user's explicit configuration is the higher-priority source); duplicates
within customDirectories keep first-wins.
2026-08-01 16:05:31 +08:00