Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: remove detach process flag to not popup terminal

Vanalitea33c04d8bff9
diff --git a/src-tauri/src/core/openclaw/sandbox_direct.rs b/src-tauri/src/core/openclaw/sandbox_direct.rs
index cb58603a1..c8c985f5c 100644
--- a/src-tauri/src/core/openclaw/sandbox_direct.rs
+++ b/src-tauri/src/core/openclaw/sandbox_direct.rs
@@ -111,7 +111,9 @@ impl Sandbox for DirectProcessSandbox {
#[cfg(target_os = "windows")]
{
use std::os::windows::process::CommandExt;
- cmd.creation_flags(0x08000000 | 0x00000008); // CREATE_NO_WINDOW | DETACHED_PROCESS
+ // CREATE_NO_WINDOW only — DETACHED_PROCESS conflicts and can
+ // cause Windows to allocate a visible console for the child.
+ cmd.creation_flags(0x08000000);
}
for (key, value) in &config.env_vars {
cmd.env(key, value);