Skip to content

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.rs
index 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 result
if 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.rs
index 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.rs
index 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.rs
index 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.rs
index 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.snap
index 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.rs
expression: output.normalized()
---
πŸ”„ Running pre-merge: check1:
-  /Users/maximilian/workspace/worktrunk.insta-stdout-err/tests/fixtures/mixed-output.sh check1 3
+  /Users/maximilian/workspace/worktrunk.config-name/tests/fixtures/mixed-output.sh check1 3
[check1] stdout line 1
[check1] stderr line 1
@@ -15,7 +15,7 @@ expression: output.normalized()
[check1] stderr complete
πŸ”„ Running pre-merge: check2:
-  /Users/maximilian/workspace/worktrunk.insta-stdout-err/tests/fixtures/mixed-output.sh check2 3
+  /Users/maximilian/workspace/worktrunk.config-name/tests/fixtures/mixed-output.sh check2 3
[check2] stdout line 1
[check2] stderr line 1
@@ -26,9 +26,9 @@ expression: output.normalized()
[check2] stdout complete
[check2] stderr complete
-πŸ”„ Merging 1 commit to main @ 429b6a2 (no commit/squash/rebase needed)
+πŸ”„ Merging 1 commit to main @ ed2a7b0 (no commit/squash/rebase needed)
-  * 429b6a2 (HEAD -> feature) Add feature
+  * ed2a7b0 (HEAD -> feature) Add feature
  feature.txt | 1 +
  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.snap
index 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
πŸ”„ Running pre-merge: check1:
-  /Users/maximilian/workspace/worktrunk.insta-stdout-err/tests/fixtures/mixed-output.sh check1 3
+  /Users/maximilian/workspace/worktrunk.config-name/tests/fixtures/mixed-output.sh check1 3
πŸ”„ Running pre-merge: check2:
-  /Users/maximilian/workspace/worktrunk.insta-stdout-err/tests/fixtures/mixed-output.sh check2 3
+  /Users/maximilian/workspace/worktrunk.config-name/tests/fixtures/mixed-output.sh check2 3
-πŸ”„ Merging 1 commit to main @ 429b6a2 (no commit/squash/rebase needed)
+πŸ”„ Merging 1 commit to main @ ed2a7b0 (no commit/squash/rebase needed)
-  * 429b6a2 (HEAD -> feature) Add feature
+  * ed2a7b0 (HEAD -> feature) Add feature
  feature.txt | 1 +
  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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -25,7 +25,6 @@ exit_code: 0
πŸ”„ Running post-create:
  echo 'approved' > output.txt
βœ… Created new worktree for test-approved from main at [REPO].test-approved
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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 -----
βšͺ Post-create declined
βœ… Created new worktree for test-mixed from main at [REPO].test-mixed
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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 -----
βšͺ Post-create declined
βœ… Created new worktree for test/nested-branch from main at [REPO].test-nested-branch
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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 -----
βšͺ Post-create declined
βœ… Created new worktree for test-named from main at [REPO].test-named
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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 -----
βšͺ Post-create declined
βœ… Created new worktree for feature/test-approval from main at [REPO].feature-test-approval
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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 -----
βšͺ Post-create declined
βœ… Created new worktree for test-decline from main at [REPO].test-decline
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -26,7 +26,6 @@ exit_code: 0
πŸ”„ Running post-create:
  echo 'test command' > output.txt
βœ… Created new worktree for test-force from main at [REPO].test-force
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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 -----
βšͺ Post-create declined
βœ… Created new worktree for test-force-2 from main at [REPO].test-force-2
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
new file mode 100644
index 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 -----
+🟑 Failed to save command approval: Failed to write config file: Permission denied (os error 13)
+πŸ’‘ You will be prompted again next time.
+πŸ”„ Running post-create:
+  echo 'test command'
+βœ… Created new worktree for test-permission from main at [REPO].test-permission
+πŸ’‘ To enable automatic cd, run: wt config shell
+
+----- stderr -----
+
+🟑 test-repo wants to execute 1 command:
+
+πŸ”„ Post-create:
+  echo 'test command'
+
+πŸ’‘ Allow and remember? [y/N]
+test command
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -25,7 +25,6 @@ exit_code: 0
πŸ”„ Running post-create:
  echo 'Setup done' > setup.txt
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start: server:
  sleep 0.5 && echo 'Server running' > server.txt
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -26,7 +26,6 @@ exit_code: 0
  exit 1
🟑 Command failed: Command failed with exit code: exit status: 1
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -29,7 +29,6 @@ exit_code: 0
  echo 'File exists' > result.txt
  fi
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -27,7 +27,6 @@ exit_code: 0
πŸ”„ Running post-create:
  echo 'Second'
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -27,7 +27,6 @@ exit_code: 0
πŸ”„ Running post-create: setup:
  echo 'Running setup'
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -25,7 +25,6 @@ exit_code: 0
πŸ”„ Running post-create:
  echo 'Setup complete'
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
@@ -31,7 +31,6 @@ exit_code: 0
πŸ”„ Running post-create:
  echo 'Root: [REPO]' >> info.txt
βœ… Created new worktree for feature/test from main at [REPO].feature-test
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start:
  echo 'line1
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start:
  echo 'POST-START-RAN' > post_start_marker.txt
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start:
  echo 'unclosed quote
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start:
  echo 'stdout output' && echo 'stderr output' >&2
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start:
  echo 'first line' > multiline.txt
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start: task1:
  echo 'Task 1 running' > task1.txt
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start: task1:
  echo 'TASK1_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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
πŸ”„ Running post-start:
  sleep 1 && echo 'Background task done' > background.txt
diff --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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Switched to worktree for feature at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
🟑 --base flag is only used with --create, ignoring
βœ… Switched to worktree for main at [REPO]
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature-x from main at [REPO].feature-x
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for remote-feature from main at [REPO].remote-feature
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap b/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Switched to worktree for feature-z at [WORKTREE_FEATURE_Z]
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_previous_branch.snap b/tests/snapshots/integration__integration_tests__switch__switch_previous_branch.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Switched to worktree for feature-a at [REPO].feature-a
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature-from-main from main at [REPO].feature-from-main
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- 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.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Switched to worktree for existing-branch at [WORKTREE_EXISTING_BRANCH]
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap
index 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: C
LC_ALL: C
SOURCE_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: true
exit_code: 0
----- stdout -----
βœ… Created new worktree for feature-with-base from main at [REPO].feature-with-base
-πŸ’‘
πŸ’‘ To enable automatic cd, run: wt config shell
----- stderr -----