Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

ci(verify-dsh-bundle): temp-dir cleanup failure must not mask the DSH turn result

Marla7a906e0e5a17
diff --git a/scripts/verify-dsh-bundle.mjs b/scripts/verify-dsh-bundle.mjs
index b5e395a..e3de728 100644
--- a/scripts/verify-dsh-bundle.mjs
+++ b/scripts/verify-dsh-bundle.mjs
@@ -122,7 +122,13 @@ await step("DSH host answers through a mock model", async () => {
} finally {
await h.close().catch(() => {});
llm.close();
- fs.rmSync(home, { recursive: true, force: true, maxRetries: 5 });
+ // Windows can keep a file under the DSH home locked for a moment after close (the image turn writes the
+ // attachment store there); a leftover temp dir must not hide the turn's own result.
+ try {
+ fs.rmSync(home, { recursive: true, force: true, maxRetries: 10 });
+ } catch (e) {
+ console.log(` (left ${home}: ${e.code ?? e.message})`);
+ }
}
});
await step("koffi", () => `v${from("@deepseek-ai/dsh-subprocess-local")("koffi").version}`);