Skip to content

Move file watcher out of core#21290

Open
pakrym-oai wants to merge 1 commit intopakrym/skills-update-available-app-serverfrom
pakrym/file-watcher-out-of-core
Open

Move file watcher out of core#21290
pakrym-oai wants to merge 1 commit intopakrym/skills-update-available-app-serverfrom
pakrym/file-watcher-out-of-core

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

@pakrym-oai pakrym-oai commented May 6, 2026

Why

The app-server watcher relocation leaves the generic filesystem watcher as the last watcher-specific implementation still living inside codex-core. Moving that code to a small crate keeps codex-core focused on thread execution and lets app-server depend on the watcher without reaching back into core for filesystem watching primitives.

This PR is stacked on #21287.

What changed

  • Added a new codex-file-watcher crate containing the existing watcher implementation and its unit tests.
  • Updated app-server fs_watch, skills_watcher, and listener state to import watcher types from codex-file-watcher.
  • Removed the file_watcher module and notify dependency from codex-core.
  • Updated Cargo workspace metadata and Cargo.lock for the new internal crate.

Validation

  • cargo check -p codex-file-watcher -p codex-core -p codex-app-server
  • cargo test -p codex-file-watcher
  • cargo test -p codex-app-server skills_changed_notification_is_emitted_after_skill_change
  • just bazel-lock-update
  • just bazel-lock-check
  • just fix -p codex-file-watcher
  • just fix -p codex-core
  • just fix -p codex-app-server

@pakrym-oai pakrym-oai marked this pull request as ready for review May 6, 2026 02:57
@pakrym-oai pakrym-oai requested a review from a team as a code owner May 6, 2026 02:57
Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request May 6, 2026
- anomalyco/opencode#25959 keep-alive newlines on POST /session/:id/message [merge-after-nits]
- anomalyco/opencode#25855 wide-text paste-summary order fix via Intl.Segmenter [merge-after-nits]
- openai/codex#21290 extract codex-file-watcher crate from core [merge-after-nits]
- openai/codex#21272 add 'compact' SessionStartSource with FIFO queue [merge-after-nits]
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.

2 participants