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: correct import source for completeExecution/errorExecution in agentCliSpawning

Adam Eivyd9e6e43705bf
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 6ec6fb8d4c..ecfffd84f9 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -53,3 +53,4 @@
## Fixed
- JIRA report provider discovery now tries all available API providers instead of failing on first unreachable one
+- `agentCliSpawning.js` imported `completeExecution`/`errorExecution` from `executionLanes.js` (wrong module); corrected to import from `toolStateMachine.js`, fixing server crash on startup
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000000..cabf43b5dd
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+24
\ No newline at end of file
diff --git a/server/services/agentCliSpawning.js b/server/services/agentCliSpawning.js
index cfe5d89c5b..378bd3b03d 100644
--- a/server/services/agentCliSpawning.js
+++ b/server/services/agentCliSpawning.js
@@ -15,7 +15,8 @@ import { updateAgent, completeAgent, appendAgentOutput } from './cosAgents.js';
import { registerSpawnedAgent, unregisterSpawnedAgent } from './agents.js';
import { markProviderUsageLimit, markProviderRateLimited } from './providerStatus.js';
import { updateTask } from './cos.js';
-import { release, completeExecution, errorExecution } from './executionLanes.js';
+import { release } from './executionLanes.js';
+import { completeExecution, errorExecution } from './toolStateMachine.js';
import { analyzeAgentFailure, resolveFailedTaskUpdate } from './agentErrorAnalysis.js';
import { completeAgentRun } from './agentRunTracking.js';
import { processAgentCompletion } from './agentCompletion.js';