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: fix cron guard to daily/weekday only, fix description cap note, remove nested role=button, dedupe getStatusClasses, fix changelog wording
Adam Eivy3eff91fc36bc
diff --git a/.changelog/v1.41.2.md b/.changelog/v1.41.2.mdindex 42c8497791..3033525df2 100644--- a/.changelog/v1.41.2.md+++ b/.changelog/v1.41.2.md@@ -16,7 +16,7 @@ Released: 2026-04-04- Per-app cron scheduled tasks (e.g. `feature-ideas` at 1am) could be delayed up to `eligibleIn` ms when the next check interval was too long — improvement check now caps at 1 hour so per-app schedules are always checked on time- CoS agents that ran but made no code changes (worktree branch had no commits vs base) now silently clean up their worktree instead of leaving a stale branch and emitting a spurious warning- Worktree merge/PR failures now auto-spawn a recovery task so stale branches don't accumulate in managed app repos-- Task edit form now always closes after save (previously stayed open on API error)+- Task edit form now closes after a successful save (shows error toast and stays open on API failure)## Full Changelogdiff --git a/client/src/components/apps/tabs/ProcessesTab.jsx b/client/src/components/apps/tabs/ProcessesTab.jsxindex 10d4c23e81..7c9c336dc5 100644--- a/client/src/components/apps/tabs/ProcessesTab.jsx+++ b/client/src/components/apps/tabs/ProcessesTab.jsx@@ -201,10 +201,12 @@ export default function ProcessesTab({ pm2ProcessNames, filterFn }) {<span className="font-medium text-white">{proc.name}</span></td><td className="px-4 py-3">- <span className={`inline-flex items-center gap-2 px-2 py-1 rounded text-xs ${getStatusClasses(proc.status).badge}`}>- <span className={`w-2 h-2 rounded-full ${getStatusClasses(proc.status).dot}`} />- {proc.status}- </span>+ {(() => { const sc = getStatusClasses(proc.status); return (+ <span className={`inline-flex items-center gap-2 px-2 py-1 rounded text-xs ${sc.badge}`}>+ <span className={`w-2 h-2 rounded-full ${sc.dot}`} />+ {proc.status}+ </span>+ ); })()}</td><td className="px-4 py-3 text-gray-400 font-mono text-sm">{proc.pid || '-'}</td><td className="px-4 py-3 text-gray-400">{proc.cpu ? `${proc.cpu}%` : '-'}</td>diff --git a/client/src/components/cos/tabs/ScheduleTab.jsx b/client/src/components/cos/tabs/ScheduleTab.jsxindex 0f073ac673..f5ca5c7fdc 100644--- a/client/src/components/cos/tabs/ScheduleTab.jsx+++ b/client/src/components/cos/tabs/ScheduleTab.jsx@@ -461,11 +461,8 @@ function GlobalConfigControls({ taskType, config, onUpdate, onTrigger, onReset,return (<divkey={field}- role="button"- tabIndex={0}className="flex items-center justify-between gap-3 min-h-[44px] cursor-pointer rounded px-2 -mx-2 hover:bg-port-card/30 active:bg-port-card/50"onClick={handleToggle}- onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); handleToggle(); } }}><div className="min-w-0 flex-1"><span className="text-sm text-white">{label}</span>diff --git a/server/services/cos.js b/server/services/cos.jsindex 1e3756293a..ae25e7a674 100644--- a/server/services/cos.js+++ b/server/services/cos.js@@ -2629,13 +2629,13 @@ export async function approveTask(taskId) {function computeNextJobFireTime(job, timezone) {// Convert scheduledTime (HH:MM) + interval to a cron expression so parseCronToNextRun// handles all "next occurrence after lastRun" logic without drift issues.- // Only synthesize a cron for daily/weekday jobs (intervalMs <= 1 day).- // Weekly+ jobs with scheduledTime fall through to the interval path, which correctly- // computes lastRun + intervalMs and avoids scheduling them every day.+ // Only synthesize a daily/weekday cron for strictly daily or weekdaysOnly jobs.+ // Weekly/biweekly/sub-daily interval jobs fall through to the interval path below,+ // which correctly computes lastRun + intervalMs without scheduling them every day.// e.g. { interval: 'daily', scheduledTime: '04:30' } → '30 4 * * *'- const DAY_MS = 24 * 60 * 60 * 1000;let cronExpr = job.cronExpression;- if (!cronExpr && job.scheduledTime && (!job.intervalMs || job.intervalMs <= DAY_MS)) {+ const isDailyCronCandidate = job.interval === 'daily' || job.weekdaysOnly;+ if (!cronExpr && job.scheduledTime && isDailyCronCandidate) {const match = String(job.scheduledTime).match(/^([01]\d|2[0-3]):([0-5]\d)$/);if (match) {const dayField = job.weekdaysOnly ? '1-5' : '*';@@ -2881,7 +2881,11 @@ async function scheduleNextImprovementCheck() {if (upcoming.length > 0 && upcoming[0].status === 'scheduled' && upcoming[0].eligibleIn > 0) {delayMs = Math.min(upcoming[0].eligibleIn, MAX_CHECK_INTERVAL);- description = `Next improvement: ${upcoming[0].taskType} in ${upcoming[0].eligibleInFormatted}`;+ const effectiveFormatted = formatDuration(delayMs);+ const capNote = upcoming[0].eligibleIn > MAX_CHECK_INTERVAL+ ? ` (capped from ${upcoming[0].eligibleInFormatted})`+ : '';+ description = `Next improvement: ${upcoming[0].taskType} in ${effectiveFormatted}${capNote}`;}scheduleEvent({