Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
refactor: Improve config error handling and output
Maximilian Roosd499d4058290
diff --git a/src/commands/beta.rs b/src/commands/beta.rsindex fae232637..d540e2898 100644--- a/src/commands/beta.rs+++ b/src/commands/beta.rs@@ -458,7 +458,7 @@ pub fn handle_beta_ask_approvals(force: bool, show_all: bool) -> Result<(), GitE// Show resultif approved {- use worktrunk::styling::{AnstyleStyle, GREEN};+ use worktrunk::styling::GREEN;if force {// When using --force, commands aren't saved to config@@ -466,17 +466,10 @@ pub fn handle_beta_ask_approvals(force: bool, show_all: bool) -> Result<(), GitE"{GREEN}Commands approved (not saved with --force){GREEN:#}"))?;} else {- // Interactive approval - commands were saved to config+ // Interactive approval - commands were saved to config (unless save failed)crate::output::success(format!("{GREEN}Commands approved and saved to config{GREEN:#}"))?;-- // Show config path as supplementary metadata- if let Some(config_path) = worktrunk::config::get_config_path() {- use worktrunk::styling::println;- let dim = AnstyleStyle::new().dimmed();- println!("{dim}Config: {}{dim:#}", config_path.display());- }}} else {let dim = worktrunk::styling::AnstyleStyle::new().dimmed();diff --git a/src/commands/command_approval.rs b/src/commands/command_approval.rsindex 18c3bbac8..1c496fa4b 100644--- a/src/commands/command_approval.rs+++ b/src/commands/command_approval.rs@@ -80,7 +80,7 @@ pub fn approve_command_batch(}if updated && let Err(e) = fresh_config.save() {- log_approval_warning("Failed to save command approval", e);+ println!("{WARNING_EMOJI} {WARNING}Failed to save command approval: {e}{WARNING:#}");println!("{HINT_EMOJI} {HINT}You will be prompted again next time.{HINT:#}");}}@@ -88,10 +88,6 @@ pub fn approve_command_batch(Ok(true)}-fn log_approval_warning(message: &str, error: impl std::fmt::Display) {- println!("{WARNING_EMOJI} {WARNING}{message}: {error}{WARNING:#}");-}-fn prompt_for_batch_approval(commands: &[&Command], project_id: &str) -> std::io::Result<bool> {use std::io::{self, Write};diff --git a/src/output/handlers.rs b/src/output/handlers.rsindex f649dc38d..e910ff5ab 100644--- a/src/output/handlers.rs+++ b/src/output/handlers.rs@@ -71,10 +71,10 @@ fn format_remove_message(result: &RemoveResult, branch: Option<&str>) -> String}}-/// Shell integration hint message+/// Shell integration hint message (without emoji - hint() adds it automatically)fn shell_integration_hint() -> String {- use worktrunk::styling::{HINT, HINT_EMOJI};- format!("{HINT_EMOJI} {HINT}To enable automatic cd, run: wt config shell{HINT:#}")+ use worktrunk::styling::HINT;+ format!("{HINT}To enable automatic cd, run: wt config shell{HINT:#}")}/// Handle output for a switch operation@@ -92,7 +92,7 @@ pub fn handle_switch_output(// If no execute command provided: show shell integration hint// (suppressed in directive mode since user already has integration)if !has_execute_command {- super::hint(format!("\n{}", shell_integration_hint()))?;+ super::hint(shell_integration_hint())?;}// Flush output (important for directive mode)diff --git a/tests/integration_tests/approval_save.rs b/tests/integration_tests/approval_save.rsindex 907087836..3173e6b7f 100644--- a/tests/integration_tests/approval_save.rs+++ b/tests/integration_tests/approval_save.rs@@ -269,3 +269,61 @@ fn test_force_flag_saves_to_new_config_file() {approved-commands = ["test command"]"#);}++/// Test that permission errors when saving config are handled gracefully+///+/// This tests the lower-level `approve_command_to()` method fails when permissions+/// are denied. The higher-level `approve_command_batch()` catches this error and+/// displays a warning (see src/commands/command_approval.rs:82-85), allowing+/// commands to execute even when the approval can't be saved.+#[test]+fn test_permission_error_prevents_save() {+ use std::fs::Permissions;+ use std::os::unix::fs::PermissionsExt;++ let temp_dir = TempDir::new().unwrap();+ let config_path = temp_dir.path().join("readonly").join("config.toml");++ // Create the directory and initial config file+ let config_dir = config_path.parent().unwrap();+ fs::create_dir_all(config_dir).unwrap();+ let initial_config = WorktrunkConfig::default();+ initial_config.save_to(&config_path).unwrap();++ // Make the directory read-only (prevents writing new files)+ #[cfg(unix)]+ {+ let readonly_perms = Permissions::from_mode(0o444);+ fs::set_permissions(config_dir, readonly_perms).unwrap();+ }++ // Try to save a new approval - this should fail+ let mut config = WorktrunkConfig::default();+ let result = config.approve_command_to(+ "github.com/test/readonly".to_string(),+ "test command".to_string(),+ &config_path,+ );++ // Restore write permissions so temp_dir can be cleaned up+ #[cfg(unix)]+ {+ let writable_perms = Permissions::from_mode(0o755);+ fs::set_permissions(config_dir, writable_perms).unwrap();+ }++ // Verify the save failed+ assert!(+ result.is_err(),+ "Expected save to fail due to permissions, but it succeeded"+ );++ // In the actual code (approve_command_batch), when this error occurs:+ // 1. It's caught with `if let Err(e) = fresh_config.save()`+ // 2. Warning is printed: "π‘ Failed to save command approval: {error}"+ // 3. Hint is printed: "π‘ You will be prompted again next time."+ // 4. Function returns Ok(true) - execution continues!+ //+ // The approval succeeds (commands execute) even though saving failed.+ // This test verifies the save operation correctly fails with permission errors.+}diff --git a/tests/integration_tests/approval_ui.rs b/tests/integration_tests/approval_ui.rsindex 6c5bec974..2bb839ebe 100644--- a/tests/integration_tests/approval_ui.rs+++ b/tests/integration_tests/approval_ui.rs@@ -280,3 +280,70 @@ test = "echo 'Running tests...'"false,);}++/// Test that shows the full output when config save fails due to permission error+///+/// This captures what users actually see when approve_command_batch() catches a save error+/// at src/commands/command_approval.rs:82-85.+#[test]+fn test_permission_error_user_output() {+ use std::fs::Permissions;+ use std::os::unix::fs::PermissionsExt;++ let repo = TestRepo::new();+ repo.commit("Initial commit");++ // Set up project config with post-create command+ let config_dir = repo.root_path().join(".config");+ fs::create_dir_all(&config_dir).expect("Failed to create .config dir");+ fs::write(+ config_dir.join("wt.toml"),+ r#"post-create-command = "echo 'test command'""#,+ )+ .expect("Failed to write config");++ repo.commit("Add config");++ // Create an initial config file and make it read-only BEFORE running the command+ // This will cause the save operation to fail with a permission error+ fs::write(repo.test_config_path(), "# read-only config\n").expect("Failed to create config");+ let readonly_perms = Permissions::from_mode(0o444);+ fs::set_permissions(repo.test_config_path(), readonly_perms).expect("Failed to set read-only");++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "switch", &["--create", "test-permission"], None);+ cmd.stdin(Stdio::piped())+ .stdout(Stdio::piped())+ .stderr(Stdio::piped());++ let mut child = cmd.spawn().expect("Failed to spawn command");++ // Approve the command - this will trigger the permission error when saving+ {+ let stdin = child.stdin.as_mut().expect("Failed to get stdin");+ stdin.write_all(b"y\n").expect("Failed to write to stdin");+ }++ let output = child+ .wait_with_output()+ .expect("Failed to wait for command");++ // Restore write permissions to the config file for cleanup+ let writable_perms = Permissions::from_mode(0o644);+ fs::set_permissions(repo.test_config_path(), writable_perms)+ .expect("Failed to restore permissions");++ // Capture the full output showing the warning+ let stdout = String::from_utf8_lossy(&output.stdout);+ let stderr = String::from_utf8_lossy(&output.stderr);+ let combined = format!(+ "exit_code: {}\n----- stdout -----\n{}\n----- stderr -----\n{}",+ output.status.code().unwrap_or(-1),+ stdout,+ stderr+ );++ insta::assert_snapshot!("permission_error_user_output", combined);+ });+}diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_bash.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_bash.snapindex a031ceb84..12f13fff7 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_bash.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_bash.snap@@ -3,7 +3,7 @@ source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized()---π [36mRunning pre-merge: [1mcheck1[0m:[0m-[40m [0m [1m[34m/Users/maximilian/workspace/worktrunk.insta-stdout-err/tests/fixtures/mixed-output.sh[0m check1 3[0m+[40m [0m [1m[34m/Users/maximilian/workspace/worktrunk.config-name/tests/fixtures/mixed-output.sh[0m check1 3[0m[check1] stdout line 1[check1] stderr line 1@@ -15,7 +15,7 @@ expression: output.normalized()[check1] stderr completeπ [36mRunning pre-merge: [1mcheck2[0m:[0m-[40m [0m [1m[34m/Users/maximilian/workspace/worktrunk.insta-stdout-err/tests/fixtures/mixed-output.sh[0m check2 3[0m+[40m [0m [1m[34m/Users/maximilian/workspace/worktrunk.config-name/tests/fixtures/mixed-output.sh[0m check2 3[0m[check2] stdout line 1[check2] stderr line 1@@ -26,9 +26,9 @@ expression: output.normalized()[check2] stdout complete[check2] stderr complete-π [36mMerging 1 commit to [1m[36mmain[0m @ [2m[36m429b6a2[0m[0m (no commit/squash/rebase needed)+π [36mMerging 1 commit to [1m[36mmain[0m @ [2m[36med2a7b0[0m[0m (no commit/squash/rebase needed)-[40m [0m * [33m429b6a2[m[33m ([m[1;36mHEAD[m[33m -> [m[1;32mfeature[m[33m)[m Add feature+[40m [0m * [33med2a7b0[m[33m ([m[1;36mHEAD[m[33m -> [m[1;32mfeature[m[33m)[m Add feature[40m [0m feature.txt | 1 [32m+[m[40m [0m 1 file changed, 1 insertion(+)diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_zsh.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_zsh.snapindex acc7d1a48..010c30938 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_zsh.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_zsh.snap@@ -19,16 +19,16 @@ expression: output.normalized()[check2] stdout complete[check2] stderr completeπ [36mRunning pre-merge: [1mcheck1[0m:[0m-[40m [0m [1m[34m/Users/maximilian/workspace/worktrunk.insta-stdout-err/tests/fixtures/mixed-output.sh[0m check1 3[0m+[40m [0m [1m[34m/Users/maximilian/workspace/worktrunk.config-name/tests/fixtures/mixed-output.sh[0m check1 3[0mπ [36mRunning pre-merge: [1mcheck2[0m:[0m-[40m [0m [1m[34m/Users/maximilian/workspace/worktrunk.insta-stdout-err/tests/fixtures/mixed-output.sh[0m check2 3[0m+[40m [0m [1m[34m/Users/maximilian/workspace/worktrunk.config-name/tests/fixtures/mixed-output.sh[0m check2 3[0m-π [36mMerging 1 commit to [1m[36mmain[0m @ [2m[36m429b6a2[0m[0m (no commit/squash/rebase needed)+π [36mMerging 1 commit to [1m[36mmain[0m @ [2m[36med2a7b0[0m[0m (no commit/squash/rebase needed)-[40m [0m * [33m429b6a2[m[33m ([m[1;36mHEAD[m[33m -> [m[1;32mfeature[m[33m)[m Add feature+[40m [0m * [33med2a7b0[m[33m ([m[1;36mHEAD[m[33m -> [m[1;32mfeature[m[33m)[m Add feature[40m [0m feature.txt | 1 [32m+[m[40m [0m 1 file changed, 1 insertion(+)diff --git a/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap b/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snapindex 115cdf458..d27901c3f 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpqEpWGO/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpp5UKkG/test-config.toml---success: trueexit_code: 0@@ -25,7 +25,6 @@ exit_code: 0π [36mRunning post-create:[0m[40m [0m [1m[34mecho[0m [32m'approved'[0m [36m>[0m output.txt[0mβ [32mCreated new worktree for [1m[32mtest-approved[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].test-approved[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snapindex bc0f3311a..77ef11ac3 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap@@ -6,7 +6,6 @@ exit_code: 0----- stdout -----βͺ [2mPost-create declined[0mβ [32mCreated new worktree for [1m[32mtest-mixed[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].test-mixed[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snapindex 117efc135..6a7abb21f 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap@@ -6,7 +6,6 @@ exit_code: 0----- stdout -----βͺ [2mPost-create declined[0mβ [32mCreated new worktree for [1m[32mtest/nested-branch[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].test-nested-branch[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snapindex 3460b2ddf..f28bad142 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap@@ -6,7 +6,6 @@ exit_code: 0----- stdout -----βͺ [2mPost-create declined[0mβ [32mCreated new worktree for [1m[32mtest-named[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].test-named[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snapindex 5044ccd00..ceb135a20 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap@@ -6,7 +6,6 @@ exit_code: 0----- stdout -----βͺ [2mPost-create declined[0mβ [32mCreated new worktree for [1m[32mfeature/test-approval[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature-test-approval[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap b/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snapindex f7fde6acc..225b305c6 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap@@ -6,7 +6,6 @@ exit_code: 0----- stdout -----βͺ [2mPost-create declined[0mβ [32mCreated new worktree for [1m[32mtest-decline[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].test-decline[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_first_run.snap b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_first_run.snapindex 7704b849c..553dc18e7 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_first_run.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_first_run.snap@@ -18,7 +18,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpQAP3Yx/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpD6Ddkm/test-config.toml---success: trueexit_code: 0@@ -26,7 +26,6 @@ exit_code: 0π [36mRunning post-create:[0m[40m [0m [1m[34mecho[0m [32m'test command'[0m [36m>[0m output.txt[0mβ [32mCreated new worktree for [1m[32mtest-force[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].test-force[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snapindex 232527d05..e4a5ff5c2 100644--- a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap+++ b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap@@ -6,7 +6,6 @@ exit_code: 0----- stdout -----βͺ [2mPost-create declined[0mβ [32mCreated new worktree for [1m[32mtest-force-2[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].test-force-2[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__approval_ui__permission_error_user_output.snap b/tests/snapshots/integration__integration_tests__approval_ui__permission_error_user_output.snapnew file mode 100644index 000000000..e3ab22166--- /dev/null+++ b/tests/snapshots/integration__integration_tests__approval_ui__permission_error_user_output.snap@@ -0,0 +1,22 @@+---+source: tests/integration_tests/approval_ui.rs+expression: combined+---+exit_code: 0+----- stdout -----+π‘ [33mFailed to save command approval: Failed to write config file: Permission denied (os error 13)[0m+π‘ [2mYou will be prompted again next time.[0m+π [36mRunning post-create:[0m+[40m [0m [1m[34mecho[0m [32m'test command'[0m[0m+β [32mCreated new worktree for [1m[32mtest-permission[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].test-permission[0m[0m+π‘ [2mTo enable automatic cd, run: wt config shell[0m++----- stderr -----++π‘ [33m[1m[33mtest-repo[0m[33m wants to execute [1m[33m1[0m[33m command:[0m++π Post-create:+[40m [0m [1m[34mecho[0m [32m'test command'[0m[0m++π‘ Allow and remember? [1m[y/N][0m+[0mtest commanddiff --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 6fd084ad9..183b02a07 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@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIiybQ2/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpHXknvO/test-config.toml---success: trueexit_code: 0@@ -25,7 +25,6 @@ exit_code: 0π [36mRunning post-create:[0m[40m [0m [1m[34mecho[0m [32m'Setup done'[0m [36m>[0m setup.txt[0mβ [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start: [1mserver[0m:[0m[40m [0m [1m[34msleep[0m 0.5 [36m&&[0m [1m[34mecho[0m [32m'Server running'[0m [36m>[0m server.txt[0mdiff --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 ddeb098dd..4cd32d0a7 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@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpNXDxne/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpbZFQcs/test-config.toml---success: trueexit_code: 0@@ -26,7 +26,6 @@ exit_code: 0[40m [0m [1m[34mexit[0m 1[0mπ‘ [33mCommand failed: Command failed with exit code: exit status: 1[0mβ [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snapindex 10d669146..97bac21cd 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp4dIZtp/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpyY3Oos/test-config.toml---success: trueexit_code: 0@@ -29,7 +29,6 @@ exit_code: 0[40m [0m [1m[34mecho[0m [32m'File exists'[0m [36m>[0m result.txt[0m[40m [0m [1m[34mfi[0m[0mβ [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --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 a8dce35d8..23dbdf453 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@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpOaI6ok/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYTBp2r/test-config.toml---success: trueexit_code: 0@@ -27,7 +27,6 @@ exit_code: 0π [36mRunning post-create:[0m[40m [0m [1m[34mecho[0m [32m'Second'[0m[0mβ [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --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 40a8363c3..1da7943ed 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@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpDrGzjb/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp7EzBBk/test-config.toml---success: trueexit_code: 0@@ -27,7 +27,6 @@ exit_code: 0π [36mRunning post-create: [1msetup[0m:[0m[40m [0m [1m[34mecho[0m [32m'Running setup'[0m[0mβ [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --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 70f17e6e7..bc0bf733f 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@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpAeSu46/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpsiWYhT/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --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 13d46f745..ff13fab8c 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@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpnD1eiR/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpDjNGqL/test-config.toml---success: trueexit_code: 0@@ -25,7 +25,6 @@ exit_code: 0π [36mRunning post-create:[0m[40m [0m [1m[34mecho[0m [32m'Setup complete'[0m[0mβ [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --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 3972ad7a0..5ba097c7a 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@@ -17,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpAei6GS/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmphfEAoH/test-config.toml---success: trueexit_code: 0@@ -31,7 +31,6 @@ exit_code: 0π [36mRunning post-create:[0m[40m [0m [1m[34mecho[0m [32m'Root: [REPO]'[0m [36m>>[0m info.txt[0mβ [32mCreated new worktree for [1m[32mfeature/test[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature-test[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --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 9ba66e7f8..eb14ecb75 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@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKQqZsk/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpHYNPsP/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start:[0m[40m [0m [1m[34mecho[0m 'line1[0mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_create_with_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_create_with_command.snapindex c4d4adb10..bc23b2c9c 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_create_with_command.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_create_with_command.snap@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp411LIl/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpzPArNi/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start:[0m[40m [0m [1m[34mecho[0m [32m'POST-START-RAN'[0m [36m>[0m post_start_marker.txt[0mdiff --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 614248587..f64f8d606 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@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0DSOPX/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp5fKCgP/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start:[0m[40m [0m [1m[34mecho[0m 'unclosed quote[0mdiff --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 cf8fe75bf..2cb478090 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@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpdS30NW/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmplib4mG/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start:[0m[40m [0m [1m[34mecho[0m [32m'stdout output'[0m [36m&&[0m [1m[34mecho[0m [32m'stderr output'[0m >&2[0mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiline_with_newlines.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiline_with_newlines.snapindex 9d9740fe0..3bbd5f618 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiline_with_newlines.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiline_with_newlines.snap@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpT3TiED/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpHrN6po/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start:[0m[40m [0m [1m[34mecho[0m [32m'first line'[0m [36m>[0m multiline.txt[0mdiff --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 029f1a3a1..7eb1ada5f 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@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0R1GR5/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpwfDu3U/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start: [1mtask1[0m:[0m[40m [0m [1m[34mecho[0m [32m'Task 1 running'[0m [36m>[0m task1.txt[0mdiff --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 cd9547aea..817d786d6 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@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpvmg3UA/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp3RREF8/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start: [1mtask1[0m:[0m[40m [0m [1m[34mecho[0m [32m'TASK1_OUTPUT'[0m[0mdiff --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 fba36d83c..99a80315f 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@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp5CyFWs/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp9Oz9FE/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0mπ [36mRunning post-start:[0m[40m [0m [1m[34msleep[0m 1 [36m&&[0m [1m[34mecho[0m [32m'Background task done'[0m [36m>[0m background.txt[0mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_skip_existing.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_skip_existing.snapindex dbc883542..6846d1e24 100644--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_skip_existing.snap+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_skip_existing.snap@@ -16,13 +16,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpwxYbME/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpzPArNi/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mSwitched to worktree for [1m[32mfeature[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --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 a34280cb4..0ae8a8e4c 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@@ -18,14 +18,13 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpCOYrR6/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0YrOUE/test-config.toml---success: trueexit_code: 0----- stdout -----π‘ [33m--base flag is only used with --create, ignoring[0mβ [32mSwitched to worktree for [1m[32mmain[0m[32m at [1m[32m[REPO][0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snapindex 9ebb67567..c4cc47aef 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpoeTHLx/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpNkSZTv/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature-x[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature-x[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_no_remote.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_no_remote.snapindex dfab9856a..b1e602aab 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_create_no_remote.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_create_no_remote.snap@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp1O4Qeg/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpWpeFbk/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_remote_only.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_remote_only.snapindex 14e15478b..8904921e9 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_create_remote_only.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_create_remote_only.snap@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpnItJZx/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp5WKNVK/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mremote-feature[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].remote-feature[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap b/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snapindex 68be5d056..7c9b024ea 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap@@ -16,13 +16,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmphKvvK3/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYwIp9S/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mSwitched to worktree for [1m[32mfeature-z[0m[32m at [1m[32m[WORKTREE_FEATURE_Z][0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_previous_branch.snap b/tests/snapshots/integration__integration_tests__switch__switch_previous_branch.snapindex 795af7083..dfa5aa25e 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_previous_branch.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_previous_branch.snap@@ -16,13 +16,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIWAEF9/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpQJHyRw/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mSwitched to worktree for [1m[32mfeature-a[0m[32m at [1m[32m[REPO].feature-a[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_primary_on_different_branch.snap b/tests/snapshots/integration__integration_tests__switch__switch_primary_on_different_branch.snapindex 0b7f1425c..187077079 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_primary_on_different_branch.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_primary_on_different_branch.snap@@ -17,13 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpobeRFC/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpn28bfh/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature-from-main[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature-from-main[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_to_existing_primary_on_different_branch.snap b/tests/snapshots/integration__integration_tests__switch__switch_to_existing_primary_on_different_branch.snapindex fcb66314b..2e227bf22 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_to_existing_primary_on_different_branch.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_to_existing_primary_on_different_branch.snap@@ -16,13 +16,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpia2bOm/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpn28bfh/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mSwitched to worktree for [1m[32mexisting-branch[0m[32m at [1m[32m[WORKTREE_EXISTING_BRANCH][0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snapindex 923ec5a4e..27fd5bf1a 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap@@ -19,13 +19,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpdZLnd4/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpCb9dHe/test-config.toml---success: trueexit_code: 0----- stdout -----β [32mCreated new worktree for [1m[32mfeature-with-base[0m[32m from [1m[32mmain[0m[32m at [1m[32m[REPO].feature-with-base[0m[0m-π‘π‘ [2mTo enable automatic cd, run: wt config shell[0m----- stderr -----