Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
feat(output): Tailor switch messages by output mode
Maximilian Roos77880bfa73d4
diff --git a/src/output/directive.rs b/src/output/directive.rsindex a518f36bd..8159d29c8 100644--- a/src/output/directive.rs+++ b/src/output/directive.rs@@ -51,6 +51,27 @@ impl DirectiveOutput {write!(io::stdout(), "\0")?;io::stdout().flush()}++ /// Format a switch success message for directive mode+ ///+ /// In directive mode, the shell wrapper will actually change directories,+ /// so we can say "changed directory to {path}"+ pub fn format_switch_success(&self, branch: &str, path: &Path, created_branch: bool) -> String {+ use worktrunk::styling::{GREEN, SUCCESS_EMOJI};+ let green_bold = GREEN.bold();++ if created_branch {+ format!(+ "{SUCCESS_EMOJI} {GREEN}Created new worktree for {green_bold}{branch}{green_bold:#}, changed directory to {green_bold}{}{green_bold:#}{GREEN:#}",+ path.display()+ )+ } else {+ format!(+ "{SUCCESS_EMOJI} {GREEN}Switched to worktree for {green_bold}{branch}{green_bold:#}, changed directory to {green_bold}{}{green_bold:#}{GREEN:#}",+ path.display()+ )+ }+ }}impl Default for DirectiveOutput {diff --git a/src/output/global.rs b/src/output/global.rsindex a4caf087e..8125d1602 100644--- a/src/output/global.rs+++ b/src/output/global.rs@@ -137,6 +137,17 @@ pub fn terminate_output() -> io::Result<()> {})}+/// Format a switch success message (mode-specific)+///+/// In interactive mode: "at {path}" (can't actually change directory)+/// In directive mode: "changed directory to {path}" (shell will change it)+pub fn format_switch_success(branch: &str, path: &Path, created_branch: bool) -> String {+ OUTPUT_CONTEXT.with(|ctx| match &*ctx.borrow() {+ OutputHandler::Interactive(i) => i.format_switch_success(branch, path, created_branch),+ OutputHandler::Directive(d) => d.format_switch_success(branch, path, created_branch),+ })+}+#[cfg(test)]mod tests {use super::*;diff --git a/src/output/handlers.rs b/src/output/handlers.rsindex 229d7df0c..6ae473ae5 100644--- a/src/output/handlers.rs+++ b/src/output/handlers.rs@@ -1,35 +1,22 @@//! Output handlers for worktree operations using the global output contextuse crate::commands::worktree::{RemoveResult, SwitchResult};+use crate::output::global::format_switch_success;use worktrunk::git::GitError;-/// Format message for switch operation (includes emoji and color for consistency)+/// Format message for switch operation (mode-specific via output system)fn format_switch_message(result: &SwitchResult, branch: &str) -> String {- use worktrunk::styling::{GREEN, SUCCESS_EMOJI};- let green_bold = GREEN.bold();-match result {SwitchResult::ExistingWorktree(path) => {- format!(- "{SUCCESS_EMOJI} {GREEN}Switched to worktree for {green_bold}{branch}{green_bold:#} at {}{GREEN:#}",- path.display()- )+ // created_branch=false means we switched to existing worktree+ format_switch_success(branch, path, false)}SwitchResult::CreatedWorktree {path,created_branch,} => {- if *created_branch {- format!(- "{SUCCESS_EMOJI} {GREEN}Created new worktree for {green_bold}{branch}{green_bold:#} at {}{GREEN:#}",- path.display()- )- } else {- format!(- "{SUCCESS_EMOJI} {GREEN}Added worktree for {green_bold}{branch}{green_bold:#} at {}{GREEN:#}",- path.display()- )- }+ // Pass through whether we created a new branch+ format_switch_success(branch, path, *created_branch)}}}diff --git a/src/output/interactive.rs b/src/output/interactive.rsindex 9307588a5..112792217 100644--- a/src/output/interactive.rs+++ b/src/output/interactive.rs@@ -67,6 +67,26 @@ impl InteractiveOutput {// No-op in interactive mode - no NUL terminators neededOk(())}++ /// Format a switch success message for interactive mode+ ///+ /// In interactive mode, we can't actually change directories, so we say "at {path}"+ pub fn format_switch_success(&self, branch: &str, path: &Path, created_branch: bool) -> String {+ use worktrunk::styling::{GREEN, SUCCESS_EMOJI};+ let green_bold = GREEN.bold();++ if created_branch {+ format!(+ "{SUCCESS_EMOJI} {GREEN}Created new worktree for {green_bold}{branch}{green_bold:#} at {green_bold}{}{green_bold:#}{GREEN:#}",+ path.display()+ )+ } else {+ format!(+ "{SUCCESS_EMOJI} {GREEN}Switched to worktree for {green_bold}{branch}{green_bold:#} at {green_bold}{}{green_bold:#}{GREEN:#}",+ path.display()+ )+ }+ }}impl Default for InteractiveOutput {diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__bash_shell_integration_hint_suppressed.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__bash_shell_integration_hint_suppressed.snapindex 583fb7e07..2a849723e 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__bash_shell_integration_hint_suppressed.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__bash_shell_integration_hint_suppressed.snap@@ -1,5 +1,5 @@---source: tests/integration_tests/shell_wrapper.rs-expression: normalized.as_ref()+expression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mbash-test[0m at [TMPDIR]/test-repo.bash-test[0m+β [32mCreated new worktree for [1m[32mbash-test[0m, changed directory to [1m[32m[TMPDIR]/test-repo.bash-test[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_multiline_command_execution.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_multiline_command_execution.snapindex 991bb3b1b..ea70102f7 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_multiline_command_execution.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_multiline_command_execution.snap@@ -2,7 +2,7 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mfish-multiline[0m at [TMPDIR]/test-repo.fish-multiline[0m+β [32mCreated new worktree for [1m[32mfish-multiline[0m, changed directory to [1m[32m[TMPDIR]/test-repo.fish-multiline[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'line 1'; [1m[34mecho [32m'line 2'; [1m[34mecho [32m'line 3'diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_handles_empty_chunks.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_handles_empty_chunks.snapindex 1e89689b2..7017b0a26 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_handles_empty_chunks.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_handles_empty_chunks.snap@@ -1,5 +1,5 @@---source: tests/integration_tests/shell_wrapper.rs-expression: normalized.as_ref()+expression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mfish-minimal[0m at [TMPDIR]/test-repo.fish-minimal[0m+β [32mCreated new worktree for [1m[32mfish-minimal[0m, changed directory to [1m[32m[TMPDIR]/test-repo.fish-minimal[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_preserves_progress_messages.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_preserves_progress_messages.snapindex 18d00fc13..00c68710b 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_preserves_progress_messages.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_preserves_progress_messages.snap@@ -5,4 +5,4 @@ expression: output.normalized().as_ref()π [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'fish background task'-β [32mCreated new worktree for [1m[32mfish-bg[0m at [TMPDIR]/test-repo.fish-bg[0m+β [32mCreated new worktree for [1m[32mfish-bg[0m, changed directory to [1m[32m[TMPDIR]/test-repo.fish-bg[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_bash.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_bash.snapindex 6d6577aca..2c88e4e9d 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_bash.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_bash.snap@@ -2,4 +2,4 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mfeature[0m at [TMPDIR]/test-repo.feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m, changed directory to [1m[32m[TMPDIR]/test-repo.feature[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_fish.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_fish.snapindex 6d6577aca..2c88e4e9d 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_fish.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_fish.snap@@ -2,4 +2,4 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mfeature[0m at [TMPDIR]/test-repo.feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m, changed directory to [1m[32m[TMPDIR]/test-repo.feature[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_zsh.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_zsh.snapindex 6d6577aca..2c88e4e9d 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_zsh.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create_zsh.snap@@ -2,4 +2,4 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mfeature[0m at [TMPDIR]/test-repo.feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m, changed directory to [1m[32m[TMPDIR]/test-repo.feature[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_bash.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_bash.snapindex 4a4173969..2450fdfa2 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_bash.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_bash.snap@@ -2,7 +2,7 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mtest-exec[0m at [TMPDIR]/test-repo.test-exec[0m+β [32mCreated new worktree for [1m[32mtest-exec[0m, changed directory to [1m[32m[TMPDIR]/test-repo.test-exec[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho executeddiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_fish.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_fish.snapindex 4a4173969..2450fdfa2 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_fish.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_fish.snap@@ -2,7 +2,7 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mtest-exec[0m at [TMPDIR]/test-repo.test-exec[0m+β [32mCreated new worktree for [1m[32mtest-exec[0m, changed directory to [1m[32m[TMPDIR]/test-repo.test-exec[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho executeddiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_through_wrapper.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_through_wrapper.snapindex 4a4173969..2450fdfa2 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_through_wrapper.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_through_wrapper.snap@@ -2,7 +2,7 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mtest-exec[0m at [TMPDIR]/test-repo.test-exec[0m+β [32mCreated new worktree for [1m[32mtest-exec[0m, changed directory to [1m[32m[TMPDIR]/test-repo.test-exec[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho executeddiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_zsh.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_zsh.snapindex 4a4173969..2450fdfa2 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_zsh.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute_zsh.snap@@ -2,7 +2,7 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----β [32mCreated new worktree for [1m[32mtest-exec[0m at [TMPDIR]/test-repo.test-exec[0m+β [32mCreated new worktree for [1m[32mtest-exec[0m, changed directory to [1m[32m[TMPDIR]/test-repo.test-exec[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho executeddiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_bash.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_bash.snapindex 56a23898e..64c1da482 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_bash.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_bash.snap@@ -18,4 +18,4 @@ Building project...π [36mRunning post-start: watch[0m[40m [0m [1m[34mecho [32m'Watching for file changes'-β [32mCreated new worktree for [1m[32mfeature-hooks[0m at [TMPDIR]/test-repo.feature-hooks[0m+β [32mCreated new worktree for [1m[32mfeature-hooks[0m, changed directory to [1m[32m[TMPDIR]/test-repo.feature-hooks[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_fish.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_fish.snapindex d255cee13..6e574ee6a 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_fish.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_fish.snap@@ -16,4 +16,4 @@ Building project...π [36mRunning post-start: watch[0m[40m [0m [1m[34mecho [32m'Watching for file changes'-β [32mCreated new worktree for [1m[32mfeature-hooks[0m at [TMPDIR]/test-repo.feature-hooks[0m+β [32mCreated new worktree for [1m[32mfeature-hooks[0m, changed directory to [1m[32m[TMPDIR]/test-repo.feature-hooks[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_zsh.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_zsh.snapindex 6897c6608..38264d562 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_zsh.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_hooks_zsh.snap@@ -18,4 +18,4 @@ Building project...π [36mRunning post-start: watch[0m[40m [0m [1m[34mecho [32m'Watching for file changes'-β [32mCreated new worktree for [1m[32mfeature-hooks[0m at [TMPDIR]/test-repo.feature-hooks[0m+β [32mCreated new worktree for [1m[32mfeature-hooks[0m, changed directory to [1m[32m[TMPDIR]/test-repo.feature-hooks[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_post_start_command_no_directive_leak.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_post_start_command_no_directive_leak.snapindex 96c2885ac..825c98d43 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_post_start_command_no_directive_leak.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_post_start_command_no_directive_leak.snap@@ -5,4 +5,4 @@ expression: output.normalized().as_ref()π [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'test command executed'-β [32mCreated new worktree for [1m[32mfeature-with-hooks[0m at [TMPDIR]/test-repo.feature-with-hooks[0m+β [32mCreated new worktree for [1m[32mfeature-with-hooks[0m, changed directory to [1m[32m[TMPDIR]/test-repo.feature-with-hooks[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__wrapper_preserves_progress_messages.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__wrapper_preserves_progress_messages.snapindex 885740a54..56922bf41 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__wrapper_preserves_progress_messages.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__wrapper_preserves_progress_messages.snap@@ -5,4 +5,4 @@ expression: output.normalized().as_ref()π [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'background task'-β [32mCreated new worktree for [1m[32mfeature-bg[0m at [TMPDIR]/test-repo.feature-bg[0m+β [32mCreated new worktree for [1m[32mfeature-bg[0m, changed directory to [1m[32m[TMPDIR]/test-repo.feature-bg[0m[0mdiff --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 418cb4569..9726a5f63 100644--- 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.snap@@ -2,5 +2,5 @@source: tests/integration_tests/e2e_shell.rsexpression: output----β [32mCreated new worktree for [1m[32mtest-branch[0m at [REPO].test-branch[0m+β [32mCreated new worktree for [1m[32mtest-branch[0m, changed directory to [1m[32m[REPO].test-branch[0m[0mMARKERdiff --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 32ceb4e81..94435dc65 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/.tmpAKOlr9/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpSXuYf3/test-config.toml---success: trueexit_code: 0@@ -28,7 +28,7 @@ exit_code: 0π [36mRunning post-start: server[0m[40m [0m [1m[34msleep 0.5 [36m&& [1m[34mecho [32m'Server running' [36m> server.txt-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 6482b5610..e871653e2 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@@ -19,7 +19,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpiln4ET/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp72zfpv/test-config.toml---success: trueexit_code: 0@@ -27,7 +27,7 @@ exit_code: 0π [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'Background task' [36m> background.txt-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'Execute flag' [36m> execute.txtdiff --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 842eb3505..717723f49 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/.tmpopQ2Ih/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpTSCPfX/test-config.toml---success: trueexit_code: 0@@ -26,7 +26,7 @@ exit_code: 0[40m [0m [1m[34mexit 1π‘ [33mCommand failed: Command failed with exit code: exit status: 1[0m-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 debf2a2c0..c3eedb715 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/.tmpfrFpSC/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpR5DdbY/test-config.toml---success: trueexit_code: 0@@ -29,7 +29,7 @@ exit_code: 0[40m [0m [1m[34mecho [32m'File exists' [36m> result.txt[40m [0m [1m[34mfi-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 c92454b4e..5f068b5c0 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/.tmpqgi6Xx/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpO3fqwg/test-config.toml---success: trueexit_code: 0@@ -28,7 +28,7 @@ exit_code: 0π [36mRunning post-create: 2[0m[40m [0m [1m[34mecho [32m'Second'-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 f712a8c00..3fc8810a7 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/.tmpgXYQPe/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpHyiyl6/test-config.toml---success: trueexit_code: 0@@ -28,7 +28,7 @@ exit_code: 0π [36mRunning post-create: setup[0m[40m [0m [1m[34mecho [32m'Running setup'-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 dec5bfd61..80849ca54 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,12 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpnqrWS4/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp7YhCwn/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 712ad5d77..dba5aee62 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/.tmpJewyte/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpVxHABO/test-config.toml---success: trueexit_code: 0@@ -25,7 +25,7 @@ exit_code: 0π [36mRunning post-create:[0m[40m [0m [1m[34mecho [32m'Setup complete'-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 34b37007f..7a75c98bd 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/.tmpunyykX/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpz4D7MK/test-config.toml---success: trueexit_code: 0@@ -34,7 +34,7 @@ exit_code: 0π [36mRunning post-create: 4[0m[40m [0m [1m[34mecho [32m'Root: [REPO]' [36m>> info.txt-β [32mCreated new worktree for [1m[32mfeature/test[0m at [REPO].feature-test[0m+β [32mCreated new worktree for [1m[32mfeature/test[0m at [1m[32m[REPO].feature-test[0m[0mTo enable automatic cd, run: wt config shelldiff --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 9db3d9c00..549f3fed3 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,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmptK8KDg/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpQkmeBa/test-config.toml---success: trueexit_code: 0@@ -27,7 +27,7 @@ exit_code: 0[40m [0m [1m[34mline2[40m [0m [1m[34mline3' | grep line2 > filtered.txt-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 0ccd9b644..ab608311c 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,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpprEuqk/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpFLqz2Z/test-config.toml---success: trueexit_code: 0@@ -25,7 +25,7 @@ exit_code: 0π [36mRunning post-start:[0m[40m [0m [1m[34mecho 'unclosed quote-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 d2e7d0e0a..093bbded4 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,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpPEblxW/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmprpb0oK/test-config.toml---success: trueexit_code: 0@@ -25,7 +25,7 @@ exit_code: 0π [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'stdout output' [36m&& [1m[34mecho [32m'stderr output' >&2-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 32411867d..c257baadd 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,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpCykZDL/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpyFapZH/test-config.toml---success: trueexit_code: 0@@ -27,7 +27,7 @@ exit_code: 0[40m [0m [1m[34mecho [32m'second line' [36m>> multiline.txt[40m [0m [1m[34mecho [32m'third line' [36m>> multiline.txt-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 ed3dfb92a..6aef25fe3 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,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0QjssA/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpqKOqIQ/test-config.toml---success: trueexit_code: 0@@ -28,7 +28,7 @@ exit_code: 0π [36mRunning post-start: task2[0m[40m [0m [1m[34mecho [32m'Task 2 running' [36m> task2.txt-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 3a3b18520..dea37b581 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,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmppyH2yJ/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpc1ekPX/test-config.toml---success: trueexit_code: 0@@ -31,7 +31,7 @@ exit_code: 0π [36mRunning post-start: task3[0m[40m [0m [1m[34mecho [32m'TASK3_OUTPUT'-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 19311ff54..0954bf7a1 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,7 +17,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpZ8t2UL/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpM1pzXk/test-config.toml---success: trueexit_code: 0@@ -25,7 +25,7 @@ exit_code: 0π [36mRunning post-start:[0m[40m [0m [1m[34msleep 1 [36m&& [1m[34mecho [32m'Background task done' [36m> background.txt-β [32mCreated new worktree for [1m[32mfeature[0m at [REPO].feature[0m+β [32mCreated new worktree for [1m[32mfeature[0m at [1m[32m[REPO].feature[0m[0mTo enable automatic cd, run: wt config shelldiff --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 9f40e2961..1fcbea9a0 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,13 +18,13 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpwwv9YA/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpvXJSL1/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 at [REPO][0m+β [32mSwitched to worktree for [1m[32mmain[0m at [1m[32m[REPO][0m[0mTo enable automatic cd, run: wt config shelldiff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snapindex 0a770147e..00a25a151 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap@@ -17,12 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuMZ1Qn/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpOX13l7/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mfeature-x[0m at [REPO].feature-x[0m+β [32mCreated new worktree for [1m[32mfeature-x[0m at [1m[32m[REPO].feature-x[0m[0mTo enable automatic cd, run: wt config shelldiff --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 7e6f94a1c..a824f260d 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@@ -19,12 +19,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpasOuP1/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKNwepL/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mfile-test[0m at [REPO].file-test[0m+β [32mCreated new worktree for [1m[32mfile-test[0m at [1m[32m[REPO].file-test[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'test content' [36m> test.txtdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snapindex 5cee38de4..33a2a846f 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap@@ -18,12 +18,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpP11Ajq/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuc1i1r/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mSwitched to worktree for [1m[32mexisting-exec[0m at [WORKTREE_EXISTING_EXEC][0m+β [32mSwitched to worktree for [1m[32mexisting-exec[0m at [1m[32m[WORKTREE_EXISTING_EXEC][0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'existing worktree' [36m> existing.txtdiff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snapindex d0aaac5e7..2bfd5964f 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap@@ -19,12 +19,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpx7rfUR/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpvR1UNm/test-config.toml---success: falseexit_code: 1----- stdout ------β [32mCreated new worktree for [1m[32mfail-test[0m at [REPO].fail-test[0m+β [32mCreated new worktree for [1m[32mfail-test[0m at [1m[32m[REPO].fail-test[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mexit 1diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snapindex 9cd6be1a1..bac4cd96c 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap@@ -19,12 +19,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp5QpUt9/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpAGzzq3/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mmultiline-test[0m at [REPO].multiline-test[0m+β [32mCreated new worktree for [1m[32mmultiline-test[0m at [1m[32m[REPO].multiline-test[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'line1'[40m [0m [1m[34mecho [32m'line2'diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snapindex 0212e461d..76a6d15b8 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap@@ -19,12 +19,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKkzRRv/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpd7ZTBn/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mexec-test[0m at [REPO].exec-test[0m+β [32mCreated new worktree for [1m[32mexec-test[0m at [1m[32m[REPO].exec-test[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'test output'diff --git a/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap b/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snapindex 84bf621a2..b885a59b1 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap@@ -16,12 +16,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp37HyDy/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp6eXJXQ/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mSwitched to worktree for [1m[32mfeature-z[0m at [WORKTREE_FEATURE_Z][0m+β [32mSwitched to worktree for [1m[32mfeature-z[0m at [1m[32m[WORKTREE_FEATURE_Z][0m[0mTo enable automatic cd, run: wt config shelldiff --git a/tests/snapshots/integration__integration_tests__switch__switch_existing_internal.snap b/tests/snapshots/integration__integration_tests__switch__switch_existing_internal.snapindex 5765d3ed4..0d6121eba 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 a0764c0cc..4c872fd6d 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 952273e4c..30235984e 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 7408cd794..0503b6cb7 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@@ -20,12 +20,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpeYMcNt/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpiuaAob/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mno-hooks-test[0m at [REPO].no-hooks-test[0m+β [32mCreated new worktree for [1m[32mno-hooks-test[0m at [1m[32m[REPO].no-hooks-test[0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'execute command runs'diff --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 72e28b175..675e846ec 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@@ -19,12 +19,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpRegQEi/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpaInF4G/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mSwitched to worktree for [1m[32mexisting-no-hooks[0m at [WORKTREE_EXISTING_NO_HOOKS][0m+β [32mSwitched to worktree for [1m[32mexisting-no-hooks[0m at [1m[32m[WORKTREE_EXISTING_NO_HOOKS][0m[0mπ [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'execute still runs'diff --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 8b66fa50b..1a1970a89 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@@ -15,16 +15,16 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKmwmL8+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpaEqKaaLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpnMm4h0/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKGiD8q/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mno-post-start[0m at [REPO].no-post-start[0m+β [32mCreated new worktree for [1m[32mno-post-start[0m at [1m[32m[REPO].no-post-start[0m[0mTo enable automatic cd, run: wt config shelldiff --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 c2b7f6881..08e401d5f 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@@ -16,16 +16,16 @@ info:GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/nullGIT_EDITOR: ""- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp3NrRsx+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpmajxwlLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpfdjEP4/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpzaVEoX/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mforce-no-hooks[0m at [REPO].force-no-hooks[0m+β [32mCreated new worktree for [1m[32mforce-no-hooks[0m at [1m[32m[REPO].force-no-hooks[0m[0mTo enable automatic cd, run: wt config shelldiff --git a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snapindex debd55a17..d665eba1f 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap@@ -19,12 +19,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpAJXuVQ/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpXUj97k/test-config.toml---success: trueexit_code: 0----- stdout ------β [32mCreated new worktree for [1m[32mfeature-with-base[0m at [REPO].feature-with-base[0m+β [32mCreated new worktree for [1m[32mfeature-with-base[0m at [1m[32m[REPO].feature-with-base[0m[0mTo enable automatic cd, run: wt config shell