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: on-demand tasks silently dropped when pipeline preconditions fail
Adam Eivy34f1a43d9b89
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 47e850f038..da8b9ebb85 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -3,6 +3,7 @@- Scheduled tasks defaulting to enabled for existing apps when new task types are added — `isTaskTypeEnabledForApp` now defaults to disabled (opt-in) instead of enabled (opt-out)- Autonomous job scheduler using UTC instead of local timezone for scheduled times — daily briefing at 4:30 AM local was firing at 4:30 AM UTC. Now uses `nextLocalTime()` to compute exact UTC target from local scheduled time- Codex agent output flooding UI with full prompt/config dump from stderr — filtered to only show tool execution lines and errors+- On-demand tasks silently dropped when pipeline preconditions fail (e.g., REVIEW.md already exists) — on-demand tasks now skip precondition checks since the user explicitly requested them- Self-update failing with "exit code null" at npm-install step — PM2 watch restarted the server during `git checkout` (which changes `server/` files), breaking the stdout pipe to the update script. SIGPIPE killed the script before `|| true` could handle it, leaving the update incomplete. Added `trap '' PIPE` to ignore SIGPIPE so the script runs to completion.- Improved update error messages to show signal name (e.g., "killed by SIGPIPE") instead of opaque "exit code null"diff --git a/server/services/cos.js b/server/services/cos.jsindex ea57c341a3..906259f9d9 100644--- a/server/services/cos.js+++ b/server/services/cos.js@@ -1041,7 +1041,7 @@ export async function evaluateTasks() {emitLog('info', `Processing on-demand improvement: ${request.taskType} for ${targetApp.name}`, { requestId: request.id, appId: targetApp.id });await markAppReviewStarted(targetApp.id, `on-demand-${Date.now()}`);await taskSchedule.recordExecution(`task:${request.taskType}`, targetApp.id);- task = await generateManagedAppImprovementTaskForType(request.taskType, targetApp, state);+ task = await generateManagedAppImprovementTaskForType(request.taskType, targetApp, state, { skipPreconditions: true });} else {emitLog('info', `Processing on-demand improvement: ${request.taskType}`, { requestId: request.id });await taskSchedule.recordExecution(`task:${request.taskType}`);@@ -2177,7 +2177,7 @@ async function generateManagedAppImprovementTask(app, state) {* @param {Object} state - Current CoS state* @returns {Object} Generated task*/-async function generateManagedAppImprovementTaskForType(taskType, app, state) {+async function generateManagedAppImprovementTaskForType(taskType, app, state, { skipPreconditions = false } = {}) {const { updateAppActivity } = await import('./appActivity.js');const taskSchedule = await import('./taskSchedule.js');@@ -2214,7 +2214,7 @@ async function generateManagedAppImprovementTaskForType(taskType, app, state) {}initializePipelineMetadata(metadata);- if (shouldSkipForPrecondition(metadata, app, taskType)) return null;+ if (!skipPreconditions && shouldSkipForPrecondition(metadata, app, taskType)) return null;const promptTemplate = metadata.pipeline?.stages? await taskSchedule.getStagePrompt(taskType, 0)@@ -3587,7 +3587,7 @@ async function dequeueNextTask() {emitLog('info', `Processing on-demand improvement: ${request.taskType} for ${targetApp.name}`, { requestId: request.id, appId: targetApp.id });await markAppReviewStarted(targetApp.id, `on-demand-${Date.now()}`);await taskScheduleMod.recordExecution(`task:${request.taskType}`, targetApp.id);- task = await generateManagedAppImprovementTaskForType(request.taskType, targetApp, state);+ task = await generateManagedAppImprovementTaskForType(request.taskType, targetApp, state, { skipPreconditions: true });} else {emitLog('info', `Processing on-demand improvement: ${request.taskType}`, { requestId: request.id });await taskScheduleMod.recordExecution(`task:${request.taskType}`);