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

fix: tolerate absent CoS capacity config (#5064)

[._.]/ Adam Eivy0d07534c38a6
diff --git a/server/services/subAgentSpawner.js b/server/services/subAgentSpawner.js
index 3d4e133446..6b5cb46118 100644
--- a/server/services/subAgentSpawner.js
+++ b/server/services/subAgentSpawner.js
@@ -378,7 +378,7 @@ async function runInitSpawner() {
const capacityState = await loadState();
const globalSlot = acquireCosGlobalSlot({
agents: capacityState.agents,
- limit: capacityState.config.maxConcurrentAgents,
+ limit: capacityState.config?.maxConcurrentAgents,
reservationId: task.id,
});
if (!globalSlot.ok) return holdTask(task, globalSlot.reason);