0.7.1 - Limit wait time for file operations#18
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a configurable maximum wait time for file watcher operations and bumps the version from 0.7.0 to 0.7.1. The new FILE_WATCHER_MAX_WAIT_MS environment variable (default: 5000ms) ensures that file stability checks and debounced operations will eventually execute even when continuously triggered, preventing indefinite delays.
Key changes:
- Added
FILE_WATCHER_MAX_WAIT_MSenvironment variable to control maximum wait time for file operations - Enhanced
debounceByArgfunction to track first call times and enforce a maximum wait period - Updated
waitForFileStabilityto respect the maximum wait timeout
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/files.ts | Implements maxWait logic in both the debouncing mechanism and file stability checking |
| readme.md | Documents the new FILE_WATCHER_MAX_WAIT_MS environment variable |
| package.json | Version bump to 0.7.1 |
| package-lock.json | Lockfile version update to 0.7.1 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
thanks copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
mgorkii-nlplogix
approved these changes
Nov 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FILE_WATCHER_MAX_WAIT_MSto0, or a negative number. Positive values set the maximum amount of time between releasing events.FILE_WATCHER_STABILITY_CHECK_MSms.