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

address review: initialize lastRun on default jobs to prevent immediate execution

Adam Eivybe33e8d80987
diff --git a/server/services/autonomousJobs.js b/server/services/autonomousJobs.js
index 6ebf4aec48..53f87f9d6e 100644
--- a/server/services/autonomousJobs.js
+++ b/server/services/autonomousJobs.js
@@ -270,6 +270,7 @@ function createDefaultJobsData() {
lastUpdated: now,
jobs: DEFAULT_JOBS.map(j => ({
...j,
+ lastRun: now, // Prevent immediate execution on first startup
createdAt: now,
updatedAt: now
}))
@@ -287,6 +288,7 @@ function mergeWithDefaults(loaded) {
if (!existingIds.has(defaultJob.id)) {
loaded.jobs.push({
...defaultJob,
+ lastRun: now, // Prevent immediate execution when adding new defaults
createdAt: now,
updatedAt: now
})