Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: decline HMR on route tree to prevent stale lazy-import errors on nested paths

Adam Eivy70c205ab57d9
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 31e39746af..9dbe0453f5 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -41,5 +41,6 @@
- **Stuck classification recovery**: On server startup, any inbox entries left in `classifying` status are automatically reset to `needs_review`
- **Route body destructuring**: Brain routes no longer crash when `req.body` is undefined
- **AI call logging**: Brain service logs when AI calls start and how long they take for easier debugging
+- **HMR route errors**: Decline hot-module replacement on the route tree so Vite does a full reload instead of leaving React Router in a broken state on nested paths
## Removed
diff --git a/client/src/App.jsx b/client/src/App.jsx
index e5bd0b681c..64e3fa5637 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -39,6 +39,12 @@ const PageLoader = () => (
</div>
);
+// Force full reload on HMR — partial hot-replacement of the route tree
+// causes stale lazy imports and React Router errors on nested paths
+if (import.meta.hot) {
+ import.meta.hot.decline();
+}
+
export default function App() {
return (
<Suspense fallback={<PageLoader />}>