Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Feat: Inherit stdio for executed commands

Maximilian Roose3b918b6f3d8
diff --git a/src/commands/worktree.rs b/src/commands/worktree.rs
index ad29b8145..bb1601850 100644
--- a/src/commands/worktree.rs
+++ b/src/commands/worktree.rs
@@ -297,6 +297,9 @@ fn execute_command_in_worktree(
.arg(shell_arg)
.arg(command)
.current_dir(worktree_path)
+ .stdin(std::process::Stdio::inherit())
+ .stdout(std::process::Stdio::inherit())
+ .stderr(std::process::Stdio::inherit())
.status()
.map_err(|e| GitError::CommandFailed(format!("Failed to execute command: {}", e)))?;