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: revoke object URLs for sliced-off attachments in concurrent-add race guard

[._.]/ Adam Eivy206a16d6d254
diff --git a/client/src/pages/OpenClaw.jsx b/client/src/pages/OpenClaw.jsx
index 15b02252ca..8a3f1e989d 100644
--- a/client/src/pages/OpenClaw.jsx
+++ b/client/src/pages/OpenClaw.jsx
@@ -367,7 +367,9 @@ export default function OpenClaw() {
next.forEach(a => { if (a.previewUrl) URL.revokeObjectURL(a.previewUrl); });
return current;
}
- return [...current, ...next.slice(0, remaining)];
+ const accepted = next.slice(0, remaining);
+ next.slice(remaining).forEach(a => { if (a.previewUrl) URL.revokeObjectURL(a.previewUrl); });
+ return [...current, ...accepted];
});
setMessagesError('');
} catch (err) {