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: stop on-demand model research from spawning two agents
[._.]/ Adam Eivy03b334838d95
diff --git a/server/lib/taskParser.js b/server/lib/taskParser.jsindex 062ce087e7..b4ca13a75b 100644--- a/server/lib/taskParser.js+++ b/server/lib/taskParser.js@@ -36,7 +36,11 @@// those reads and writes are deliberately best-effort, they miss SILENTLY. That// is how a preflight card (`preflight-`) sat at "Waiting for a free task slot"// through an entire pr-reviewer run, then got reaped as interrupted.-const INTERNAL_PREFIXES = ['sys-', 'app-improve-', 'cd-', 'preflight-'];+//+// `self-improve-` is minted by generateSelfImprovementTaskForType for on-demand+// and install-wide runs. Unregistered, it re-read as `task-self-improve-…`, which+// the queue saw as a SECOND task and spawned twice (model-comparison-refresh).+const INTERNAL_PREFIXES = ['sys-', 'app-improve-', 'cd-', 'preflight-', 'self-improve-'];const ALL_KNOWN_PREFIXES = ['task-', ...INTERNAL_PREFIXES];export const hasKnownPrefix = (id) => ALL_KNOWN_PREFIXES.some(p => id?.startsWith(p));diff --git a/server/lib/taskParser.test.js b/server/lib/taskParser.test.jsindex ae714ce2ec..fd554a1edb 100644--- a/server/lib/taskParser.test.js+++ b/server/lib/taskParser.test.js@@ -953,3 +953,12 @@ describe('unrepresentable status/priority never drops a task (#7239)', () => {.toEqual(['CRITICAL', 'HIGH', 'LOW', 'MEDIUM']);});});++describe('self-improve task ids survive a read round-trip', () => {+ it('keeps the generator-minted id instead of rewriting it to task-<id> (double-spawn regression)', () => {+ const id = 'self-improve-model-comparison-refresh-abc123';+ const md = generateTasksMarkdown(addTask([], { id, description: 'Research models' }));+ const [parsed] = parseTasksMarkdown(md);+ expect(parsed.id).toBe(id);+ });+});