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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(brain): filed entry delete silently did nothing due to 204 null guard
[._.]/ Adam Eivybf0dd16e0a1b
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 5f3695845e..6388a04d6b 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -66,5 +66,6 @@- **Morse Send drill** no longer reveals the answer or competes with itself for spacebar input: the morse pattern under each prompt is gone (the reference tabs on the right are still available for hints), the global spacebar keying listener only attaches in Send mode (so it doesn't fire on the trainer landing page or during Copy drills), the side widget's "Practice Key" panel is hidden outside Send mode and no longer duplicates the live decoded letter, and the "Your sending" box starts blank with a "waiting for your first key…" hint instead of a misleading "—" placeholder.- **CoS agents now reliably open PRs and request Copilot reviews when configured.** Previously, when both `openPR` and `reviewLoop` were enabled on a task, the worktree-cleanup logic's gate (`taskOpenPR && !taskReviewLoop`) skipped PR creation — falling through to auto-merge the agent's branch into main with no PR, no review, and contradictory wording in the agent prompt about whether it should open the PR itself. The cleanup now always opens the PR when `openPR` is set; when `reviewLoop` is also set, it requests a Copilot review on the new PR via the new `git.requestCopilotReview()` helper. The agent prompt is updated to consistently tell the agent the system handles PR creation and review requests.+- **Brain inbox delete silently did nothing on filed entries.** The DELETE `/api/brain/inbox/:id` endpoint returns 204 No Content; `apiCore.request()` maps 204 → `null`, so the `if (!result) return` guard in `handleDelete` fired immediately — skipping the toast, state update, and refetch. Server still deleted the entry, making the bug invisible until a page reload. Fixed by switching to a `failed` flag (same pattern as `MemoryTab.jsx`) and replacing the `fetchInbox()` refetch with an optimistic `setEntries(prev => prev.filter(...))` for instant UI feedback.- **`update.ps1` no longer hangs at "Running setup…" when Docker is unavailable.** `setup-db.js` checks `!process.stdout.isTTY` (stdout is redirected to the log file by `Invoke-Logged`) in addition to stdin, so the interactive storage-mode prompt is skipped — it logs a warning to stderr and exits 0 instead of hanging for input or silently rewriting `PGMODE=file` in `.env`.- **`setup.ps1` no longer fails with `EISDIR` on Windows.** Replaced the `npm run setup` call (which uses `npm install --prefix client/server/autofixer`) with individual `Push-Location`/`Pop-Location` installs. `npm install --prefix <subdir>` from the root causes npm to symlink the root `portos` package into each sub-package's `node_modules` as a directory symlink, which requires Developer Mode or admin rights on Windows. Also adds the previously missing steps: git submodule update, autofixer install, esbuild rebuild, and node-pty rebuild.diff --git a/client/src/components/brain/tabs/InboxTab.jsx b/client/src/components/brain/tabs/InboxTab.jsxindex edbb237208..55a4c01581 100644--- a/client/src/components/brain/tabs/InboxTab.jsx+++ b/client/src/components/brain/tabs/InboxTab.jsx@@ -189,15 +189,16 @@ export default function InboxTab({ onRefresh, settings }) {};const handleDelete = async (entryId) => {- const result = await api.deleteBrainInboxEntry(entryId).catch(err => {+ let failed = false;+ await api.deleteBrainInboxEntry(entryId).catch(err => {toast.error(err.message || 'Failed to delete');- return null;+ failed = true;});- if (!result) return;+ if (failed) return;toast.success('Entry deleted');setConfirmingDeleteId(null);- fetchInbox();+ setEntries(prev => prev.filter(e => e.id !== entryId));onRefresh?.();};