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 (codex): close edit drawer on app navigation to prevent stale-data save

[._.]/ Adam Eivyb5acfe363af9
diff --git a/client/src/components/apps/AppDetailView.jsx b/client/src/components/apps/AppDetailView.jsx
index 232a0a24be..b7666cf898 100644
--- a/client/src/components/apps/AppDetailView.jsx
+++ b/client/src/components/apps/AppDetailView.jsx
@@ -48,6 +48,14 @@ export default function AppDetailView() {
fetchApp();
}, [fetchApp]);
+ // Close the edit drawer when navigating to a different app so its stale
+ // form state (initialized from the previous app) can't be saved against the
+ // newly loaded app id. Keyed on appId only — a same-app socket refresh must
+ // not interrupt an in-progress edit.
+ useEffect(() => {
+ setEditing(false);
+ }, [appId]);
+
// Real-time updates
useEffect(() => {
const handleAppsChanged = () => fetchApp();