fix: stabilize gateway startup and kernel i18n

This commit is contained in:
晴天
2026-05-22 15:38:56 +08:00
parent 7977608e5b
commit 76c4a56302
12 changed files with 65 additions and 23 deletions

View File

@@ -1664,7 +1664,6 @@ mod platform {
let runner_path = write_gateway_terminal_runner(&openclaw_dir, &cli)?;
let runner_path_str = runner_path.to_string_lossy().to_string();
let openclaw_dir_str = openclaw_dir.to_string_lossy().to_string();
let title_arg = format!("\"{GATEWAY_WINDOW_TITLE}\"");
// 外层 cmd /c 自身用 CREATE_NO_WINDOW 隐藏(短命桥接进程),
// 内部 `start` 会创建一个真正可见的新控制台窗口运行 runner.cmd。
@@ -1672,7 +1671,7 @@ mod platform {
cmd.args([
"/c",
"start",
title_arg.as_str(),
GATEWAY_WINDOW_TITLE,
"/D",
openclaw_dir_str.as_str(),
"cmd",

View File

@@ -14,11 +14,7 @@ fn bound_cli_path() -> Option<std::path::PathBuf> {
return None;
}
let p = std::path::PathBuf::from(raw);
if p.exists() && !is_rejected_cli_path(&p.to_string_lossy()) {
Some(p)
} else {
None
}
crate::commands::config::resolve_openclaw_cli_input_path(&p)
}
fn apply_openclaw_dir_env(cmd: &mut std::process::Command) {