Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Merge pull request #5790 from ntdatt812/fix/5710-claude-auth-login

Steven Enamakele11b2374119e
diff --cc app/src-tauri/src/claude_code.rs
index a61e957de8,c54809d51e..8f7be5269b
--- a/app/src-tauri/src/claude_code.rs
+++ b/app/src-tauri/src/claude_code.rs
@@@ -22,15 -104,11 +104,11 @@@ fn linux_launch_candidates() -> Vec<(&'
pub fn claude_code_login_launch() -> Result<String, String> {
#[cfg(target_os = "windows")]
{
- // `start ""` opens a new console window; the empty quoted title
- // prevents cmd from interpreting the first arg as a title.
- // `cmd /k` keeps the window open after `claude login` exits so
- // the user can read any final output.
Command::new("cmd")
- .args(["/c", "start", "", "cmd", "/k", "claude login"])
+ .args(windows_launch_args())
.spawn()
.map_err(|e| format!("failed to open cmd: {e}"))?;
- return Ok("cmd".into());
+ Ok("cmd".into())
}
#[cfg(target_os = "macos")]