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: dispose superseded post-session launcher reads (#12784)

Adam Eivy705645c1665b
diff --git a/client/src/components/meatspace/post/PostSessionLauncher.jsx b/client/src/components/meatspace/post/PostSessionLauncher.jsx
index 6fff5c3b3d..68fd276d9e 100644
--- a/client/src/components/meatspace/post/PostSessionLauncher.jsx
+++ b/client/src/components/meatspace/post/PostSessionLauncher.jsx
@@ -216,20 +216,24 @@ export default function PostSessionLauncher({
}, []);
useEffect(() => {
+ let active = true;
loadReviewReps();
getPostRecommendations()
.then(r => {
+ if (!active) return;
setRecommendations(r?.recommendations || []);
setRecentPractice(r?.recentPractice || null);
})
.catch(() => {
+ if (!active) return;
setRecommendations([]);
setRecentPractice(null);
})
- .finally(() => setRecommendationsLoaded(true));
+ .finally(() => { if (active) setRecommendationsLoaded(true); });
getMemoryItems({ silent: true })
- .then(items => setMemoryItemsState({ status: 'ready', items: Array.isArray(items) ? items : [] }))
- .catch(() => setMemoryItemsState({ status: 'error', items: [] }));
+ .then(items => { if (active) setMemoryItemsState({ status: 'ready', items: Array.isArray(items) ? items : [] }); })
+ .catch(() => { if (active) setMemoryItemsState({ status: 'error', items: [] }); });
+ return () => { active = false; };
}, [loadReviewReps]);
// Only fetch Morse progress when a Morse WPM goal exists — avoids an extra