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
address review: validate taskMetadata type before spread, align gate error to fail-open, handle memory-fill-blank as text drill
Adam Eivyfa2ad830d0ea
diff --git a/client/src/components/meatspace/post/PostDrillRunner.jsx b/client/src/components/meatspace/post/PostDrillRunner.jsxindex 3a5dc14c9c..998cdc7ace 100644--- a/client/src/components/meatspace/post/PostDrillRunner.jsx+++ b/client/src/components/meatspace/post/PostDrillRunner.jsx@@ -92,7 +92,7 @@ export default function PostDrillRunner({ session }) {if (state !== 'drilling' || !currentDrill) return null;const question = currentDrill.questions?.[currentQuestionIndex];- const isTextDrill = MEMORY_DRILL_TYPES.includes(currentDrill.type);+ const isTextDrill = MEMORY_DRILL_TYPES.includes(currentDrill.type) || currentDrill.type === 'memory-fill-blank';const timePct = timeLimitMs > 0 ? (timeLeft / timeLimitMs) * 100 : 0;const progressPct = totalQuestions > 0 ? ((currentQuestionIndex + 1) / totalQuestions) * 100 : 0;diff --git a/server/routes/cos.js b/server/routes/cos.jsindex ab67da3c2a..1bd6d312e6 100644--- a/server/routes/cos.js+++ b/server/routes/cos.js@@ -856,7 +856,7 @@ router.get('/jobs/gates', asyncHandler(async (req, res) => {const results = settled.map((s, i) =>s.status === 'fulfilled'? s.value- : { jobId: gateIds[i], shouldRun: false, reason: `Gate error: ${s.reason?.message || s.reason}`, error: true }+ : { jobId: gateIds[i], shouldRun: true, reason: `Gate error (fail-open): ${s.reason?.message || s.reason}`, error: true });res.json({ gates: results });}));diff --git a/server/services/taskSchedule.js b/server/services/taskSchedule.jsindex 17f73132e9..e0d70d51c0 100644--- a/server/services/taskSchedule.js+++ b/server/services/taskSchedule.js@@ -756,8 +756,11 @@ export async function loadSchedule() {const loadedTask = loaded.tasks?.[taskType] || {};const merged = { ...defaultTask, ...loadedTask };// Deep-merge taskMetadata: preserve explicit null (clears metadata), otherwise merge defaults with stored+ // Only spread if loadedTask.taskMetadata is a plain object to avoid corrupting configif (defaultTask.taskMetadata && loadedTask.taskMetadata !== null) {- merged.taskMetadata = { ...defaultTask.taskMetadata, ...(loadedTask.taskMetadata || {}) };+ const storedMeta = loadedTask.taskMetadata;+ const isPlainObject = storedMeta && typeof storedMeta === 'object' && !Array.isArray(storedMeta);+ merged.taskMetadata = { ...defaultTask.taskMetadata, ...(isPlainObject ? storedMeta : {}) };}mergedTasks[taskType] = merged;}