Skip to content

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

fix(terminal): compile the exit-file launcher only off Windows

Jason3261fecd1baf
diff --git a/src-tauri/src/commands/terminal_launch.rs b/src-tauri/src/commands/terminal_launch.rs
index b00a01069..ab7c21418 100644
--- a/src-tauri/src/commands/terminal_launch.rs
+++ b/src-tauri/src/commands/terminal_launch.rs
@@ -2153,6 +2153,8 @@ pub(crate) fn launch_terminal_running(command_line: &str, label: &str) -> Result
launch_terminal_with_script(command_line, label, None, &proxy_env)
}
+/// 只有 agy 登录在用,且 Windows 下 agy 不经脚本启动(见 `agy_account.rs`),所以只在非 Windows 编译。
+#[cfg(not(target_os = "windows"))]
pub(crate) fn launch_terminal_running_with_exit_file(
command_line: &str,
label: &str,