Skip to content

fix(cloudflare): quiet no-op env reload noise in varlock-wrangler#885

Closed
WalksWithASwagger wants to merge 1 commit into
dmno-dev:mainfrom
WalksWithASwagger:quiet-wrangler-noop-reloads
Closed

fix(cloudflare): quiet no-op env reload noise in varlock-wrangler#885
WalksWithASwagger wants to merge 1 commit into
dmno-dev:mainfrom
WalksWithASwagger:quiet-wrangler-noop-reloads

Conversation

@WalksWithASwagger

Copy link
Copy Markdown

Summary

  • Ignore fs.watch events in varlock-wrangler dev when a watched env file's mtime is unchanged (common macOS/editor/agent open noise).
  • Move the "reloaded env, no changes found, skipping restart" message behind VARLOCK_DEBUG so same-content saves stay quiet by default.
  • Add unit tests for the mtime ignore helper and a patch bumpy entry for @varlock/cloudflare-integration.

Fixes #845

Test plan

  • bun run test:ci in packages/integrations/cloudflare (5 tests)
  • bun run build:libs (includes cloudflare package)
  • bun run lint:fix on touched files
  • Manual: run varlock-wrangler dev, open .env.schema from an editor/agent without saving, confirm no repeated no-op reload logs
  • Manual: save a real env change, confirm restart still happens and is logged
  • Manual with VARLOCK_DEBUG=1: same-content save still logs the no-op skip message

Ignore fs.watch events when mtime is unchanged, and only log same-content
skip-restart messages under VARLOCK_DEBUG. Fixes noisy macOS/editor opens
during varlock-wrangler dev (dmno-dev#845).

Co-authored-by: Cursor <cursoragent@cursor.com>
@philmillman

Copy link
Copy Markdown
Member

@theoephraim I'm assuming #884 covers this?

@theoephraim

Copy link
Copy Markdown
Member

Yeah pretty sure it does. Will verify.

@theoephraim

Copy link
Copy Markdown
Member

this is handled by #884 - thanks for this though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

varlock-wrangler logs repeated no-op env reloads on macOS

3 participants