Skip to content

[Bug]: skills glob file change watch via chokidar is not worked #27404

@qqdxyg

Description

@qqdxyg

Summary

// Standard layout: <skillsRoot>/<skillName>/SKILL.md
targets.add(`${globRoot}/*/SKILL.md`);

const watcher = chokidar.watch(watchTargets, {
ignoreInitial: true,
awaitWriteFinish: {
stabilityThreshold: debounceMs,
pollInterval: 100,
},

chokidar is not support glob >=v4 (https://github.com/paulmillr/chokidar)
chokidar github changeLog :

Image

Steps to reproduce

1.change the file like 'echo test >> ~/.openclaw/workspace/skills/calendar/SKILL.md' , but not watched the file change event
2. 'echo test >> ~/.openclaw/workspace/skills/SKILL.md' it is ok . watched file change event success.

Expected behavior

1.it should watched the SKILL.md file change evnet

Actual behavior

1.no event watched

OpenClaw version

2026.02.26

Operating system

macOS & debian

Install method

pnpm dev

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions