HarperFast / HarperFast/harper

Dev mode auto-restart too aggressive: restarts on any file change including build artifacts

Open
#819 0 comments 0 reactions 1 assignee Claimed by @kriszyp View on GitHub
area:components bug from-jira
Dominant language
JavaScript
Stars
89
Forks
10
Avg merge
2d 6h
Merged PRs (30d)
200

Description

## Problem

Dev mode watches component directories and restarts on any file change — including files written by the component itself during normal operation (e.g., Next.js writes to `.next/` on build, which triggers a restart, which triggers a build, creating an infinite loop).

## Fix

Restarts from `watchDir` should only fire when `restartRequired` is signaled by the component plugin API — not for every file change. When a plugin can handle a change dynamically (e.g., `static`), no restart should occur.

For built-in components that don't yet implement the plugin API, implement it so they can signal `restartRequired` appropriately rather than using the blanket file-change trigger.

🤖 Filed by Claude on behalf of Kris.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.