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: fix ESM import in test, await merge abort, remove unused emitLog import, remove cron schema remnants

Adam Eivye120d94fd13e
diff --git a/client/src/components/feature-agents/ConfigTab.jsx b/client/src/components/feature-agents/ConfigTab.jsx
index 8f7398c2dc..373dbeca95 100644
--- a/client/src/components/feature-agents/ConfigTab.jsx
+++ b/client/src/components/feature-agents/ConfigTab.jsx
@@ -39,7 +39,7 @@ export default function ConfigTab({ agent, isCreate, apps, onSave }) {
appId: '',
featureScope: { directories: [], filePatterns: [], excludePatterns: [] },
git: { branchName: '', baseBranch: 'main', autoMergeBase: true, autoPR: true, prTemplate: '' },
- schedule: { mode: 'continuous', cronExpression: '', intervalMs: 3600000, pauseBetweenRunsMs: 60000 },
+ schedule: { mode: 'continuous', intervalMs: 3600000, pauseBetweenRunsMs: 60000 },
playwright: { testUrls: [], baseUrl: '', startCommand: '', viewport: { width: 1280, height: 720 } },
goals: [],
constraints: [],
@@ -59,7 +59,7 @@ export default function ConfigTab({ agent, isCreate, apps, onSave }) {
appId: agent.appId || '',
featureScope: agent.featureScope || { directories: [], filePatterns: [], excludePatterns: [] },
git: agent.git || { branchName: '', baseBranch: 'main', autoMergeBase: true, autoPR: true, prTemplate: '' },
- schedule: agent.schedule || { mode: 'continuous', cronExpression: '', intervalMs: 3600000, pauseBetweenRunsMs: 60000 },
+ schedule: agent.schedule || { mode: 'continuous', intervalMs: 3600000, pauseBetweenRunsMs: 60000 },
playwright: agent.playwright || { testUrls: [], baseUrl: '', startCommand: '', viewport: { width: 1280, height: 720 } },
goals: agent.goals || [],
constraints: agent.constraints || [],
diff --git a/server/lib/validation.js b/server/lib/validation.js
index 18c2de68be..5112a10df3 100644
--- a/server/lib/validation.js
+++ b/server/lib/validation.js
@@ -474,7 +474,6 @@ export const featureAgentSchema = z.object({
}),
schedule: z.object({
mode: featureAgentScheduleModeSchema.default('continuous'),
- cronExpression: z.string().optional(),
intervalMs: z.number().int().min(30000).optional(),
pauseBetweenRunsMs: z.number().int().min(0).default(60000)
}).default({}),
diff --git a/server/services/featureAgents.js b/server/services/featureAgents.js
index 1780a6213d..cc72025b53 100644
--- a/server/services/featureAgents.js
+++ b/server/services/featureAgents.js
@@ -11,7 +11,7 @@ import { join, dirname } from 'path';
import { fileURLToPath } from 'url';
import { existsSync } from 'fs';
import { v4 as uuidv4 } from 'uuid';
-import { cosEvents, emitLog } from './cosEvents.js';
+import { cosEvents } from './cosEvents.js';
import { ensureDir, PATHS, readJSONFile } from '../lib/fileUtils.js';
import { createMutex } from '../lib/asyncMutex.js';
import { getAppById } from './apps.js';
diff --git a/server/services/worktreeManager.js b/server/services/worktreeManager.js
index 78a3713320..f90e0d7c8d 100644
--- a/server/services/worktreeManager.js
+++ b/server/services/worktreeManager.js
@@ -221,7 +221,7 @@ export async function mergeBaseIntoFeatureWorktree(featureAgentId, sourceWorkspa
.then(() => ({ merged: true }))
.catch(err => {
// Abort failed merge
- execGit(['merge', '--abort'], worktreePath).catch(() => {});
+ await execGit(['merge', '--abort'], worktreePath).catch(() => {});
return { merged: false, reason: err.message };
});
diff --git a/server/services/worktreeManager.test.js b/server/services/worktreeManager.test.js
index 17ab693157..91dbcda2ef 100644
--- a/server/services/worktreeManager.test.js
+++ b/server/services/worktreeManager.test.js
@@ -112,8 +112,7 @@ detached
describe('Persistent Worktree Path Construction', () => {
function buildPersistentWorktreePath(worktreesDir, featureAgentId) {
- const path = require('path');
- return path.join(worktreesDir, '..', 'feature-agents', featureAgentId, 'worktree');
+ return `${worktreesDir}/../feature-agents/${featureAgentId}/worktree`;
}
it('should place worktree under feature-agents directory', () => {