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: show context-appropriate button labels on blocked banner, add recordJobGateSkip to update lastRun without inflating runCount
Adam Eivyb23c4cfbaa75
diff --git a/client/src/components/cos/ActionableInsightsBanner.jsx b/client/src/components/cos/ActionableInsightsBanner.jsxindex 71cc0869b4..b6d488bced 100644--- a/client/src/components/cos/ActionableInsightsBanner.jsx+++ b/client/src/components/cos/ActionableInsightsBanner.jsx@@ -205,7 +205,7 @@ export default function ActionableInsightsBanner({ onTaskUnblocked }) {onClick={() => handleAction(primaryInsight)}className="flex items-center gap-1 px-2.5 py-1.5 text-xs font-medium bg-white/10 hover:bg-white/20 text-white rounded transition-colors min-h-[32px]">- {primaryInsight.action.label}+ {hasBlockedTasks ? (isExpanded ? 'Collapse' : 'View Tasks') : primaryInsight.action.label}{hasBlockedTasks? (isExpanded ? <ChevronDown size={12} /> : <ChevronRight size={12} />): <ChevronRight size={12} />diff --git a/server/services/autonomousJobs.js b/server/services/autonomousJobs.jsindex 75ac06deb5..67f64fcbb1 100644--- a/server/services/autonomousJobs.js+++ b/server/services/autonomousJobs.js@@ -855,6 +855,24 @@ async function recordJobExecution(jobId) {})}+/**+ * Record a gate-skip: updates lastRun so the job reschedules at its normal interval,+ * but does NOT increment runCount since the job didn't actually execute.+ */+async function recordJobGateSkip(jobId) {+ return withLock(async () => {+ const data = await loadJobs()+ const job = data.jobs.find(j => j.id === jobId)+ if (!job) return null++ job.lastRun = new Date().toISOString()+ job.updatedAt = job.lastRun++ await saveJobs(data)+ return job+ })+}+/*** Toggle a job's enabled state* @param {string} jobId@@ -1284,6 +1302,7 @@ export {updateJob,deleteJob,recordJobExecution,+ recordJobGateSkip,toggleJob,generateTaskFromJob,getJobStats,diff --git a/server/services/cos.js b/server/services/cos.jsindex ddbfb61718..2b40844ddf 100644--- a/server/services/cos.js+++ b/server/services/cos.js@@ -21,7 +21,7 @@ import { getAdaptiveCooldownMultiplier, getSkippedTaskTypes, getPerformanceSummaimport { schedule as scheduleEvent, cancel as cancelEvent, getStats as getSchedulerStats } from './eventScheduler.js';import { createMutex } from '../lib/asyncMutex.js';import { generateProactiveTasks as generateMissionTasks, getStats as getMissionStats } from './missions.js';-import { generateTaskFromJob, recordJobExecution, isScriptJob, executeScriptJob, isShellJob, executeShellJob } from './autonomousJobs.js';+import { generateTaskFromJob, recordJobExecution, recordJobGateSkip, isScriptJob, executeScriptJob, isShellJob, executeShellJob } from './autonomousJobs.js';import { checkJobGate, hasGate } from './jobGates.js';import { formatDuration, safeJSONParse } from '../lib/fileUtils.js';import { sanitizeTaskMetadata } from '../lib/validation.js';@@ -3753,9 +3753,9 @@ async function executeScheduledJob(jobId) {}if (!gateResult.shouldRun) {emitLog('debug', `Job ${job.name} gate skipped: ${gateResult.reason}`, { jobId, gate: gateResult });- // Update lastRun so the job schedules at the next interval rather than firing immediately- await recordJobExecution(jobId).catch(err =>- console.error(`❌ Failed to record gate-skip execution for ${jobId}: ${err.message}`)+ // Update lastRun so the job reschedules at its normal interval, but don't increment runCount+ await recordJobGateSkip(jobId).catch(err =>+ console.error(`❌ Failed to record gate-skip for ${jobId}: ${err.message}`));await registerSingleJobSchedule(jobId);return;