A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Keep the staging mark until the data has its new name
Fei24115296258b033e
diff --git a/app/src/move-data.mjs b/app/src/move-data.mjsindex 1c82f187..f0ebd755 100644--- a/app/src/move-data.mjs+++ b/app/src/move-data.mjs@@ -108,11 +108,12 @@ export async function copyData(from, to, signal) {await relink(join(origin, path), join(stage, path), roots, resolve(to))}signal?.throwIfAborted()- await rm(join(stage, MARK))if (existsSync(to)) await rmdir(to)await rename(stage, to)} catch (error) {await rm(stage, { recursive: true, force: true, maxRetries: 5 })throw error}+ // Only now: a staging folder cut short before its rename keeps the mark that lets it go.+ await rm(join(to, MARK), { force: true })}