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

address review: catch fetchFn rejections, fetch origin/main before merge

Adam Eivy8bda43c04ab7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8885dc595a..701eb2a42f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -134,6 +134,7 @@ jobs:
# Checkout dev and merge main to share the changelog commit history
git fetch origin dev
git checkout dev
+ git fetch origin main
git merge origin/main --no-edit -m "merge: incorporate v${CURRENT_VERSION} changelog archive [skip ci]"
# Update package.json files for next version
diff --git a/client/src/hooks/useAutoRefetch.js b/client/src/hooks/useAutoRefetch.js
index 7cf41aa608..7f30f23baf 100644
--- a/client/src/hooks/useAutoRefetch.js
+++ b/client/src/hooks/useAutoRefetch.js
@@ -22,10 +22,15 @@ export function useAutoRefetch(fetchFn, intervalMs) {
let cancelled = false;
const loadData = async () => {
- const result = await fetchRef.current();
- if (cancelled) return;
- setData(result);
- setLoading(false);
+ try {
+ const result = await fetchRef.current();
+ if (cancelled) return;
+ setData(result);
+ setLoading(false);
+ } catch {
+ // Keep prior data on failure, just clear loading state
+ if (!cancelled) setLoading(false);
+ }
};
loadData();