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([issue-2098]): preserve supported-type memory gate; silent 404 on detail fetch

Adam Eivy7933a4f19f6d
diff --git a/client/src/components/meatspace/post/PostSessionDetail.jsx b/client/src/components/meatspace/post/PostSessionDetail.jsx
index 6652806d58..7ef71d31ec 100644
--- a/client/src/components/meatspace/post/PostSessionDetail.jsx
+++ b/client/src/components/meatspace/post/PostSessionDetail.jsx
@@ -14,7 +14,9 @@ export default function PostSessionDetail({ id, onBack }) {
useEffect(() => {
let cancelled = false;
setStatus('loading');
- getPostSession(id)
+ // silent: this view owns its own not-found UI, so suppress the helper's
+ // default error toast (a 404 for a stale/deleted id isn't a toast-worthy error).
+ getPostSession(id, { silent: true })
.then(s => {
if (cancelled) return;
if (s) { setSession(s); setStatus('ready'); }
diff --git a/client/src/services/apiMeatspace.js b/client/src/services/apiMeatspace.js
index bc1f119c5e..3f27bc824e 100644
--- a/client/src/services/apiMeatspace.js
+++ b/client/src/services/apiMeatspace.js
@@ -179,7 +179,7 @@ export const getPostSessions = (from, to) => {
if (to) params.set('to', to);
return request(`/meatspace/post/sessions?${params}`);
};
-export const getPostSession = (id) => request(`/meatspace/post/sessions/${id}`);
+export const getPostSession = (id, options = {}) => request(`/meatspace/post/sessions/${id}`, options);
export const submitPostSession = (data, options = {}) => request('/meatspace/post/sessions', {
method: 'POST',
body: JSON.stringify(data),
diff --git a/server/services/meatspacePost.js b/server/services/meatspacePost.js
index 401e28143b..84d9e4f4d8 100644
--- a/server/services/meatspacePost.js
+++ b/server/services/meatspacePost.js
@@ -254,8 +254,12 @@ export async function submitPostSession(sessionData) {
// bookkeeping — log it single-line and still return 200. (Sanctioned
// try/catch: the session is already saved; there is nothing to roll back.)
if (isNewSession) {
+ // Pre-filter to POST-supported memory tasks with a memoryItemId — the exact
+ // gate the prior per-task loop used, so an unsupported memory drill (e.g.
+ // memory-fill-blank) is never scheduled even if it somehow carried an id.
+ const memoryTasks = rescoredTasks.filter(t => POST_SUPPORTED_MEMORY_TYPES.includes(t.type) && t.memoryItemId);
try {
- await applySessionToMemoryItems(rescoredTasks, new Date(now));
+ await applySessionToMemoryItems(memoryTasks, new Date(now));
} catch (err) {
console.error(`❌ POST session memory post-processing failed (session ${sessionId} still saved): ${err.message}`);
}