[PR #1872] [CLOSED] feat: migrate fs.watch for chokidar.watch #10095

Closed
opened 2026-02-16 18:14:41 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1872
Author: @noahfraiture
Created: 8/12/2025
Status: Closed

Base: devHead: chokadi


📝 Commits (1)

  • 014b996 feat: migrate fs.watch for chokidar.watch

📊 Changes

4 files changed (+45 additions, -28 deletions)

View changed files

📝 bun.lock (+9 -18)
flake.lock (+27 -0)
📝 package.json (+1 -0)
📝 packages/opencode/src/file/watch.ts (+8 -10)

📄 Description

Hi,

This PR replaces fs.watch with chokidar.watch to address feature request #1549. However, the current implementation hangs unless the watcher is explicitly closed. I couldn't determine the cause of this behavior and would appreciate any insights or suggestions from the team regarding the application's behavior.

Thank you!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1872 **Author:** [@noahfraiture](https://github.com/noahfraiture) **Created:** 8/12/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `chokadi` --- ### 📝 Commits (1) - [`014b996`](https://github.com/anomalyco/opencode/commit/014b996cae437d874e74cea632e97584cf0e0211) feat: migrate fs.watch for chokidar.watch ### 📊 Changes **4 files changed** (+45 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `bun.lock` (+9 -18) ➕ `flake.lock` (+27 -0) 📝 `package.json` (+1 -0) 📝 `packages/opencode/src/file/watch.ts` (+8 -10) </details> ### 📄 Description Hi, This PR replaces `fs.watch` with `chokidar.watch` to address feature request #1549. However, the current implementation hangs unless the watcher is explicitly closed. I couldn't determine the cause of this behavior and would appreciate any insights or suggestions from the team regarding the application's behavior. Thank you! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:41 -05:00
yindo closed this issue 2026-02-16 18:14:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10095