fix(cloudflare): debounce wrangler restarts and skip when env is unchanged#635
Merged
theoephraim merged 3 commits intomainfrom Apr 21, 2026
Merged
Conversation
…anged Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/ef8b4df3-0fb0-4ccb-b2e2-c90dac16c7d6 Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
🦋 Changeset detectedLatest commit: c8e5796 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Copilot created this pull request from a session on behalf of
theoephraim
April 20, 2026 17:58
View session
Copilot stopped work on behalf of
theoephraim due to an error
April 21, 2026 21:35
…unchanged Builds on PR #631 by @shawnsw which added the debounce + cache equality check. Adds a 5-second idle threshold: if no restart has happened in the last 5 seconds, a save event will trigger a restart even when the resolved env graph is identical. This handles the case where a user saves a file again after a long idle period and expects the dev server to reload. Co-authored-by: Shawn <shawn@docnow.au>" Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/785c3bab-96c9-480b-bcab-ec417ac2c52e Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
theoephraim
approved these changes
Apr 21, 2026
varlock
@varlock/astro-integration
@varlock/cloudflare-integration
@varlock/expo-integration
@varlock/nextjs-integration
@varlock/vite-integration
@varlock/1password-plugin
@varlock/akeyless-plugin
@varlock/aws-secrets-plugin
@varlock/azure-key-vault-plugin
@varlock/bitwarden-plugin
@varlock/dashlane-plugin
@varlock/doppler-plugin
@varlock/google-secret-manager-plugin
@varlock/hashicorp-vault-plugin
@varlock/infisical-plugin
@varlock/keepass-plugin
@varlock/keeper-plugin
@varlock/pass-plugin
@varlock/passbolt-plugin
@varlock/proton-pass-plugin
commit: |
Initialize lastRestartAt to Date.now() so the idle threshold guard works correctly on first file change. Move restartTimeout = undefined to only the skip/error paths so the exit handler can distinguish restart-kills from voluntary exits. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
theoephraim
approved these changes
Apr 21, 2026
|
@theoephraim tested locally, fixed the issue. when do you expect to release? |
Member
|
Likely this evening! If not then tomorrow morning. |
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.
Co-authored-by: Shawn <shawn@docnow.au>in commit message to give credit