Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
refactor: Enhance output distinction and test snapshot consistency
Maximilian Roos9360b1b26c1d
diff --git a/CLAUDE.md b/CLAUDE.mdindex 6c9f28c49..65253eea8 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -46,6 +46,48 @@ Five canonical message patterns with their emojis:4. **Warnings**: π‘ + yellow text (non-blocking issues)5. **Hints**: π‘ + dimmed text (helpful suggestions)+### stdout vs stderr: Separation by Source++**Core Principle: Separate output by who generates it, not by message type.**++- **stdout**: All output generated by worktrunk (messages, directives, data, errors, warnings, progress)+- **stderr**: All output generated by child processes (git, npm, user commands)++This creates clean semantic separation: "Is it from us or from a child process?"++**Benefits:**+- Simple reasoning: one decision point (source), not multiple (type, severity, etc.)+- No cross-stream coordination needed (no flushing stderr before stdout directives)+- Better for piping: `wt list | jq` gets clean data, `wt switch -x "npm install" 2>/dev/null` suppresses npm noise+- Child process output never interferes with our protocol (directives, structured output)++**Trade-off:**+- Violates Unix convention that errors go to stderr+- Our "errors" are structured program output (validation failures, formatted git errors), not unexpected crashes+- Panics and assertion failures still go to stderr via Rust's default handler (which is correct)++**Implementation:**+```rust+use worktrunk::styling::{println, ERROR, ERROR_EMOJI};++// ALL our output goes to stdout (including errors)+println!("{ERROR_EMOJI} {ERROR}Branch already exists{ERROR:#}");+println!("β Created worktree");+println!("π‘ Run 'wt list' to see all worktrees");+```++**Child processes:**+```rust+// Redirect child stdout to stderr so all child output goes there+let wrapped = format!("{{ {}; }} 1>&2", command);+Command::new("sh")+ .arg("-c")+ .arg(&wrapped)+ .stdout(Stdio::inherit()) // Actually goes to stderr due to redirect+ .stderr(Stdio::inherit())+ .status()?;+```+### Temporal Locality: Show Success When Actions Complete**Principle: Emit success messages immediately when operations complete, not just in summaries.**@@ -120,7 +162,7 @@ crate::output::success(summary)?;Use anstyle's inline pattern `{style}text{style:#}` where `#` means reset:```rust-use worktrunk::styling::{eprintln, println, ERROR, ERROR_EMOJI, WARNING, WARNING_EMOJI, HINT, HINT_EMOJI, AnstyleStyle};+use worktrunk::styling::{println, ERROR, ERROR_EMOJI, WARNING, WARNING_EMOJI, HINT, HINT_EMOJI, AnstyleStyle};use anstyle::{AnsiColor, Color};// Progress@@ -131,11 +173,11 @@ println!("π {cyan}Rebasing onto main...{cyan:#}");let green = AnstyleStyle::new().fg_color(Some(Color::Ansi(AnsiColor::Green)));println!("β {green}Pushed to main{green:#}");-// Error-eprintln!("{ERROR_EMOJI} {ERROR}Working tree has uncommitted changes{ERROR:#}");+// Error - ALL our output goes to stdout+println!("{ERROR_EMOJI} {ERROR}Working tree has uncommitted changes{ERROR:#}");-// Warning-eprintln!("{WARNING_EMOJI} {WARNING}Uncommitted changes detected{WARNING:#}");+// Warning - ALL our output goes to stdout+println!("{WARNING_EMOJI} {WARNING}Uncommitted changes detected{WARNING:#}");// Hintprintln!("{HINT_EMOJI} {HINT}Use 'wt list' to see all worktrees{HINT:#}");@@ -146,15 +188,15 @@ println!("{HINT_EMOJI} {HINT}Use 'wt list' to see all worktrees{HINT:#}");Compose styles using anstyle methods (`.bold()`, `.fg_color()`, etc.):```rust-use worktrunk::styling::{eprintln, AnstyleStyle, ERROR, WARNING};+use worktrunk::styling::{println, AnstyleStyle, ERROR, WARNING};// Error with bold branch namelet error_bold = ERROR.bold();-eprintln!("β Branch '{error_bold}{branch}{error_bold:#}' already exists");+println!("β Branch '{error_bold}{branch}{error_bold:#}' already exists");// Warning with boldlet warning_bold = WARNING.bold();-eprintln!("π‘ {warning_bold}{message}{warning_bold:#}");+println!("π‘ {warning_bold}{message}{warning_bold:#}");// Just bold (no color)let bold = AnstyleStyle::new().bold();@@ -166,11 +208,11 @@ println!("Switched to worktree: {bold}{branch}{bold:#}");**Always format branch names in bold** when they appear in messages:```rust-use worktrunk::styling::{AnstyleStyle, ERROR};+use worktrunk::styling::{println, AnstyleStyle, ERROR};// Good - bold branch name in errorlet error_bold = ERROR.bold();-eprintln!("β Branch '{error_bold}{branch}{error_bold:#}' already exists");+println!("β Branch '{error_bold}{branch}{error_bold:#}' already exists");// Good - bold in regular messagelet bold = AnstyleStyle::new().bold();@@ -238,22 +280,22 @@ Styling (bold, dim, color) already provides visual hierarchy. Manual indentation```rust// Good - bullet is enoughfor file in &files {- eprintln!("{dim}β’{dim:#} {}", file);+ println!("{dim}β’{dim:#} {}", file);}// Bad - redundant indentfor file in &files {- eprintln!(" {dim}β’{dim:#} {}", file);+ println!(" {dim}β’{dim:#} {}", file);}```3. **Log file paths**: No indent, dimming is sufficient```rust// Good- eprintln!("{dim}Logs: {}{dim:#}", path);+ println!("{dim}Logs: {}{dim:#}", path);// Bad- eprintln!(" {dim}Logs: {}{dim:#}", path);+ println!(" {dim}Logs: {}{dim:#}", path);```4. **Quoted content (commands, config)**: Use `format_with_gutter()` instead of manual indents@@ -304,15 +346,15 @@ use worktrunk::styling::{use anstyle::Style;// Simple error-eprintln!("{ERROR_EMOJI} {ERROR}Working tree has uncommitted changes{ERROR:#}");+println!("{ERROR_EMOJI} {ERROR}Working tree has uncommitted changes{ERROR:#}");// Error with bold branch namelet error_bold = ERROR.bold();-eprintln!("{ERROR_EMOJI} Branch '{error_bold}{branch}{error_bold:#}' already exists");+println!("{ERROR_EMOJI} Branch '{error_bold}{branch}{error_bold:#}' already exists");// Warning with boldlet warning_bold = WARNING.bold();-eprintln!("{WARNING_EMOJI} {warning_bold}Uncommitted changes detected{warning_bold:#}");+println!("{WARNING_EMOJI} {warning_bold}Uncommitted changes detected{warning_bold:#}");// Hintprintln!("{HINT_EMOJI} {HINT}Use 'wt list' to see all worktrees{HINT:#}");@@ -323,7 +365,7 @@ println!("Switched to worktree: {bold}{branch}{bold:#}");// Complex multi-part errorlet error_bold = ERROR.bold();-eprintln!("{ERROR_EMOJI} Not a fast-forward from '{error_bold}{target_branch}{error_bold:#}' to HEAD");+println!("{ERROR_EMOJI} Not a fast-forward from '{error_bold}{target_branch}{error_bold:#}' to HEAD");// Dimmed secondary infolet dim = Style::new().dimmed();@@ -506,7 +548,7 @@ This illustrates the pattern - follow these steps when adding any new output cap// In interactive.rsimpl InteractiveOutput {pub fn warning(&mut self, message: String) -> io::Result<()> {- eprintln!("{WARNING_EMOJI} {WARNING}{message}{WARNING:#}");+ println!("{WARNING_EMOJI} {WARNING}{message}{WARNING:#}");Ok(())}}diff --git a/src/commands/completion.rs b/src/commands/completion.rsindex b5cf8dce4..cb68847e2 100644--- a/src/commands/completion.rs+++ b/src/commands/completion.rs@@ -15,7 +15,7 @@ use clap_complete::{Shell as CompletionShell, generate};use std::io;use worktrunk::git::{GitError, Repository};use worktrunk::shell::Shell;-use worktrunk::styling::{ERROR, ERROR_EMOJI, eprintln};+use worktrunk::styling::{ERROR, ERROR_EMOJI, println};pub fn handle_completion(shell: Shell, cli_cmd: &mut Command) {let completion_shell = match shell {@@ -117,7 +117,7 @@ where{get_branches_fn().unwrap_or_else(|e| {if std::env::var("WT_DEBUG_COMPLETION").is_ok() {- eprintln!("{ERROR_EMOJI} {ERROR}Completion error: {e}{ERROR:#}");+ println!("{ERROR_EMOJI} {ERROR}Completion error: {e}{ERROR:#}");}Vec::new()})diff --git a/src/commands/configure_shell.rs b/src/commands/configure_shell.rsindex 2183d96bb..d22d0b2fa 100644--- a/src/commands/configure_shell.rs+++ b/src/commands/configure_shell.rs@@ -335,11 +335,12 @@ fn configure_fish_file(fn prompt_for_confirmation(results: &[ConfigureResult]) -> Result<bool, String> {use anstyle::{AnsiColor, Color, Style};- use worktrunk::styling::{HINT_EMOJI, eprint};+ use worktrunk::styling::{HINT_EMOJI, eprint, eprintln};let cyan = Style::new().fg_color(Some(Color::Ansi(AnsiColor::Cyan)));let cyan_bold = cyan.bold();+ // Interactive prompts go to stderr so they appear even when stdout is redirectedeprintln!();eprintln!("{HINT_EMOJI} {cyan_bold}Configuration changes:{cyan_bold:#}");eprintln!();diff --git a/src/commands/init.rs b/src/commands/init.rsindex 70a6ae86f..bc6eb4601 100644--- a/src/commands/init.rs+++ b/src/commands/init.rs@@ -1,7 +1,7 @@use clap::Command;use clap_complete::{Shell as CompletionShell, generate};use worktrunk::shell;-use worktrunk::styling::{ERROR, ERROR_EMOJI, eprintln};+use worktrunk::styling::{ERROR, ERROR_EMOJI, println};pub fn handle_init(shell_name: &str, cmd_name: &str, cli_cmd: &mut Command) -> Result<(), String> {let shell = shell_name.parse::<shell::Shell>()?;@@ -21,7 +21,7 @@ pub fn handle_init(shell_name: &str, cmd_name: &str, cli_cmd: &mut Command) -> R// Check if shell supports completionif !shell.supports_completion() {- eprintln!("{ERROR_EMOJI} {ERROR}Completion not yet supported for {shell}{ERROR:#}");+ println!("{ERROR_EMOJI} {ERROR}Completion not yet supported for {shell}{ERROR:#}");std::process::exit(1);}diff --git a/src/commands/list/model.rs b/src/commands/list/model.rsindex eb495765e..ad228447c 100644--- a/src/commands/list/model.rs+++ b/src/commands/list/model.rs@@ -1,7 +1,7 @@use rayon::prelude::*;use std::path::PathBuf;use worktrunk::git::{GitError, Repository};-use worktrunk::styling::{HINT, HINT_EMOJI, WARNING, WARNING_EMOJI, eprintln};+use worktrunk::styling::{HINT, HINT_EMOJI, WARNING, WARNING_EMOJI, println};#[derive(serde::Serialize)]pub struct WorktreeInfo {@@ -310,10 +310,10 @@ pub fn gather_list_data(Ok(branch_info) => items.push(ListItem::Branch(branch_info)),Err(e) => {let warning_bold = WARNING.bold();- eprintln!(+ println!("{WARNING_EMOJI} {WARNING}Failed to enrich branch {warning_bold}{branch}{warning_bold:#}: {e}{WARNING:#}");- eprintln!(+ println!("{HINT_EMOJI} {HINT}This branch will be shown with limited information{HINT:#}");}diff --git a/src/commands/merge.rs b/src/commands/merge.rsindex d66c9cf64..b33c9288b 100644--- a/src/commands/merge.rs+++ b/src/commands/merge.rs@@ -1,8 +1,6 @@use worktrunk::config::{ProjectConfig, WorktrunkConfig};use worktrunk::git::{GitError, Repository};-use worktrunk::styling::{- AnstyleStyle, CYAN, CYAN_BOLD, eprint, eprintln, format_with_gutter, println,-};+use worktrunk::styling::{AnstyleStyle, CYAN, CYAN_BOLD, eprint, format_with_gutter, println};use super::command_executor::{CommandContext, prepare_project_commands};use super::worktree::handle_push;@@ -360,14 +358,14 @@ fn run_pre_merge_commands("Pre-merge commands",|_, command| {let dim = AnstyleStyle::new().dimmed();- eprintln!("{dim}Skipping pre-merge command: {command}{dim:#}");+ println!("{dim}Skipping pre-merge command: {command}{dim:#}");},)?;for prepared in commands {use std::io::Write;use worktrunk::styling;- eprintln!(+ println!("π {CYAN}Running pre-merge command {CYAN_BOLD}{name}{CYAN_BOLD:#}:{CYAN:#}",name = prepared.name);@@ -424,7 +422,7 @@ fn execute_post_merge_commands("Post-merge commands",|_, command| {let dim = AnstyleStyle::new().dimmed();- eprintln!("{dim}Skipping command: {command}{dim:#}");+ println!("{dim}Skipping command: {command}{dim:#}");},)?;@@ -435,7 +433,7 @@ fn execute_post_merge_commands(// Execute each command sequentially in the main worktreefor prepared in commands {use std::io::Write;- eprintln!(+ println!("π {CYAN}Running post-merge command {CYAN_BOLD}{name}{CYAN_BOLD:#}:{CYAN:#}",name = prepared.name);@@ -445,7 +443,7 @@ fn execute_post_merge_commands(if let Err(e) = execute_command_in_worktree(main_worktree_path, &prepared.expanded) {use worktrunk::styling::WARNING_EMOJI;let warning_bold = WARNING.bold();- eprintln!(+ println!("{WARNING_EMOJI} {WARNING}Command {warning_bold}{name}{warning_bold:#} failed: {e}{WARNING:#}",name = prepared.name,);diff --git a/src/commands/worktree.rs b/src/commands/worktree.rsindex c2a4d8ffa..051478998 100644--- a/src/commands/worktree.rs+++ b/src/commands/worktree.rs@@ -105,7 +105,7 @@ use worktrunk::config::{ProjectConfig, WorktrunkConfig};use worktrunk::git::{GitError, Repository};use worktrunk::styling::{ADDITION, AnstyleStyle, CYAN, CYAN_BOLD, DELETION, GREEN, GREEN_BOLD, SUCCESS_EMOJI, WARNING,- WARNING_EMOJI, eprint, eprintln, format_with_gutter,+ WARNING_EMOJI, eprint, format_with_gutter, println,};use super::command_executor::{CommandContext, prepare_project_commands};@@ -161,7 +161,7 @@ pub fn handle_switch(// Check if base flag was provided without create flagif base.is_some() && !create {- eprintln!(+ println!("{WARNING_EMOJI} {WARNING}--base flag is only used with --create, ignoring{WARNING:#}");}@@ -261,8 +261,8 @@ fn remove_current_worktree(repo: &Repository) -> Result<RemoveResult, GitError>// Remove the worktreeif let Err(e) = repo.remove_worktree(&worktree_root) {- eprintln!("{WARNING_EMOJI} {WARNING}Failed to remove worktree: {e}{WARNING:#}");- eprintln!(+ println!("{WARNING_EMOJI} {WARNING}Failed to remove worktree: {e}{WARNING:#}");+ println!("You may need to run 'git worktree remove {}' manually",worktree_root.display());@@ -320,8 +320,8 @@ fn remove_worktree_by_name(repo: &Repository, branch_name: &str) -> Result<Remov// Remove the worktreeif let Err(e) = repo.remove_worktree(&worktree_path) {- eprintln!("{WARNING_EMOJI} {WARNING}Failed to remove worktree: {e}{WARNING:#}");- eprintln!(+ println!("{WARNING_EMOJI} {WARNING}Failed to remove worktree: {e}{WARNING:#}");+ println!("You may need to run 'git worktree remove {}' manually",worktree_path.display());@@ -419,7 +419,7 @@ fn execute_post_create_commands("Post-create commands",|_, command| {let dim = AnstyleStyle::new().dimmed();- eprintln!("{dim}Skipping command: {command}{dim:#}");+ println!("{dim}Skipping command: {command}{dim:#}");},)?;@@ -430,13 +430,13 @@ fn execute_post_create_commands(// Execute each command sequentiallyfor prepared in commands {use std::io::Write;- eprintln!("π {CYAN}Executing (post-create):{CYAN:#}");+ println!("π {CYAN}Executing (post-create):{CYAN:#}");eprint!("{}", format_with_gutter(&prepared.expanded, "", None)); // Gutter at column 0let _ = std::io::stderr().flush();if let Err(e) = execute_command_in_worktree(worktree_path, &prepared.expanded) {let warning_bold = WARNING.bold();- eprintln!(+ println!("{WARNING_EMOJI} {WARNING}Command {warning_bold}{name}{warning_bold:#} failed: {e}{WARNING:#}",name = prepared.name,);@@ -478,7 +478,7 @@ fn spawn_post_start_commands("Post-start commands",|_, command| {let dim = AnstyleStyle::new().dimmed();- eprintln!("{dim}Skipping command: {command}{dim:#}");+ println!("{dim}Skipping command: {command}{dim:#}");},)?;@@ -489,7 +489,7 @@ fn spawn_post_start_commands(// Spawn each command as a detached background processfor prepared in commands {use std::io::Write;- eprintln!("π {CYAN}Starting (background):{CYAN:#}");+ println!("π {CYAN}Starting (background):{CYAN:#}");eprint!("{}", format_with_gutter(&prepared.expanded, "", None));let _ = std::io::stderr().flush();@@ -499,7 +499,7 @@ fn spawn_post_start_commands(// Log file path not shown - only needed for debugging failures}Err(e) => {- eprintln!(+ println!("{WARNING_EMOJI} {WARNING}Failed to spawn '{name}': {e}{WARNING:#}",name = prepared.name,);diff --git a/src/output/directive.rs b/src/output/directive.rsindex 8bbe44b4e..e8a903b56 100644--- a/src/output/directive.rs+++ b/src/output/directive.rs@@ -15,10 +15,6 @@ impl DirectiveOutput {}pub fn success(&mut self, message: String) -> io::Result<()> {- // Ensure any prior stderr output is NUL-terminated before writing to stdout- write!(io::stderr(), "\0")?;- io::stderr().flush()?;-let plain = strip_str(&message).to_string();write!(io::stdout(), "{}\0", plain)?;io::stdout().flush()@@ -30,28 +26,17 @@ impl DirectiveOutput {}pub fn change_directory(&mut self, path: &Path) -> io::Result<()> {- // Ensure any prior stderr output is NUL-terminated before writing directive- // The shell wrapper merges stderr+stdout via 2>&1 and splits on NUL bytes,- // so we need to terminate stderr to prevent it from concatenating with directives- write!(io::stderr(), "\0")?;- io::stderr().flush()?;-write!(io::stdout(), "__WORKTRUNK_CD__{}\0", path.display())?;io::stdout().flush()}pub fn execute(&mut self, command: String) -> io::Result<()> {- // Ensure any prior stderr output is NUL-terminated before writing directive- write!(io::stderr(), "\0")?;- io::stderr().flush()?;-write!(io::stdout(), "__WORKTRUNK_EXEC__{}\0", command)?;io::stdout().flush()}pub fn flush(&mut self) -> io::Result<()> {- io::stdout().flush()?;- io::stderr().flush()+ io::stdout().flush()}pub fn terminate_output(&mut self) -> io::Result<()> {diff --git a/src/output/interactive.rs b/src/output/interactive.rsindex 44ea24d9d..2fe7893f1 100644--- a/src/output/interactive.rs+++ b/src/output/interactive.rs@@ -56,9 +56,10 @@ impl InteractiveOutput {)));}- // Print output directly (we're already inside the output framework)+ // Print child command output to stderr (all child output goes to stderr)if !output.stdout.is_empty() {- println!("{}", String::from_utf8_lossy(&output.stdout).trim_end());+ use worktrunk::styling::eprintln;+ eprintln!("{}", String::from_utf8_lossy(&output.stdout).trim_end());}if !output.stderr.is_empty() {use worktrunk::styling::eprintln;diff --git a/src/styling.rs b/src/styling.rsindex 33cff4d09..edd9c644e 100644--- a/src/styling.rs+++ b/src/styling.rs@@ -4,6 +4,14 @@//! - anstream for auto-detecting color support//! - anstyle for composable styling//! - Semantic style constants for domain-specific use+//!+//! ## stdout vs stderr principle+//!+//! - **stdout**: ALL worktrunk output (messages, errors, warnings, directives, data)+//! - **stderr**: ALL child process output (git, npm, user commands)+//! - **Exception**: Interactive prompts use stderr so they appear even when stdout is redirected+//!+//! Use `println!` for all worktrunk messages. Use `eprintln!` only for interactive prompts.use anstyle::{AnsiColor, Color, Style};use synoptic::{TokOpt, from_extension};@@ -55,10 +63,10 @@ pub const PROGRESS_EMOJI: &str = "π";/// Success emoji - use with GREEN style: `println!("{SUCCESS_EMOJI} {GREEN}message{GREEN:#}");`pub const SUCCESS_EMOJI: &str = "β ";-/// Error emoji - use with ERROR style: `eprintln!("{ERROR_EMOJI} {ERROR}message{ERROR:#}");`+/// Error emoji - use with ERROR style: `println!("{ERROR_EMOJI} {ERROR}message{ERROR:#}");`pub const ERROR_EMOJI: &str = "β";-/// Warning emoji - use with WARNING style: `eprintln!("{WARNING_EMOJI} {WARNING}message{WARNING:#}");`+/// Warning emoji - use with WARNING style: `println!("{WARNING_EMOJI} {WARNING}message{WARNING:#}");`pub const WARNING_EMOJI: &str = "π‘";/// Hint emoji - use with HINT style: `println!("{HINT_EMOJI} {HINT}message{HINT:#}");`diff --git a/tests/integration_tests/directives.rs b/tests/integration_tests/directives.rsindex 7ef2b48dc..6b003ead8 100644--- a/tests/integration_tests/directives.rs+++ b/tests/integration_tests/directives.rs@@ -173,7 +173,7 @@ fn test_merge_internal_keep() {.arg("--keep").current_dir(&feature_wt);- assert_cmd_snapshot!(cmd, @"success: true\nexit_code: 0\n----- stdout -----\n\nKept worktree (use 'wt remove' to clean up)\0\n----- stderr -----\n\0");+ assert_cmd_snapshot!(cmd, @"success: true\nexit_code: 0\n----- stdout -----\n\nKept worktree (use 'wt remove' to clean up)\0\n----- stderr -----");});}@@ -229,6 +229,6 @@ fn test_merge_internal_remove() {.arg("main").current_dir(&feature_wt);- assert_cmd_snapshot!(cmd, @"success: true\nexit_code: 0\n----- stdout -----\n__WORKTRUNK_CD__[PATH]\0\nReturned to primary at [REPO]\0\n----- stderr -----\n\0\0");+ assert_cmd_snapshot!(cmd, @"success: true\nexit_code: 0\n----- stdout -----\n__WORKTRUNK_CD__[PATH]\0\nReturned to primary at [REPO]\0\n----- stderr -----");});}diff --git a/tests/snapshots/integration__integration_tests__e2e_shell__bash_e2e_switch_linebreaks.snap b/tests/snapshots/integration__integration_tests__e2e_shell__bash_e2e_switch_linebreaks.snapindex 8510da29c..973ea8331 100644Binary files a/tests/snapshots/integration__integration_tests__e2e_shell__bash_e2e_switch_linebreaks.snap and b/tests/snapshots/integration__integration_tests__e2e_shell__bash_e2e_switch_linebreaks.snap differdiff --git a/tests/snapshots/integration__integration_tests__init__init_bash.snap b/tests/snapshots/integration__integration_tests__init__init_bash.snapindex aaa30ba2d..84ad1d70c 100644--- a/tests/snapshots/integration__integration_tests__init__init_bash.snap+++ b/tests/snapshots/integration__integration_tests__init__init_bash.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpBzDItE/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__init__init_bash_custom_prefix.snap b/tests/snapshots/integration__integration_tests__init__init_bash_custom_prefix.snapindex 6ea690824..3e1f2af18 100644--- a/tests/snapshots/integration__integration_tests__init__init_bash_custom_prefix.snap+++ b/tests/snapshots/integration__integration_tests__init__init_bash_custom_prefix.snap@@ -13,11 +13,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpNl0mla/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__init__init_elvish.snap b/tests/snapshots/integration__integration_tests__init__init_elvish.snapdeleted file mode 100644index cdd846edf..000000000--- a/tests/snapshots/integration__integration_tests__init__init_elvish.snap+++ /dev/null@@ -1,101 +0,0 @@-----source: tests/integration_tests/init.rs-info:- program: wt- args:- - init- - elvish- env:- CLICOLOR_FORCE: "1"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: /dev/null- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpXQiYi3/test-config.toml-----success: false-exit_code: 1------ stdout ------# worktrunk shell integration for elvish--# Only initialize if wt is available-if (has-external wt) {- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: set E:WORKTRUNK_BIN = ./target/debug/wt- var _WORKTRUNK_CMD = wt- if (has-env WORKTRUNK_BIN) {- set _WORKTRUNK_CMD = $E:WORKTRUNK_BIN- }-- # Helper function to parse wt output and handle directives- # Directives are NUL-terminated to support multi-line commands- fn _wt_exec {|@args|- var exit-code = 0- var output = ""- var exec-cmd = ""-- # Capture stdout for directives, let stderr pass through to terminal- # This preserves TTY for color detection- # TODO: Capture actual exit code from wt command, not just success/failure- try {- set output = (e:$_WORKTRUNK_CMD $@args | slurp)- } catch e {- set exit-code = 1- set output = $e[reason][content]- }-- # Split output on NUL bytes, process each chunk- var chunks = [(str:split "\x00" $output)]- for chunk $chunks {- if (str:has-prefix $chunk "__WORKTRUNK_CD__") {- # CD directive - extract path and change directory- var path = (str:trim-prefix $chunk "__WORKTRUNK_CD__")- cd $path- } elif (str:has-prefix $chunk "__WORKTRUNK_EXEC__") {- # EXEC directive - extract command (may contain newlines)- set exec-cmd = (str:trim-prefix $chunk "__WORKTRUNK_EXEC__")- } elif (!=s $chunk "") {- # Regular output - print it (preserving newlines)- print $chunk- }- }-- # Execute command if one was specified- if (!=s $exec-cmd "") {- eval $exec-cmd- }-- # Return exit code (will throw exception if non-zero)- if (!=s $exit-code 0) {- fail "command failed with exit code "$exit-code- }- }-- # Override wt command to add --internal flag for switch, remove, and merge- fn wt {|@args|- if (== (count $args) 0) {- e:$_WORKTRUNK_CMD- return- }-- var subcommand = $args[0]-- if (or (eq $subcommand "switch") (eq $subcommand "remove") (eq $subcommand "merge")) {- # Commands that need --internal for directory change support- var rest-args = $args[1..]- _wt_exec --internal $subcommand $@rest-args- } else {- # All other commands pass through directly- e:$_WORKTRUNK_CMD $@args- }- }-}--# Static completions (commands and flags)------- stderr ------β [31mCompletion not yet supported for elvish[0mdiff --git a/tests/snapshots/integration__integration_tests__init__init_fish.snap b/tests/snapshots/integration__integration_tests__init__init_fish.snapindex fdb816ae4..b6ed3b7ba 100644--- a/tests/snapshots/integration__integration_tests__init__init_fish.snap+++ b/tests/snapshots/integration__integration_tests__init__init_fish.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpHIsONe/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpPrc5Yo/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__init__init_nushell.snap b/tests/snapshots/integration__integration_tests__init__init_nushell.snapdeleted file mode 100644index 7da95172e..000000000--- a/tests/snapshots/integration__integration_tests__init__init_nushell.snap+++ /dev/null@@ -1,87 +0,0 @@-----source: tests/integration_tests/init.rs-info:- program: wt- args:- - init- - nushell- env:- CLICOLOR_FORCE: "1"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: /dev/null- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp123wq4/test-config.toml-----success: false-exit_code: 1------ stdout ------# worktrunk shell integration for nushell--# Only initialize if wt is available-if (which wt | is-not-empty) {- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: $env.WORKTRUNK_BIN = ./target/debug/wt- let _WORKTRUNK_CMD = (if ($env.WORKTRUNK_BIN? | is-not-empty) { $env.WORKTRUNK_BIN } else { "wt" })-- # Helper function to parse wt output and handle directives- # Directives are NUL-terminated to support multi-line commands- export def --env _wt_exec [...args] {- let result = (do { ^$_WORKTRUNK_CMD ...$args } | complete)- mut exec_cmd = ""-- # Split output on NUL bytes, process each chunk- for chunk in ($result.stdout | split row "\u{0000}") {- if ($chunk | str starts-with "__WORKTRUNK_CD__") {- # CD directive - extract path and change directory- # TODO: Use str replace instead of hard-coded offset (fragile if prefix changes)- let path = ($chunk | str substring 16..)- cd $path- } else if ($chunk | str starts-with "__WORKTRUNK_EXEC__") {- # EXEC directive - extract command (may contain newlines)- # TODO: Use str replace instead of hard-coded offset (fragile if prefix changes)- $exec_cmd = ($chunk | str substring 18..)- } else if ($chunk | str length) > 0 {- # Regular output - print it with newline- print $chunk- }- }-- # Execute command if one was specified- if ($exec_cmd != "") {- nu -c $exec_cmd- }-- # Return the exit code- return $result.exit_code- }-- # Override wt command to add --internal flag for switch, remove, and merge- # Use --wrapped to pass through all flags without parsing them- export def --env --wrapped wt [...rest] {- let subcommand = ($rest | get 0? | default "")-- match $subcommand {- "switch" | "remove" | "merge" => {- # Commands that need --internal for directory change support- let rest_args = ($rest | skip 1)- let internal_args = (["--internal", $subcommand] | append $rest_args)- let exit_code = (_wt_exec ...$internal_args)- return $exit_code- }- _ => {- # All other commands pass through directly- ^$_WORKTRUNK_CMD ...$rest- }- }- }-}--# Static completions (commands and flags)------- stderr ------β [31mCompletion not yet supported for nushell[0mdiff --git a/tests/snapshots/integration__integration_tests__init__init_oil.snap b/tests/snapshots/integration__integration_tests__init__init_oil.snapdeleted file mode 100644index d7df214fb..000000000--- a/tests/snapshots/integration__integration_tests__init__init_oil.snap+++ /dev/null@@ -1,399 +0,0 @@-----source: tests/integration_tests/init.rs-info:- program: wt- args:- - init- - oil- env:- CLICOLOR_FORCE: "1"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: /dev/null- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpxLMelz/test-config.toml-----success: true-exit_code: 0------ stdout ------# worktrunk shell integration for oil--# Only initialize if wt is available-if command -v wt >/dev/null 2>&1; then- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: export WORKTRUNK_BIN=./target/debug/wt- _WORKTRUNK_CMD="${WORKTRUNK_BIN:-wt}"-- # Helper function to parse wt output and handle directives- # Directives are NUL-terminated to support multi-line commands- _wt_exec() {- local exec_cmd="" chunk exit_code- local exit_code_file- exit_code_file=$(mktemp) || { echo "Failed to create temp file" >&2; return 1; }-- # Parse stdout for directives (NUL-delimited)- # Let stderr pass through to terminal (preserves TTY for color detection)- # Write exit code to temp file since it can't be captured from process substitution- # The || [[ -n "$chunk" ]] handles non-NUL-terminated output (e.g., error messages)- while IFS= read -r -d '' chunk || [[ -n "$chunk" ]]; do- if [[ "$chunk" == __WORKTRUNK_CD__* ]]; then- # CD directive - extract path and change directory- local path="${chunk#__WORKTRUNK_CD__}"- \cd "$path"- elif [[ "$chunk" == __WORKTRUNK_EXEC__* ]]; then- # EXEC directive - extract command (may contain newlines)- exec_cmd="${chunk#__WORKTRUNK_EXEC__}"- else- # Regular output - print it with newline- printf '%s\n' "$chunk"- fi- done < <(command "$_WORKTRUNK_CMD" "$@"; echo "$?" > "$exit_code_file")-- # Read exit code from temp file- exit_code=$(cat "$exit_code_file" 2>/dev/null || echo 0)-- # Cleanup temp file- \rm -f "$exit_code_file"-- # Execute command if one was specified- # Security: Command is user-provided from -x flag; eval is intentional.- # NUL-termination allows multi-line commands.- # Exit code semantics: Returns wt's exit code, not the executed command's.- # This allows detecting wt failures (e.g., branch creation errors).- # The executed command runs for side effects; its failure is logged but doesn't affect exit code.- if [[ -n "$exec_cmd" ]]; then- if ! eval "$exec_cmd"; then- echo "Warning: Command execution failed (exit code $?)" >&2- fi- fi-- return $exit_code- }-- # Override wt command to add --internal flag for switch, remove, and merge- wt() {- local subcommand="$1"-- case "$subcommand" in- switch|remove|merge)- # Commands that need --internal for directory change support- shift- _wt_exec --internal "$subcommand" "$@"- ;;- *)- # All other commands pass through directly- command "$_WORKTRUNK_CMD" "$@"- ;;- esac- }-- # Dynamic completion function- _wt_complete() {- local cur="${COMP_WORDS[COMP_CWORD]}"-- # Call wt complete with current command line- local completions=$(command "$_WORKTRUNK_CMD" complete "${COMP_WORDS[@]}" 2>/dev/null)- COMPREPLY=($(compgen -W "$completions" -- "$cur"))- }-- # Register dynamic completion- complete -F _wt_complete wt-fi--# Static completions (commands and flags)-_wt() {- local i cur prev opts cmd- COMPREPLY=()- if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then- cur="$2"- else- cur="${COMP_WORDS[COMP_CWORD]}"- fi- prev="$3"- cmd=""- opts=""-- for i in "${COMP_WORDS[@]:0:COMP_CWORD}"- do- case "${cmd},${i}" in- ",$1")- cmd="wt"- ;;- wt,complete)- cmd="wt__complete"- ;;- wt,completion)- cmd="wt__completion"- ;;- wt,config)- cmd="wt__config"- ;;- wt,configure-shell)- cmd="wt__configure__shell"- ;;- wt,init)- cmd="wt__init"- ;;- wt,list)- cmd="wt__list"- ;;- wt,merge)- cmd="wt__merge"- ;;- wt,push)- cmd="wt__push"- ;;- wt,remove)- cmd="wt__remove"- ;;- wt,switch)- cmd="wt__switch"- ;;- wt__config,init)- cmd="wt__config__init"- ;;- wt__config,list)- cmd="wt__config__list"- ;;- *)- ;;- esac- done-- case "${cmd}" in- wt)- opts="-v -h -V --verbose --help --version init configure-shell config list switch remove push merge completion complete"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__complete)- opts="-v -h --verbose --help [ARGS]..."- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__completion)- opts="-v -h --verbose --help bash elvish fish nushell oil powershell xonsh zsh"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__config)- opts="-v -h --verbose --help init list"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__config__init)- opts="-v -h --verbose --help"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__config__list)- opts="-v -h --verbose --help"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__configure__shell)- opts="-y -v -h --shell --cmd --yes --verbose --help"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- --shell)- COMPREPLY=($(compgen -W "bash elvish fish nushell oil powershell xonsh zsh" -- "${cur}"))- return 0- ;;- --cmd)- COMPREPLY=($(compgen -f "${cur}"))- return 0- ;;- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__init)- opts="-v -h --cmd --verbose --help <SHELL>"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- --cmd)- COMPREPLY=($(compgen -f "${cur}"))- return 0- ;;- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__list)- opts="-v -h --format --branches --verbose --help"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- --format)- COMPREPLY=($(compgen -W "table json" -- "${cur}"))- return 0- ;;- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__merge)- opts="-s -k -m -f -v -h --squash --keep --message --no-verify --force --verbose --help [TARGET]"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- --message)- COMPREPLY=($(compgen -f "${cur}"))- return 0- ;;- -m)- COMPREPLY=($(compgen -f "${cur}"))- return 0- ;;- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__push)- opts="-v -h --allow-merge-commits --verbose --help [TARGET]"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__remove)- opts="-v -h --verbose --help [WORKTREE]"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- wt__switch)- opts="-c -b -x -f -v -h --create --base --execute --force --no-config-commands --verbose --help <BRANCH>"- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- fi- case "${prev}" in- --base)- COMPREPLY=($(compgen -f "${cur}"))- return 0- ;;- -b)- COMPREPLY=($(compgen -f "${cur}"))- return 0- ;;- --execute)- COMPREPLY=($(compgen -f "${cur}"))- return 0- ;;- -x)- COMPREPLY=($(compgen -f "${cur}"))- return 0- ;;- *)- COMPREPLY=()- ;;- esac- COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )- return 0- ;;- esac-}--if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then- complete -F _wt -o nosort -o bashdefault -o default wt-else- complete -F _wt -o bashdefault -o default wt-fi------- stderr -----diff --git a/tests/snapshots/integration__integration_tests__init__init_powershell.snap b/tests/snapshots/integration__integration_tests__init__init_powershell.snapdeleted file mode 100644index 2f42f1a2d..000000000--- a/tests/snapshots/integration__integration_tests__init__init_powershell.snap+++ /dev/null@@ -1,103 +0,0 @@-----source: tests/integration_tests/init.rs-info:- program: wt- args:- - init- - powershell- env:- CLICOLOR_FORCE: "1"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: /dev/null- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIbF0a6/test-config.toml-----success: false-exit_code: 1------ stdout ------# worktrunk shell integration for PowerShell--# Only initialize if wt is available-if (Get-Command wt -ErrorAction SilentlyContinue) {- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: $env:WORKTRUNK_BIN = "./target/debug/wt"- $script:_WORKTRUNK_CMD = if ($env:WORKTRUNK_BIN) { $env:WORKTRUNK_BIN } else { "wt" }-- # Helper function to parse wt output and handle directives- # Directives are NUL-terminated to support multi-line commands- function _wt_exec {- param(- [Parameter(ValueFromRemainingArguments=$true)]- [string[]]$Arguments- )-- # Capture stdout for directives, let stderr pass through to terminal- # This preserves TTY for color detection- $output = & $script:_WORKTRUNK_CMD @Arguments | Out-String- $exitCode = $LASTEXITCODE- $execCmd = ""-- # Split output on NUL bytes, process each chunk- foreach ($chunk in ($output -split "`0")) {- if ($chunk -match '^__WORKTRUNK_CD__') {- # CD directive - extract path and change directory- $path = $chunk -replace '^__WORKTRUNK_CD__', ''- Set-Location $path- } elseif ($chunk -match '^__WORKTRUNK_EXEC__') {- # EXEC directive - extract command (may contain newlines)- $execCmd = $chunk -replace '^__WORKTRUNK_EXEC__', ''- } elseif ($chunk) {- # Regular output - write it with newline- # TODO: Use Write-Output instead of Write-Host for redirectable output- Write-Host $chunk- }- }-- # Execute command if one was specified- if ($execCmd) {- Invoke-Expression $execCmd- }-- # Return the exit code- return $exitCode- }-- # Override wt command to add --internal flag for switch, remove, and merge- function wt {- param(- [Parameter(ValueFromRemainingArguments=$true)]- [string[]]$Arguments- )-- if ($Arguments.Count -eq 0) {- & $script:_WORKTRUNK_CMD- return $LASTEXITCODE- }-- $subcommand = $Arguments[0]-- switch ($subcommand) {- { $_ -in @("switch", "remove", "merge") } {- # Commands that need --internal for directory change support- $restArgs = $Arguments[1..($Arguments.Count-1)]- $exitCode = _wt_exec --internal $subcommand @restArgs- return $exitCode- }- default {- # All other commands pass through directly- & $script:_WORKTRUNK_CMD @Arguments- return $LASTEXITCODE- }- }- }-}--# Static completions (commands and flags)------- stderr ------β [31mCompletion not yet supported for powershell[0mdiff --git a/tests/snapshots/integration__integration_tests__init__init_xonsh.snap b/tests/snapshots/integration__integration_tests__init__init_xonsh.snapdeleted file mode 100644index b5647ac07..000000000--- a/tests/snapshots/integration__integration_tests__init__init_xonsh.snap+++ /dev/null@@ -1,88 +0,0 @@-----source: tests/integration_tests/init.rs-info:- program: wt- args:- - init- - xonsh- env:- CLICOLOR_FORCE: "1"- GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"- GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"- GIT_CONFIG_GLOBAL: /dev/null- GIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- LANG: C- LC_ALL: C- SOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpnTeEBT/test-config.toml-----success: false-exit_code: 1------ stdout ------# worktrunk shell integration for xonsh--# Only initialize if wt is available-import shutil-import os-if shutil.which("wt") is not None:- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: $WORKTRUNK_BIN = ./target/debug/wt- _WORKTRUNK_CMD = os.environ.get('WORKTRUNK_BIN', 'wt')-- def _wt_exec(args):- """Helper function to parse wt output and handle directives- Directives are NUL-terminated to support multi-line commands"""- # Capture full output including return code- result = ![@(_WORKTRUNK_CMD) @(args)]- exec_cmd = ""-- # Split output on NUL bytes, process each chunk- if result.out:- for chunk in result.out.split("\0"):- if chunk.startswith("__WORKTRUNK_CD__"):- # CD directive - extract path and change directory- # TODO: Use str.replace instead of hard-coded offset (fragile if prefix changes)- path = chunk[16:] # Remove prefix- cd @(path)- elif chunk.startswith("__WORKTRUNK_EXEC__"):- # EXEC directive - extract command (may contain newlines)- # TODO: Use str.replace instead of hard-coded offset (fragile if prefix changes)- exec_cmd = chunk[18:] # Remove prefix- elif chunk:- # Regular output - print it with newline- print(chunk)-- # Execute command if one was specified- if exec_cmd:- execx(exec_cmd)-- # Return the exit code- # TODO: Add fallback for None: return result.returncode or 0- return result.returncode-- def _wt_wrapper(args):- """Override wt command to add --internal flag for switch, remove, and merge"""- if not args:- # No arguments, just run wt- ![@(_WORKTRUNK_CMD)]- return-- subcommand = args[0]-- if subcommand in ["switch", "remove", "merge"]:- # Commands that need --internal for directory change support- rest_args = args[1:]- return _wt_exec(["--internal", subcommand] + rest_args)- else:- # All other commands pass through directly- result = ![@(_WORKTRUNK_CMD) @(args)]- return result.returncode-- # Register the alias- aliases['wt'] = _wt_wrapper--# Static completions (commands and flags)------- stderr ------β [31mCompletion not yet supported for xonsh[0mdiff --git a/tests/snapshots/integration__integration_tests__init__init_zsh.snap b/tests/snapshots/integration__integration_tests__init__init_zsh.snapindex a5fee683f..6fe31b903 100644--- a/tests/snapshots/integration__integration_tests__init__init_zsh.snap+++ b/tests/snapshots/integration__integration_tests__init__init_zsh.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpQGFV0d/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpBkXYLv/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__detached_head.snap b/tests/snapshots/integration__integration_tests__list__detached_head.snapindex e48dcbfe5..7b72675cc 100644--- a/tests/snapshots/integration__integration_tests__list__detached_head.snap+++ b/tests/snapshots/integration__integration_tests__list__detached_head.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpWyUX78/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__json_with_metadata.snap b/tests/snapshots/integration__integration_tests__list__json_with_metadata.snapindex 0060c8f0d..f816d4ebb 100644--- a/tests/snapshots/integration__integration_tests__list__json_with_metadata.snap+++ b/tests/snapshots/integration__integration_tests__list__json_with_metadata.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpEdwtUI/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__locked_no_reason.snap b/tests/snapshots/integration__integration_tests__list__locked_no_reason.snapindex 618a15dce..753ebfa7b 100644--- a/tests/snapshots/integration__integration_tests__list__locked_no_reason.snap+++ b/tests/snapshots/integration__integration_tests__list__locked_no_reason.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpZrYQbj/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__locked_worktree.snap b/tests/snapshots/integration__integration_tests__list__locked_worktree.snapindex 2b4939cab..d6a40b267 100644--- a/tests/snapshots/integration__integration_tests__list__locked_worktree.snap+++ b/tests/snapshots/integration__integration_tests__list__locked_worktree.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpDGUhFz/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__long_commit_message.snap b/tests/snapshots/integration__integration_tests__list__long_commit_message.snapindex 27f56ccbf..98a237bc9 100644--- a/tests/snapshots/integration__integration_tests__list__long_commit_message.snap+++ b/tests/snapshots/integration__integration_tests__list__long_commit_message.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpwao8hC/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__many_worktrees_varied.snap b/tests/snapshots/integration__integration_tests__list__many_worktrees_varied.snapindex b3320f94e..14620161f 100644--- a/tests/snapshots/integration__integration_tests__list__many_worktrees_varied.snap+++ b/tests/snapshots/integration__integration_tests__list__many_worktrees_varied.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpFpHlqd/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__multiple_worktrees.snap b/tests/snapshots/integration__integration_tests__list__multiple_worktrees.snapindex 436170a88..b89ebbeb1 100644--- a/tests/snapshots/integration__integration_tests__list__multiple_worktrees.snap+++ b/tests/snapshots/integration__integration_tests__list__multiple_worktrees.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp2lNVfx/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__single_worktree.snap b/tests/snapshots/integration__integration_tests__list__single_worktree.snapindex 35fb3dfd0..326cd8e82 100644--- a/tests/snapshots/integration__integration_tests__list__single_worktree.snap+++ b/tests/snapshots/integration__integration_tests__list__single_worktree.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpLgY0kv/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__unicode_commit_message.snap b/tests/snapshots/integration__integration_tests__list__unicode_commit_message.snapindex f70ed064b..5fc66647a 100644--- a/tests/snapshots/integration__integration_tests__list__unicode_commit_message.snap+++ b/tests/snapshots/integration__integration_tests__list__unicode_commit_message.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp86rMtz/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__with_branches_flag.snap b/tests/snapshots/integration__integration_tests__list__with_branches_flag.snapindex 676a175f1..8805e616e 100644--- a/tests/snapshots/integration__integration_tests__list__with_branches_flag.snap+++ b/tests/snapshots/integration__integration_tests__list__with_branches_flag.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpaWMlqS/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__with_branches_flag_none_available.snap b/tests/snapshots/integration__integration_tests__list__with_branches_flag_none_available.snapindex 742720fb1..f39cdd921 100644--- a/tests/snapshots/integration__integration_tests__list__with_branches_flag_none_available.snap+++ b/tests/snapshots/integration__integration_tests__list__with_branches_flag_none_available.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp1Iw3U2/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__list__with_branches_flag_only_branches.snap b/tests/snapshots/integration__integration_tests__list__with_branches_flag_only_branches.snapindex 9891661de..d59ef8d66 100644--- a/tests/snapshots/integration__integration_tests__list__with_branches_flag_only_branches.snap+++ b/tests/snapshots/integration__integration_tests__list__with_branches_flag_only_branches.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpEaGsTo/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_already_on_target.snap b/tests/snapshots/integration__integration_tests__merge__merge_already_on_target.snapindex 6845ab0f3..12ecf4140 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_already_on_target.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_already_on_target.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmprWjwxk/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_and_squash.snap b/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_and_squash.snapindex 5400ea41c..ba9e41004 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_and_squash.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_and_squash.snap@@ -12,13 +12,12 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"WORKTRUNK_COMMIT_GENERATION__ARGS: "fix: update file 1 content"WORKTRUNK_COMMIT_GENERATION__COMMAND: echo- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpRCPkNs/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_deterministic.snap b/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_deterministic.snapindex d6a47633a..828ef5ca3 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_deterministic.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_deterministic.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpR2o3kf/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_with_llm.snap b/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_with_llm.snapindex d86d63ed1..52134e882 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_with_llm.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_with_llm.snap@@ -11,13 +11,12 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"WORKTRUNK_COMMIT_GENERATION__ARGS: "fix: improve auth validation logic"WORKTRUNK_COMMIT_GENERATION__COMMAND: echo- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpk7hPdt/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_with_message.snap b/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_with_message.snapindex 92e828bec..f40165d4c 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_with_message.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_auto_commit_with_message.snap@@ -13,13 +13,12 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"WORKTRUNK_COMMIT_GENERATION__ARGS: "feat: complete user dashboard"WORKTRUNK_COMMIT_GENERATION__COMMAND: echo- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpVLVTF2/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_dirty_working_tree.snap b/tests/snapshots/integration__integration_tests__merge__merge_dirty_working_tree.snapindex ee08d4662..0707b0435 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_dirty_working_tree.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_dirty_working_tree.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpfoGsi5/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_error_detached_head.snap b/tests/snapshots/integration__integration_tests__merge__merge_error_detached_head.snapindex 494c196d4..14c48c5c8 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_error_detached_head.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_error_detached_head.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpaibPVH/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__merge__merge_fast_forward.snap b/tests/snapshots/integration__integration_tests__merge__merge_fast_forward.snapindex c2ad85202..2dd98676a 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_fast_forward.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_fast_forward.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpq0rRzj/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_not_fast_forward.snap b/tests/snapshots/integration__integration_tests__merge__merge_not_fast_forward.snapindex c2ad85202..b8c67f73f 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_not_fast_forward.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_not_fast_forward.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpTPajfH/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_failure.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_failure.snapindex bc41103af..b49281eb6 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_failure.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_failure.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpQHujNe/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpEaSRwb/test-config.toml---success: trueexit_code: 0@@ -31,11 +30,11 @@ exit_code: 01 file changed, 1 insertion(+)β [32mPushed to [1m[32mmain[0m (1 commit, 1 file, [32m+1[0m) [0m+π [36mRunning post-merge command [1m[36mcmd[0m:[0m+π‘ [33mCommand [1m[33mcmd[0m failed: Command failed with exit code: exit status: 1[0mπ [36mCleaning up worktree...[0mβ [32mReturned to primary at [REPO][0m----- stderr ------π [36mRunning post-merge command [1m[36mcmd[0m:[0m[40m [0m exit 1-π‘ [33mCommand [1m[33mcmd[0m failed: Command failed with exit code: exit status: 1[0mdiff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_named.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_named.snapindex 8c2870d4e..4f72306dc 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_named.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_named.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpqxip1K/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp7n7ThK/test-config.toml---success: trueexit_code: 0@@ -31,12 +30,12 @@ exit_code: 01 file changed, 1 insertion(+)β [32mPushed to [1m[32mmain[0m (1 commit, 1 file, [32m+1[0m) [0m+π [36mRunning post-merge command [1m[36mdeploy[0m:[0m+π [36mRunning post-merge command [1m[36mnotify[0m:[0mπ [36mCleaning up worktree...[0mβ [32mReturned to primary at [REPO][0m----- stderr ------π [36mRunning post-merge command [1m[36mdeploy[0m:[0m[40m [0m echo 'Deploying branch feature' > deploy.txt-π [36mRunning post-merge command [1m[36mnotify[0m:[0m[40m [0m echo 'Merge to main complete' > notify.txtdiff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snapindex 9250b7b35..b5276fd9a 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpMcVP4R/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpf378rG/test-config.toml---success: trueexit_code: 0@@ -31,10 +30,10 @@ exit_code: 01 file changed, 1 insertion(+)β [32mPushed to [1m[32mmain[0m (1 commit, 1 file, [32m+1[0m) [0m+π [36mRunning post-merge command [1m[36mcmd[0m:[0mπ [36mCleaning up worktree...[0mβ [32mReturned to primary at [REPO][0m----- stderr ------π [36mRunning post-merge command [1m[36mcmd[0m:[0m[40m [0m echo 'merged feature to main' > post-merge-ran.txtdiff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_failure.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_failure.snapindex cef159a49..fe5315245 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_failure.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_failure.snap@@ -12,19 +12,18 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpAVDI3d/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpV2uaP9/test-config.toml---success: falseexit_code: 1----- stdout -----π [36mValidating merge...[0m+π [36mRunning pre-merge command [1m[36mcmd[0m:[0m----- stderr ------π [36mRunning pre-merge command [1m[36mcmd[0m:[0m[40m [0m exit 1β [31mPre-merge command failed: [1m[31mcmd[0m[0mdiff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_named.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_named.snapindex 4bf50eed8..a1ac8fdb3 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_named.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_named.snap@@ -12,16 +12,18 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpaXuyo7/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpp8Gpxi/test-config.toml---success: trueexit_code: 0----- stdout -----π [36mValidating merge...[0m+π [36mRunning pre-merge command [1m[36mformat[0m:[0m+π [36mRunning pre-merge command [1m[36mlint[0m:[0m+π [36mRunning pre-merge command [1m[36mtest[0m:[0mπ [36mRebasing onto [1m[36mmain[0m...[0mπ [36mPushing 1 commit to [1m[36mmain[0m @ [SHA][0m@@ -36,9 +38,6 @@ exit_code: 0β [32mReturned to primary at [REPO][0m----- stderr ------π [36mRunning pre-merge command [1m[36mformat[0m:[0m[40m [0m exit 0-π [36mRunning pre-merge command [1m[36mlint[0m:[0m[40m [0m exit 0-π [36mRunning pre-merge command [1m[36mtest[0m:[0m[40m [0m exit 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_no_hooks.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_no_hooks.snapindex aafe3ee9a..cc6b83380 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_no_hooks.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_no_hooks.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKQjDFY/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_stdout_stderr_ordering.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_stdout_stderr_ordering.snapindex a6dd06c99..9fa914301 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_stdout_stderr_ordering.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_stdout_stderr_ordering.snap@@ -12,16 +12,17 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpzwRBzQ/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYmlz8I/test-config.toml---success: trueexit_code: 0----- stdout -----π [36mValidating merge...[0m+π [36mRunning pre-merge command [1m[36mcheck1[0m:[0m+π [36mRunning pre-merge command [1m[36mcheck2[0m:[0mπ [36mRebasing onto [1m[36mmain[0m...[0mπ [36mPushing 1 commit to [1m[36mmain[0m @ [SHA][0m@@ -36,7 +37,6 @@ exit_code: 0β [32mReturned to primary at [REPO][0m----- stderr ------π [36mRunning pre-merge command [1m[36mcheck1[0m:[0m[40m [0m [PROJECT_ROOT]/tests/fixtures/mixed-output.sh[40m [0m check1 3[check1] stdout line 1@@ -47,7 +47,6 @@ exit_code: 0[check1] stderr line 3[check1] stdout complete[check1] stderr complete-π [36mRunning pre-merge command [1m[36mcheck2[0m:[0m[40m [0m [PROJECT_ROOT]/tests/fixtures/mixed-output.sh[40m [0m check2 3[check2] stdout line 1diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_success.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_success.snapindex 0af79e056..d4b171047 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_success.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_success.snap@@ -12,16 +12,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpy2PylD/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpv4BWZG/test-config.toml---success: trueexit_code: 0----- stdout -----π [36mValidating merge...[0m+π [36mRunning pre-merge command [1m[36mcmd[0m:[0mπ [36mRebasing onto [1m[36mmain[0m...[0mπ [36mPushing 1 commit to [1m[36mmain[0m @ [SHA][0m@@ -36,5 +36,4 @@ exit_code: 0β [32mReturned to primary at [REPO][0m----- stderr ------π [36mRunning pre-merge command [1m[36mcmd[0m:[0m[40m [0m exit 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_rebase_conflict.snap b/tests/snapshots/integration__integration_tests__merge__merge_rebase_conflict.snapindex e544fa1f2..80efb5815 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_rebase_conflict.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_rebase_conflict.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpbwkRzv/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__merge__merge_squash_deterministic.snap b/tests/snapshots/integration__integration_tests__merge__merge_squash_deterministic.snapindex a1ebd7df3..7e25fe72d 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_squash_deterministic.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_squash_deterministic.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpeMdAoH/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_squash_llm_fallback.snap b/tests/snapshots/integration__integration_tests__merge__merge_squash_llm_fallback.snapindex 07d3c754d..74077021c 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_squash_llm_fallback.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_squash_llm_fallback.snap@@ -12,12 +12,11 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"WORKTRUNK_COMMIT_GENERATION__COMMAND: nonexistent-llm-command- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpB5jNHK/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_squash_single_commit.snap b/tests/snapshots/integration__integration_tests__merge__merge_squash_single_commit.snapindex 45e2d6229..d363ff821 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_squash_single_commit.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_squash_single_commit.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpNkNMPD/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_squash_with_llm.snap b/tests/snapshots/integration__integration_tests__merge__merge_squash_with_llm.snapindex 8f8731f7e..842cb3be4 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_squash_with_llm.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_squash_with_llm.snap@@ -12,14 +12,13 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"WORKTRUNK_COMMIT_GENERATION__ARGS__0: "-c"WORKTRUNK_COMMIT_GENERATION__ARGS__1: "cat >/dev/null && echo 'feat: implement user authentication system'"WORKTRUNK_COMMIT_GENERATION__COMMAND: sh- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpEpPXtB/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_to_default.snap b/tests/snapshots/integration__integration_tests__merge__merge_to_default.snapindex b2893d4c5..878c22a53 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_to_default.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_to_default.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpvaPzNz/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__merge__merge_with_keep.snap b/tests/snapshots/integration__integration_tests__merge__merge_with_keep.snapindex 789031121..f9f867cf3 100644--- a/tests/snapshots/integration__integration_tests__merge__merge_with_keep.snap+++ b/tests/snapshots/integration__integration_tests__merge__merge_with_keep.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpehVxh9/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snapindex 1948cdffa..23d958c7a 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap@@ -12,21 +12,20 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp8Rk5dB/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mExecuting (post-create):[0m+π [36mStarting (background):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mExecuting (post-create):[0m[40m [0m echo 'Setup done' > setup.txt-π [36mStarting (background):[0m[40m [0m sleep 0.5 && echo 'Server running' > server.txtdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snapindex 77026478a..734b26d5d 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap@@ -14,17 +14,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpvNFfsG/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mStarting (background):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0m----- stderr ------π [36mStarting (background):[0m[40m [0m echo 'Background task' > background.txtdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snap b/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snapindex 6775ff6db..fb1babd21 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__invalid_toml.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpucihzx/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snapindex 46fd7f7f4..d93e90739 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap@@ -12,20 +12,19 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp4TBmYZ/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mExecuting (post-create):[0m+π‘ [33mCommand [1m[33mcmd[0m failed: Command failed with exit code: exit status: 1[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mExecuting (post-create):[0m[40m [0m exit 1-π‘ [33mCommand [1m[33mcmd[0m failed: Command failed with exit code: exit status: 1[0mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snapindex bd644f4c9..5349b1064 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap@@ -12,23 +12,22 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpBMuWNX/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mExecuting (post-create):[0m+π [36mExecuting (post-create):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mExecuting (post-create):[0m[40m [0m echo 'First'First-π [36mExecuting (post-create):[0m[40m [0m echo 'Second'Seconddiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snapindex 7946ec3b8..9480999c2 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap@@ -12,23 +12,22 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpyGUlO6/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mExecuting (post-create):[0m+π [36mExecuting (post-create):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mExecuting (post-create):[0m[40m [0m echo 'Installing deps'Installing deps-π [36mExecuting (post-create):[0m[40m [0m echo 'Running setup'Running setupdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_no_config.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_no_config.snapindex 4190fd6b3..c99b3d888 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_no_config.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_no_config.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpeToqnE/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snapindex 8b549c212..b05b82735 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap@@ -12,20 +12,19 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYRpRMc/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mExecuting (post-create):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mExecuting (post-create):[0m[40m [0m echo 'Setup complete'Setup completediff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snapindex e2f8925e7..4df5cc89c 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap@@ -12,29 +12,28 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpJGXiTv/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mExecuting (post-create):[0m+π [36mExecuting (post-create):[0m+π [36mExecuting (post-create):[0m+π [36mExecuting (post-create):[0mβ [32mCreated new worktree for [1mfeature/test[0m at [REPO].feature-test[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mExecuting (post-create):[0m[40m [0m echo 'Repo: test-repo' > info.txt-π [36mExecuting (post-create):[0m[40m [0m echo 'Branch: feature-test' >> info.txt-π [36mExecuting (post-create):[0m[40m [0m echo 'Worktree:[40m [0m [REPO].feature-test'[40m [0m >> info.txt-π [36mExecuting (post-create):[0m[40m [0m echo 'Root:[40m [0m [REPO]'[40m [0m >> info.txtdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snapindex e0f542399..81cd2ac6c 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap@@ -12,21 +12,20 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpQ1olMT/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mStarting (background):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mStarting (background):[0m[40m [0m echo 'line1[40m [0m line2[40m [0m line3' | grep line2 > filtered.txtdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snapindex 7428418a3..68077ec5a 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap@@ -12,19 +12,18 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpeVTM7X/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mStarting (background):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mStarting (background):[0m[40m [0m echo 'unclosed quotediff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snapindex 0a8deacce..b2ca5b071 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap@@ -12,19 +12,18 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpD72dMX/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mStarting (background):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mStarting (background):[0m[40m [0m echo 'stdout output' && echo 'stderr output' >&2diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snapindex 548277876..a482e13c9 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiple_background.snap@@ -12,21 +12,20 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpZRNtMz/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mStarting (background):[0m+π [36mStarting (background):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mStarting (background):[0m[40m [0m echo 'Task 1 running' > task1.txt-π [36mStarting (background):[0m[40m [0m echo 'Task 2 running' > task2.txtdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snapindex 7ae862d0b..86aa70a15 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_separate_logs.snap@@ -12,23 +12,22 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpUAadHA/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mStarting (background):[0m+π [36mStarting (background):[0m+π [36mStarting (background):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mStarting (background):[0m[40m [0m echo 'TASK1_OUTPUT'-π [36mStarting (background):[0m[40m [0m echo 'TASK2_OUTPUT'-π [36mStarting (background):[0m[40m [0m echo 'TASK3_OUTPUT'diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snapindex 1bb3ffee3..682840746 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap@@ -12,19 +12,18 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpo7xtAh/test-config.toml---success: trueexit_code: 0----- stdout -----+π [36mStarting (background):[0mβ [32mCreated new worktree for [1mfeature[0m at [REPO].feature[0mTo enable automatic cd, run: wt configure-shell----- stderr ------π [36mStarting (background):[0m[40m [0m sleep 1 && echo 'Background task done' > background.txtdiff --git a/tests/snapshots/integration__integration_tests__push__push_dirty_target.snap b/tests/snapshots/integration__integration_tests__push__push_dirty_target.snapindex b225933ed..a51f89f58 100644--- a/tests/snapshots/integration__integration_tests__push__push_dirty_target.snap+++ b/tests/snapshots/integration__integration_tests__push__push_dirty_target.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpk3GQql/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__push__push_error_not_fast_forward.snap b/tests/snapshots/integration__integration_tests__push__push_error_not_fast_forward.snapindex eae31bdcf..a3373178b 100644--- a/tests/snapshots/integration__integration_tests__push__push_error_not_fast_forward.snap+++ b/tests/snapshots/integration__integration_tests__push__push_error_not_fast_forward.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpLX191Y/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__push__push_error_with_merge_commits.snap b/tests/snapshots/integration__integration_tests__push__push_error_with_merge_commits.snapindex 6aa8a55a3..c02a3303d 100644--- a/tests/snapshots/integration__integration_tests__push__push_error_with_merge_commits.snap+++ b/tests/snapshots/integration__integration_tests__push__push_error_with_merge_commits.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpaeal55/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__push__push_fast_forward.snap b/tests/snapshots/integration__integration_tests__push__push_fast_forward.snapindex a6b61a8a9..c99f6b7bb 100644--- a/tests/snapshots/integration__integration_tests__push__push_fast_forward.snap+++ b/tests/snapshots/integration__integration_tests__push__push_fast_forward.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpPzjGj4/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__push__push_not_fast_forward.snap b/tests/snapshots/integration__integration_tests__push__push_not_fast_forward.snapindex 0210f7b50..92518dabf 100644--- a/tests/snapshots/integration__integration_tests__push__push_not_fast_forward.snap+++ b/tests/snapshots/integration__integration_tests__push__push_not_fast_forward.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpOTPr9A/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__push__push_to_default.snap b/tests/snapshots/integration__integration_tests__push__push_to_default.snapindex 2ebc265b7..a191b2459 100644--- a/tests/snapshots/integration__integration_tests__push__push_to_default.snap+++ b/tests/snapshots/integration__integration_tests__push__push_to_default.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpcNkUmR/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__remove__remove_already_on_default.snap b/tests/snapshots/integration__integration_tests__remove__remove_already_on_default.snapindex 536e29197..62b3c537e 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_already_on_default.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_already_on_default.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpff7M3b/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__remove__remove_by_name_dirty_target.snap b/tests/snapshots/integration__integration_tests__remove__remove_by_name_dirty_target.snapindex 5e607d7e9..74ab8c2f6 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_by_name_dirty_target.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_by_name_dirty_target.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0cS95C/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__remove__remove_by_name_from_main.snap b/tests/snapshots/integration__integration_tests__remove__remove_by_name_from_main.snapindex b711d2190..e8f85a332 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_by_name_from_main.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_by_name_from_main.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpqCEld7/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__remove__remove_by_name_from_other_worktree.snap b/tests/snapshots/integration__integration_tests__remove__remove_by_name_from_other_worktree.snapindex 985e13087..7d664da26 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_by_name_from_other_worktree.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_by_name_from_other_worktree.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpRZW03P/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__remove__remove_current_by_name.snap b/tests/snapshots/integration__integration_tests__remove__remove_current_by_name.snapindex 7df941884..98fc48fd9 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_current_by_name.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_current_by_name.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp4l3tr7/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__remove__remove_dirty_working_tree.snap b/tests/snapshots/integration__integration_tests__remove__remove_dirty_working_tree.snapindex 14b3d21e6..800910d0b 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_dirty_working_tree.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_dirty_working_tree.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpeLeuHp/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__remove__remove_from_worktree.snap b/tests/snapshots/integration__integration_tests__remove__remove_from_worktree.snapindex fc01ebdbc..37bf205eb 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_from_worktree.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_from_worktree.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp19Hrkj/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__remove__remove_internal_mode.snap b/tests/snapshots/integration__integration_tests__remove__remove_internal_mode.snapindex e651661dc..afc1bcef9 100644Binary files a/tests/snapshots/integration__integration_tests__remove__remove_internal_mode.snap and b/tests/snapshots/integration__integration_tests__remove__remove_internal_mode.snap differdiff --git a/tests/snapshots/integration__integration_tests__remove__remove_nonexistent_worktree.snap b/tests/snapshots/integration__integration_tests__remove__remove_nonexistent_worktree.snapindex 405cce6f0..d7537ef1a 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_nonexistent_worktree.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_nonexistent_worktree.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0PrI5P/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__remove__remove_switch_to_default.snap b/tests/snapshots/integration__integration_tests__remove__remove_switch_to_default.snapindex 2ead80e76..14919c1c3 100644--- a/tests/snapshots/integration__integration_tests__remove__remove_switch_to_default.snap+++ b/tests/snapshots/integration__integration_tests__remove__remove_switch_to_default.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpaf7GaI/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_empty_diffs.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_empty_diffs.snapindex ac0cecb6a..f89761921 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_empty_diffs.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_empty_diffs.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpbebCfO/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_extreme_diffs.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_extreme_diffs.snapindex bcd96a5d4..264d9dd5f 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_extreme_diffs.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_extreme_diffs.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpXM5mjB/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_varying_diffs.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_varying_diffs.snapindex 2175e1cf1..4d30d491b 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_varying_diffs.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_varying_diffs.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpjaWmpc/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__long_branch_names.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__long_branch_names.snapindex f13898c63..0145ad499 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__long_branch_names.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__long_branch_names.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpxbRVlC/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__mixed_length_branch_names.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__mixed_length_branch_names.snapindex 6d7d18b65..901c91897 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__mixed_length_branch_names.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__mixed_length_branch_names.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuQ3ikY/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__short_branch_names.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__short_branch_names.snapindex e9bd15212..ba02440e0 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__short_branch_names.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__short_branch_names.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp8GTF6X/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_120.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_120.snapindex 59b20d85d..c0f2a3f38 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_120.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_120.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpiLx3pr/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_150.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_150.snapindex 37d52a98d..7642c615b 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_150.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_150.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp5ntu1M/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_80.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_80.snapindex 38a14e076..16f457952 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_80.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__terminal_width_80.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKeLXld/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__unicode_branch_names.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__unicode_branch_names.snapindex 813de9859..15e4a8e83 100644--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__unicode_branch_names.snap+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__unicode_branch_names.snap@@ -10,11 +10,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpltIkcg/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__switch__switch_base_without_create.snap b/tests/snapshots/integration__integration_tests__switch__switch_base_without_create.snapindex 2bbcfc45a..eb700e3e6 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_base_without_create.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_base_without_create.snap@@ -13,18 +13,17 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp3qLvcn/test-config.toml---success: trueexit_code: 0----- stdout -----+π‘ [33m--base flag is only used with --create, ignoring[0mβ [32mSwitched to worktree for [1mmain[0m at [REPO][0mTo enable automatic cd, run: wt configure-shell----- stderr ------π‘ [33m--base flag is only used with --create, ignoring[0mdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_existing_error.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_existing_error.snapindex f979e8532..4e46c2e8d 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_create_existing_error.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_create_existing_error.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpen5y9C/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snapindex 9fca4afd2..8f305df9e 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap@@ -12,11 +12,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpvRo05M/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__switch__switch_error_missing_directory.snap b/tests/snapshots/integration__integration_tests__switch__switch_error_missing_directory.snapindex 729f90794..f69e81cba 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_error_missing_directory.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_error_missing_directory.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpDfDNEl/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snapindex f7d6f2c6f..30d4eca53 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snap@@ -14,11 +14,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKg5DDn/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snapindex 6d662e50a..b4300a186 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap@@ -13,11 +13,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpjSqGVY/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snapindex fc09e3848..5eb701cba 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap@@ -14,11 +14,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIb8Xmw/test-config.toml---success: falseexit_code: 1diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snapindex d5c0df0c0..fd0407f95 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap@@ -14,18 +14,17 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpPl9yjW/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mmultiline-test[0m at [REPO].multiline-test[0m++----- stderr -----line1line2line3------- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snapindex a80d6ce2f..a4b373f34 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap@@ -14,16 +14,15 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmplxmi5C/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mexec-test[0m at [REPO].exec-test[0m-test output----- stderr -----+test outputdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap b/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snapindex 8c2de4a00..a3ab4a53f 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap@@ -11,11 +11,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpcLIkRk/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__switch__switch_existing_internal.snap b/tests/snapshots/integration__integration_tests__switch__switch_existing_internal.snapindex c8564d340..f95aa9dbb 100644Binary files a/tests/snapshots/integration__integration_tests__switch__switch_existing_internal.snap and b/tests/snapshots/integration__integration_tests__switch__switch_existing_internal.snap differdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_internal_mode.snap b/tests/snapshots/integration__integration_tests__switch__switch_internal_mode.snapindex 986822a19..36bc51d45 100644Binary files a/tests/snapshots/integration__integration_tests__switch__switch_internal_mode.snap and b/tests/snapshots/integration__integration_tests__switch__switch_internal_mode.snap differdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap b/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snapindex fa71c575f..73f2ac660 100644Binary files a/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap and b/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap differdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_execute_still_runs.snap b/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_execute_still_runs.snapindex 62a2ff8c7..c3afcfda2 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_execute_still_runs.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_execute_still_runs.snap@@ -15,16 +15,15 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpSyRcrx/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1mno-hooks-test[0m at [REPO].no-hooks-test[0m-execute command runs----- stderr -----+execute command runsdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_existing.snap b/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_existing.snapindex 8ee05edb0..f39c000fe 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_existing.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_existing.snap@@ -14,16 +14,15 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmplq0OmF/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mSwitched to worktree for [1mexisting-no-hooks[0m at [WORKTREE_EXISTING_NO_HOOKS][0m-execute still runs----- stderr -----+execute still runsdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_skips_post_start.snap b/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_skips_post_start.snapindex 7cd376663..f96310db5 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_skips_post_start.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_skips_post_start.snap@@ -13,12 +13,11 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- HOME: [TEST_HOME]+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKnjBjaLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuBwHe9/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_with_force.snap b/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_with_force.snapindex 6ea1726d2..03bb28d82 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_with_force.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_no_hooks_with_force.snap@@ -14,12 +14,11 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""- HOME: [TEST_HOME]+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpckWoj6LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpCC6oec/test-config.toml---success: trueexit_code: 0diff --git a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snapindex 8af5c6420..8990e1259 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap@@ -14,11 +14,10 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: [TEST_CONFIG]+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpmJ9Nt6/test-config.toml---success: trueexit_code: 0