Skip to content

Move skills watcher to app-server#21287

Open
pakrym-oai wants to merge 1 commit intomainfrom
pakrym/skills-update-available-app-server
Open

Move skills watcher to app-server#21287
pakrym-oai wants to merge 1 commit intomainfrom
pakrym/skills-update-available-app-server

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Why

Skills update notifications are app-server API behavior, but the watcher lived in codex-core and surfaced through EventMsg::SkillsUpdateAvailable. Moving the watcher out keeps core focused on thread execution and lets app-server own both cache invalidation and the skills/changed notification.

What changed

  • Added an app-server-owned skills watcher that watches local skill roots, clears the shared skills cache, and emits skills/changed directly.
  • Registers skill watches from the common app-server thread listener attach path, including direct starts, resumes, and app-server-observed child or forked threads.
  • Stores the WatchRegistration on ThreadState, so listener replacement, thread teardown, idle unload, and app-server shutdown deregister by dropping the RAII guard.
  • Removed EventMsg::SkillsUpdateAvailable, the core watcher, and the old core live-reload test.
  • Extended the app-server skills change test to verify a cached skills list is refreshed after a filesystem change without forcing reload.

Validation

  • cargo check -p codex-core -p codex-app-server -p codex-mcp-server -p codex-rollout -p codex-rollout-trace
  • cargo test -p codex-app-server skills_changed_notification_is_emitted_after_skill_change

@pakrym-oai pakrym-oai force-pushed the pakrym/skills-update-available-app-server branch from a2b383e to 6fcdafd Compare May 6, 2026 02:01
@pakrym-oai pakrym-oai marked this pull request as ready for review May 6, 2026 02:02
@pakrym-oai pakrym-oai requested a review from a team as a code owner May 6, 2026 02:02
Copy link
Copy Markdown
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: 6fcdafdc15

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread codex-rs/app-server/src/message_processor.rs
Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request May 6, 2026
opencode/codex/litellm coverage:
- anomalyco/opencode#25962 desktop utilityProcess split (man)
- openai/codex#21287 skills watcher hoisted to app-server (man)
- BerriAI/litellm#27272 bounded prometheus end-user series tracker (man)
- BerriAI/litellm#27278 GCS extensionless URI MIME resolution (man)
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