Skip to content

FileWatcher: add loop suppression guard#10837

Open
xl-openai wants to merge 1 commit intomainfrom
xl/skill
Open

FileWatcher: add loop suppression guard#10837
xl-openai wants to merge 1 commit intomainfrom
xl/skill

Conversation

@xl-openai
Copy link
Collaborator

External (non-OpenAI) Pull Request Requirements

Avoid over-triggering.

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b1fc9c58d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 261 to 265
roots.iter().any(|root| {
path.starts_with(root)
&& path
.file_name()
.is_some_and(|file_name| file_name == SKILL_FILE_NAME)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reload when skill metadata files change

The new filter only emits when the changed path’s filename is SKILL.md, so updates to skill metadata files (e.g., agents/openai.yaml loaded in load_skill_metadata in codex-rs/core/src/skills/loader.rs) will no longer trigger a reload. That means edits to interface/dependency metadata won’t be reflected until SKILL.md is touched or the process restarts, which is a regression from the previous “any file under skills root” behavior.

Useful? React with 👍 / 👎.

@xl-openai xl-openai changed the title Watcher: only trigger skills reload on SKILL.md changes FileWatcher: add loop suppression guard Feb 6, 2026
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