Commit bb9b7db
fix(cloudflare): force restart after idle threshold even when env is 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>1 parent 677f469 commit bb9b7db
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
415 | 419 | | |
416 | 420 | | |
| 421 | + | |
417 | 422 | | |
418 | 423 | | |
419 | 424 | | |
420 | 425 | | |
421 | 426 | | |
| 427 | + | |
422 | 428 | | |
423 | 429 | | |
424 | | - | |
425 | | - | |
426 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
427 | 434 | | |
428 | 435 | | |
429 | 436 | | |
430 | 437 | | |
| 438 | + | |
431 | 439 | | |
432 | 440 | | |
433 | 441 | | |
434 | 442 | | |
435 | 443 | | |
436 | 444 | | |
437 | 445 | | |
438 | | - | |
| 446 | + | |
439 | 447 | | |
440 | 448 | | |
441 | 449 | | |
| |||
0 commit comments