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(backup): preserve agent launch directory after admitted setup

[._.]/ Adam Eivy25e851bcf394
diff --git a/server/services/agentSpawnDispatch.js b/server/services/agentSpawnDispatch.js
index 525031b332..bb1f891491 100644
--- a/server/services/agentSpawnDispatch.js
+++ b/server/services/agentSpawnDispatch.js
@@ -179,8 +179,8 @@ export async function dispatchAgentRun(context, { spawnViaRunner } = {}) {
sourceWorkspace ? capturePrimaryCheckoutState(sourceWorkspace) : null,
]);
let systemPromptFile = null;
+ const agentDir = join(AGENTS_DIR, agentId);
const { runId } = await withBackupAssetPublication(async () => {
- const agentDir = join(AGENTS_DIR, agentId);
if (!existsSync(agentDir)) {
await ensureDir(agentDir);
}