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: stabilize persistent mind profile sync

Adam Eivy6f6e3aa182dc
diff --git a/client/src/components/cos/PersistentMindProfileControls.jsx b/client/src/components/cos/PersistentMindProfileControls.jsx
index dc906111a5..22c8dcd2c5 100644
--- a/client/src/components/cos/PersistentMindProfileControls.jsx
+++ b/client/src/components/cos/PersistentMindProfileControls.jsx
@@ -40,6 +40,11 @@ export default function PersistentMindProfileControls({
const publishedProfileRef = useRef(draft);
const pendingSavesRef = useRef(0);
+ // The provider hook memoizes its setters in production, but simple host-page
+ // test mocks may return fresh functions every render. This effect describes
+ // persisted profile changes only; depending on setter identity would turn
+ // its setDraft call into an unconditional render loop in those hosts.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {
const next = normalizeProfile(profile);
draftRef.current = next;
@@ -54,8 +59,6 @@ export default function PersistentMindProfileControls({
profile?.model,
profile?.effort,
profile?.thinkingInterface,
- setSelectedProviderId,
- setSelectedModel,
]);
const save = async (patch) => {