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

reload memory items from server after delete instead of local splice

[._.]/ Adam Eivy3849bf5bf6cf
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 45e71aafc9..1d8f8e3847 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -20,6 +20,8 @@
## Changed
+- **Deleting a Memory Builder item now reloads the full list from the server instead of splicing it out locally.** `MemoryBuilder`'s delete handler previously dropped the row optimistically (`setItems(prev => prev.filter(...))`), so the displayed list could drift from server truth — e.g. a built-in item the server re-seeds (the Elements Song) would silently vanish until the next mount. It now re-fetches via the existing `loadItems()` after the delete resolves, so the list always reflects what the server actually returns. (`client/src/components/meatspace/post/MemoryBuilder.jsx`)
+
- **Destructive deletes across the app now ask for confirmation, consistently.** Many delete actions — brain memories/people/projects/ideas/admin items, CoS memories/tasks/jobs/agents, digital-twin accounts/goals/stories, life-tracking entries (alcohol, nicotine, eye exams, epigenetic interventions, genome markers, post memories), goals (todos, progress, whole-goal), email/calendar accounts, message drafts, custom CoS jobs, media-queue rows, comic pages, uploaded files — previously deleted immediately on a single trash-icon click, an easy way to lose data with no undo. Each now arms an inline confirm before running, using the discoverable inline-confirm UI (`<InlineConfirmRow>` / `<ConfirmButtonPair>`) PortOS already prefers over a bare two-click-arm. Bulk/"delete everything" surfaces get explicit, strongly-worded confirms too: the **Data Manager** category *Purge* moved off the easy-to-miss two-click banner onto an inline confirm row, and backup-archive deletion, *Clear all completed agents*, and *Delete All* uploads are now gated. A new shared `useConfirmDelete` hook standardizes the "arm one row at a time → confirm → run" pattern so future delete buttons stay consistent. Low-stakes, trivially-reversible clears (notifications, the ignored-version list, draft-only dashboard-widget removal) are intentionally left un-gated to avoid confirmation fatigue. (`client/src/hooks/useConfirmDelete.js`, `client/src/pages/DataManager.jsx`, `client/src/pages/Uploads.jsx`, and the brain / cos / digital-twin / meatspace / goals / messages / calendar / apps / media / pipeline delete call sites)
- **A proactive fallback swap now logs which primary was benched and why.** When `createRun` finds the requested provider marked unavailable (benched) and routes to a fallback, the log said only `⚡ Using fallback provider: Codex CLI (source: system)` — leaving "why isn't my *enabled* provider being used?" unanswered (a provider's `enabled` toggle is independent of its runtime availability state, which the bench sets). It now names the skipped primary, its unavailability reason, and the recovery ETA: `⚡ Primary Claude Code CLI unavailable (model-not-found, recovers in 28m) — using fallback Codex CLI (source: system)`. (`server/lib/aiToolkit/runner.js`)
diff --git a/client/src/components/meatspace/post/MemoryBuilder.jsx b/client/src/components/meatspace/post/MemoryBuilder.jsx
index a61bf587b3..b729e1fb20 100644
--- a/client/src/components/meatspace/post/MemoryBuilder.jsx
+++ b/client/src/components/meatspace/post/MemoryBuilder.jsx
@@ -51,7 +51,7 @@ export default function MemoryBuilder({ onBack, onNavigateElements }) {
async function handleDelete(id) {
await deleteMemoryItem(id);
- setItems(prev => prev.filter(i => i.id !== id));
+ await loadItems();
}
function resetCreateForm() {