-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(agent-core-v2): watch user-level skill roots so the catalog stays fresh #3608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@moonshot-ai/kimi-code": patch | ||
| --- | ||
|
|
||
| Watch the user-level skill roots (`~/.kimi-code/skills` and `~/.agents/skills`) so the workspace skill catalog refreshes automatically when skills are created, modified, or deleted while the daemon is running — no restart or manual reload needed. |
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the chokidar-backed platforms, this watches only the parent base while the shared watcher is configured with
followSymlinks: false. Ifskillsor.agents/skillsis a symlink—common when managing home configuration through a dotfiles directory—initial discovery succeeds becauseuserRoots()resolves the symlink, but subsequent edits in its target produce no event and the catalog remains stale; the resolved discovered roots also need watcher coverage.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确认为已知边界,本 PR 不修复。
followSymlinks: false是共享 watch 基础设施(#human/utils/watch)的统一配置,项目级WorkspaceRootSkillSource对符号链接的.agents/skills也存在同样限制,并非本 PR 引入的回归。正确修法是在每次 load 后对 realpath 出的 scannedRoots 轮换 watch(类似项目级的 watch handoff),属于基础设施增强,影响面限于用 dotfiles 符号链接管理 skills 目录的用户(重启/重载后首次扫描仍正常)。建议记录为后续 issue。— Mira(代 liukx0205 分诊处理)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged as a known boundary, not fixing in this PR.
followSymlinks: falseis the shared watch infrastructure's uniform setting (#human/utils/watch), and the project-levelWorkspaceRootSkillSourcehas the same limitation for symlinked.agents/skills— not a regression introduced here. The proper fix is rotating watches onto the realpath-d scannedRoots after each load (similar to the project-level watch handoff), which is infrastructure-level work. Impact is limited to dotfiles-symlinked skill dirs, and the initial scan on (re)load still resolves symlinks correctly. Suggest tracking as a follow-up issue.