Skip to content

Commit c2a8220

Browse files
committed
Fix Windows release terminal candidate build
1 parent 7e419c8 commit c2a8220

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "jcode"
3-
version = "0.11.2"
3+
version = "0.11.3"
44
description = "Possibly the greatest coding agent ever built — blazing-fast TUI, multi-model, swarm coordination, 30+ tools"
55
edition = "2024"
66

src/cli/tui_launch.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,28 @@ fn find_wezterm_gui_binary() -> Option<String> {
600600
None
601601
}
602602

603+
#[cfg(not(unix))]
604+
fn resume_terminal_candidates_windows() -> Vec<String> {
605+
std::env::var("JCODE_RESUME_TERMINAL")
606+
.ok()
607+
.map(|value| {
608+
value
609+
.split(',')
610+
.map(str::trim)
611+
.filter(|value| !value.is_empty())
612+
.map(ToOwned::to_owned)
613+
.collect::<Vec<_>>()
614+
})
615+
.filter(|candidates| !candidates.is_empty())
616+
.unwrap_or_else(|| {
617+
vec![
618+
"wezterm".to_string(),
619+
"wt".to_string(),
620+
"alacritty".to_string(),
621+
]
622+
})
623+
}
624+
603625
#[cfg(not(unix))]
604626
pub fn spawn_resume_in_new_terminal(
605627
exe: &std::path::Path,

0 commit comments

Comments
 (0)