Skip to content

fix(openclaw): remove symlink skill in openclaw file#935

Merged
hazeone merged 2 commits intomainfrom
feat/remove_symlink_skill_in_openclaw_file
Apr 29, 2026
Merged

fix(openclaw): remove symlink skill in openclaw file#935
hazeone merged 2 commits intomainfrom
feat/remove_symlink_skill_in_openclaw_file

Conversation

@hazeone
Copy link
Copy Markdown
Contributor

@hazeone hazeone commented Apr 29, 2026

Summary

Avoid duplicate scan skill both in ~/.agents/skills and ~/.openclaw/skills

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other

Validation

Checklist

  • I ran relevant checks/tests locally.
  • I updated docs if behavior or interfaces changed.
  • I verified there are no unrelated changes in this PR.

hazeone added 2 commits April 29, 2026 10:30
…ills

This new functionality removes symlinks that point to agents' skills directories, preventing log noise from invalid paths. The cleanup is performed before each Gateway launch, ensuring only relevant symlinks are retained. Unit tests have been added to verify the behavior of the cleanup process.
Updated the symlink cleanup process to specifically target symlinks under ~/.openclaw/skills that resolve into ~/.agents/skills. Enhanced comments for clarity and transitioned to using fs.rmSync for better compatibility with Windows symlinks. Adjusted unit tests to reflect changes in directory structure and cleanup behavior.
@hazeone hazeone merged commit a74db57 into main Apr 29, 2026
6 checks passed
@hazeone hazeone deleted the feat/remove_symlink_skill_in_openclaw_file branch April 29, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant