Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
feat(switch): Improve output flow and path styling
Maximilian Roosbeb935d56a61
diff --git a/CLAUDE.md b/CLAUDE.mdindex 1227e772c..e0612dabd 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -208,14 +208,18 @@ let warning_bold = WARNING.bold();**Principle: Bold what answers the user's question, dim what provides context.**-Style based on **user intent**, not data type. In messages, branch names are always bold. Paths are bold when they're the answer (`wt config list`), dimmed when they're context (`wt switch` output). Commit hashes are always dimmed (reference info).+Style based on **user intent**, not data type. In messages, branch names are always bold. When a path is part of an action phrase (e.g., "changed directory to {path}"), it's bold because it answers "where?". When shown as supplementary metadata on a separate line (e.g., "Path: ..."), it's dimmed. Commit hashes are always dimmed (reference info).```rust-// Path as primary answer+// Path as primary answer (standalone)let bold = AnstyleStyle::new().bold();println!("Global Config: {bold}{}{bold:#}", path.display());-// Path as secondary context+// Path embedded in action phrase (part of the message)+let bold = AnstyleStyle::new().bold();+println!("✅ Created {bold}{branch}{bold:#}, changed directory to {bold}{}{bold:#}", path.display());++// Path as supplementary metadata (separate line)let dim = AnstyleStyle::new().dimmed();println!("✅ Created {bold}{branch}{bold:#}\n{dim}Path: {}{dim:#}", path.display());```@@ -225,7 +229,7 @@ println!("✅ Created {bold}{branch}{bold:#}\n{dim}Path: {}{dim:#}", path.displa| Element | Primary (answers question) | Secondary (provides context) ||---------|---------------------------|------------------------------|| Branch names | **Bold** (always) | **Bold** (always) |-| File paths | **Bold** (`config list`) | **Dim** (`switch` output) |+| File paths | **Bold** (standalone or in action phrase) | **Dim** (supplementary metadata) || Config values | Normal | **Dim** || Metadata | Dim | **Dim** |diff --git a/src/commands/worktree.rs b/src/commands/worktree.rsindex 14a5ae1a1..c5e2482fb 100644--- a/src/commands/worktree.rs+++ b/src/commands/worktree.rs@@ -218,10 +218,8 @@ pub fn handle_switch(execute_post_create_commands(&worktree_path, &repo, config, branch, force)?;}- // Spawn post-start commands (parallel, background)- if !no_hooks {- spawn_post_start_commands(&worktree_path, &repo, config, branch, force)?;- }+ // Note: post-start commands are spawned AFTER success message is shown+ // (see main.rs switch handler for temporal locality)Ok(SwitchResult::CreatedWorktree {path: worktree_path,@@ -442,7 +440,7 @@ pub fn execute_post_create_commands(}/// Spawn post-start commands in parallel as background processes (non-blocking)-fn spawn_post_start_commands(+pub fn spawn_post_start_commands(worktree_path: &std::path::Path,repo: &Repository,config: &WorktrunkConfig,diff --git a/src/main.rs b/src/main.rsindex 4da02b390..710ef5278 100644--- a/src/main.rs+++ b/src/main.rs@@ -418,8 +418,26 @@ fn main() {} => WorktrunkConfig::load().git_context("Failed to load config").and_then(|config| {- handle_switch(&branch, create, base.as_deref(), force, no_hooks, &config)- .and_then(|result| handle_switch_output(&result, &branch, execute.as_deref()))+ // Execute switch operation (creates worktree, runs post-create hooks)+ let result =+ handle_switch(&branch, create, base.as_deref(), force, no_hooks, &config)?;++ // Show success message (temporal locality: immediately after worktree creation)+ handle_switch_output(&result, &branch, execute.as_deref())?;++ // Now spawn post-start hooks (background processes, after success message)+ if !no_hooks {+ let repo = Repository::current();+ commands::worktree::spawn_post_start_commands(+ result.path(),+ &repo,+ &config,+ &branch,+ force,+ )?;+ }++ Ok(())}),Commands::Remove { worktrees } => {if worktrees.is_empty() {diff --git a/src/output/directive.rs b/src/output/directive.rsindex 7fdc88fe8..a766d88e5 100644--- a/src/output/directive.rs+++ b/src/output/directive.rs@@ -90,16 +90,16 @@ impl DirectiveOutput {pub fn format_switch_success(&self, branch: &str, path: &Path, created_branch: bool) -> String {use worktrunk::styling::{AnstyleStyle, GREEN, SUCCESS_EMOJI};let green_bold = GREEN.bold();- let dim = AnstyleStyle::new().dimmed();+ let bold = AnstyleStyle::new().bold();if created_branch {format!(- "{SUCCESS_EMOJI} {GREEN}Created new worktree for {green_bold}{branch}{green_bold:#}, changed directory to {dim}{}{dim:#}{GREEN:#}",+ "{SUCCESS_EMOJI} {GREEN}Created new worktree for {green_bold}{branch}{green_bold:#}, changed directory to {bold}{}{bold:#}{GREEN:#}",path.display())} else {format!(- "{SUCCESS_EMOJI} {GREEN}Switched to worktree for {green_bold}{branch}{green_bold:#}, changed directory to {dim}{}{dim:#}{GREEN:#}",+ "{SUCCESS_EMOJI} {GREEN}Switched to worktree for {green_bold}{branch}{green_bold:#}, changed directory to {bold}{}{bold:#}{GREEN:#}",path.display())}diff --git a/src/output/interactive.rs b/src/output/interactive.rsindex 2f3091b9c..7eb77a843 100644--- a/src/output/interactive.rs+++ b/src/output/interactive.rs@@ -74,16 +74,16 @@ impl InteractiveOutput {pub fn format_switch_success(&self, branch: &str, path: &Path, created_branch: bool) -> String {use worktrunk::styling::{AnstyleStyle, GREEN, SUCCESS_EMOJI};let green_bold = GREEN.bold();- let dim = AnstyleStyle::new().dimmed();+ let bold = AnstyleStyle::new().bold();if created_branch {format!(- "{SUCCESS_EMOJI} {GREEN}Created new worktree for {green_bold}{branch}{green_bold:#} at {dim}{}{dim:#}{GREEN:#}",+ "{SUCCESS_EMOJI} {GREEN}Created new worktree for {green_bold}{branch}{green_bold:#} at {bold}{}{bold:#}{GREEN:#}",path.display())} else {format!(- "{SUCCESS_EMOJI} {GREEN}Switched to worktree for {green_bold}{branch}{green_bold:#} at {dim}{}{dim:#}{GREEN:#}",+ "{SUCCESS_EMOJI} {GREEN}Switched to worktree for {green_bold}{branch}{green_bold:#} at {bold}{}{bold:#}{GREEN:#}",path.display())}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 38dd42a1b..57eb5997a 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@@ -2,4 +2,4 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----✅ [32mCreated new worktree for [1m[32mbash-test[0m, changed directory to [2m[TMPDIR]/test-repo.bash-test[0m[0m+✅ [32mCreated new worktree for [1m[32mbash-test[0m, changed directory to [1m[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 edd27b2f0..ff5b94a0e 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, changed directory to [2m[TMPDIR]/test-repo.fish-multiline[0m[0m+✅ [32mCreated new worktree for [1m[32mfish-multiline[0m, changed directory to [1m[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 268fa5130..137ff5dfa 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@@ -2,4 +2,4 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----✅ [32mCreated new worktree for [1m[32mfish-minimal[0m, changed directory to [2m[TMPDIR]/test-repo.fish-minimal[0m[0m+✅ [32mCreated new worktree for [1m[32mfish-minimal[0m, changed directory to [1m[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 2f9178082..9157bfbaa 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@@ -2,7 +2,6 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()---+✅ [32mCreated new worktree for [1m[32mfish-bg[0m, changed directory to [1m[TMPDIR]/test-repo.fish-bg[0m[0m🔄 [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'fish background task'--✅ [32mCreated new worktree for [1m[32mfish-bg[0m, changed directory to [2m[TMPDIR]/test-repo.fish-bg[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create.snapindex 40bed3f2b..9ab2d526c 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_create.snap@@ -2,4 +2,4 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----✅ [32mCreated new worktree for [1m[32mfeature[0m, changed directory to [2m[TMPDIR]/test-repo.feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m, changed directory to [1m[TMPDIR]/test-repo.feature[0m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute.snapindex c78d6d26d..a0f80810e 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_execute.snap@@ -2,7 +2,7 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()----✅ [32mCreated new worktree for [1m[32mtest-exec[0m, changed directory to [2m[TMPDIR]/test-repo.test-exec[0m[0m+✅ [32mCreated new worktree for [1m[32mtest-exec[0m, changed directory to [1m[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 c78d6d26d..a0f80810e 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, changed directory to [2m[TMPDIR]/test-repo.test-exec[0m[0m+✅ [32mCreated new worktree for [1m[32mtest-exec[0m, changed directory to [1m[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 ca3a105f4..72b43690e 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@@ -12,10 +12,9 @@ Installing dependencies...Building project...+✅ [32mCreated new worktree for [1m[32mfeature-hooks[0m, changed directory to [1m[TMPDIR]/test-repo.feature-hooks[0m[0m🔄 [36mRunning post-start: [1mserver[0m[0m[40m [0m [1m[34mecho [32m'Starting dev server on port 3000'🔄 [36mRunning post-start: [1mwatch[0m[0m[40m [0m [1m[34mecho [32m'Watching for file changes'--✅ [32mCreated new worktree for [1m[32mfeature-hooks[0m, changed directory to [2m[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 0c205e8cb..1615edeaa 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@@ -12,10 +12,9 @@ expression: output.normalized().as_ref()[40m [0m [1m[34mecho [32m'Building project...'+✅ [32mCreated new worktree for [1m[32mfeature-hooks[0m, changed directory to [1m[TMPDIR]/test-repo.feature-hooks[0m[0m🔄 [36mRunning post-start: [1mserver[0m[0m[40m [0m [1m[34mecho [32m'Starting dev server on port 3000'🔄 [36mRunning post-start: [1mwatch[0m[0m[40m [0m [1m[34mecho [32m'Watching for file changes'--✅ [32mCreated new worktree for [1m[32mfeature-hooks[0m, changed directory to [2m[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 0dedd825f..a0d1b5924 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@@ -2,7 +2,6 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()---+✅ [32mCreated new worktree for [1m[32mfeature-with-hooks[0m, changed directory to [1m[TMPDIR]/test-repo.feature-with-hooks[0m[0m🔄 [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'test command executed'--✅ [32mCreated new worktree for [1m[32mfeature-with-hooks[0m, changed directory to [2m[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 aae76152b..b8354bccc 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@@ -2,7 +2,6 @@source: tests/integration_tests/shell_wrapper.rsexpression: output.normalized().as_ref()---+✅ [32mCreated new worktree for [1m[32mfeature-bg[0m, changed directory to [1m[TMPDIR]/test-repo.feature-bg[0m[0m🔄 [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'background task'--✅ [32mCreated new worktree for [1m[32mfeature-bg[0m, changed directory to [2m[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 069ca445d..d72933242 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, changed directory to [2m[REPO].test-branch[0m[0m+✅ [32mCreated new worktree for [1m[32mtest-branch[0m, changed directory to [1m[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 f74a8cb52..cdca5580a 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@@ -13,10 +13,11 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIy4Px6/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpSHnw3w/test-config.toml---success: trueexit_code: 0@@ -24,12 +25,12 @@ exit_code: 0🔄 [36mRunning post-create:[0m[40m [0m [1m[34mecho [32m'Setup done' [36m> setup.txt+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m++To enable automatic cd, run: wt config shell🔄 [36mRunning post-start: [1mserver[0m[0m[40m [0m [1m[34msleep 0.5 [36m&& [1m[34mecho [32m'Server running' [36m> server.txt-✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m--To enable automatic cd, run: wt config shell----- stderr -----[0mdiff --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 95718c579..4e4de3804 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@@ -15,20 +15,21 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpy0HXln/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpNYpiBV/test-config.toml---success: trueexit_code: 0----- stdout ------🔄 [36mRunning post-start:[0m-[40m [0m [1m[34mecho [32m'Background task' [36m> background.txt--✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m🔄 [36mExecuting (--execute):[0m[40m [0m [1m[34mecho [32m'Execute flag' [36m> execute.txt+🔄 [36mRunning post-start:[0m+[40m [0m [1m[34mecho [32m'Background task' [36m> background.txt+----- stderr -----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.snapindex 999f3754e..37c6e3a29 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/.tmpRK6T43/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpLjifGu/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 [2m[REPO].feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[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 37522873c..dafcc1495 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/.tmpzoaI0i/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0UjsQ2/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 [2m[REPO].feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[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 cfabdc0dc..e9e4dae17 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@@ -13,10 +13,11 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpXehuWN/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp5Kx6T0/test-config.toml---success: trueexit_code: 0@@ -27,7 +28,7 @@ exit_code: 0🔄 [36mRunning post-create: [1m2[0m[0m[40m [0m [1m[34mecho [32m'Second'-✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[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 7621df4c8..0f4924ede 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@@ -13,10 +13,11 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp5PFAxf/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIXmAtT/test-config.toml---success: trueexit_code: 0@@ -27,7 +28,7 @@ exit_code: 0🔄 [36mRunning post-create: [1msetup[0m[0m[40m [0m [1m[34mecho [32m'Running setup'-✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[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 962ebf7e4..084f5efd0 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@@ -13,15 +13,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp7eh314/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmprPg9fH/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[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 5a73742bf..d32855e88 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/.tmpD6afT9/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpv1uv4k/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 [2m[REPO].feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[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 4233b4ab7..d31e6f0e9 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@@ -13,10 +13,11 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpbNTa9s/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpK7dGHL/test-config.toml---success: trueexit_code: 0@@ -33,7 +34,7 @@ exit_code: 0🔄 [36mRunning post-create: [1m4[0m[0m[40m [0m [1m[34mecho [32m'Root: [REPO]' [36m>> info.txt-✅ [32mCreated new worktree for [1m[32mfeature/test[0m at [2m[REPO].feature-test[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature/test[0m at [1m[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 9f116a0b6..99f2f11ee 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@@ -13,21 +13,22 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpXCbTAO/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpZZ1Hxj/test-config.toml---success: trueexit_code: 0----- stdout -----+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m++To enable automatic cd, run: wt config shell🔄 [36mRunning post-start:[0m[40m [0m [1m[34mecho 'line1[40m [0m [1m[34mline2[40m [0m [1m[34mline3' | grep line2 > filtered.txt-✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m--To enable automatic cd, run: wt config shell----- stderr -----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.snapindex 8365b7146..b2a4c9dda 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@@ -13,19 +13,20 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpculkoK/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpupdr7e/test-config.toml---success: trueexit_code: 0----- stdout -----+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m++To enable automatic cd, run: wt config shell🔄 [36mRunning post-start:[0m[40m [0m [1m[34mecho 'unclosed quote-✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m--To enable automatic cd, run: wt config shell----- stderr -----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.snapindex 3e1e3436a..16df982e3 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@@ -13,19 +13,20 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmphBwRjp/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmphgwTVZ/test-config.toml---success: trueexit_code: 0----- stdout -----+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m++To enable automatic cd, run: wt config shell🔄 [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 [2m[REPO].feature[0m[0m--To enable automatic cd, run: wt config shell----- stderr -----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.snapindex 96d5b5085..9ff0840de 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@@ -13,21 +13,22 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp1q3u7W/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpQmUUGm/test-config.toml---success: trueexit_code: 0----- stdout -----+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m++To enable automatic cd, run: wt config shell🔄 [36mRunning post-start:[0m[40m [0m [1m[34mecho [32m'first line' [36m> multiline.txt[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 [2m[REPO].feature[0m[0m--To enable automatic cd, run: wt config shell----- stderr -----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.snapindex 13068b018..831b8538c 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,19 +17,19 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpoL8MgV/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpxdAo1o/test-config.toml---success: trueexit_code: 0----- stdout -----+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m++To enable automatic cd, run: wt config shell🔄 [36mRunning post-start: [1mtask1[0m[0m[40m [0m [1m[34mecho [32m'Task 1 running' [36m> task1.txt🔄 [36mRunning post-start: [1mtask2[0m[0m[40m [0m [1m[34mecho [32m'Task 2 running' [36m> task2.txt-✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m--To enable automatic cd, run: wt config shell----- stderr -----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.snapindex 16b382f44..470a0a1b8 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,11 +17,14 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpA5nf1x/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0SFYX9/test-config.toml---success: trueexit_code: 0----- stdout -----+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m++To enable automatic cd, run: wt config shell🔄 [36mRunning post-start: [1mtask1[0m[0m[40m [0m [1m[34mecho [32m'TASK1_OUTPUT'@@ -31,8 +34,5 @@ exit_code: 0🔄 [36mRunning post-start: [1mtask3[0m[0m[40m [0m [1m[34mecho [32m'TASK3_OUTPUT'-✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m--To enable automatic cd, run: wt config shell----- stderr -----diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snapindex 1e6b71980..1a13fc066 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@@ -13,19 +13,20 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmplpgtqF/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpRouTTi/test-config.toml---success: trueexit_code: 0----- stdout -----+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[0m[0m++To enable automatic cd, run: wt config shell🔄 [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 [2m[REPO].feature[0m[0m--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.snapindex d25ab1235..830974a30 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@@ -14,16 +14,17 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpBKyBSb/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpJ5iAjV/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 [2m[REPO][0m[0m+✅ [32mSwitched to worktree for [1m[32mmain[0m at [1m[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 2f5546c7b..543cb6671 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_create_new.snap@@ -13,15 +13,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuOKnbm/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpPJqdAZ/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mfeature-x[0m at [2m[REPO].feature-x[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature-x[0m at [1m[REPO].feature-x[0m[0mTo enable automatic cd, run: wt config shelldiff --git a/tests/snapshots/integration__integration_tests__switch__switch_create_no_remote.snap b/tests/snapshots/integration__integration_tests__switch__switch_create_no_remote.snapindex becaf2544..bf03dc0d1 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,12 +17,12 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYSLsbM/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpigojqA/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mfeature[0m at [2m[REPO].feature[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature[0m at [1m[REPO].feature[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 cfb45abb4..1cda8e7f9 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@@ -15,15 +15,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpeS8uKr/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpiXPfdn/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mfile-test[0m at [2m[REPO].file-test[0m[0m+✅ [32mCreated new worktree for [1m[32mfile-test[0m at [1m[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 4b4997f3d..71225d0bc 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap@@ -14,15 +14,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuFG2vR/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmps7sIrp/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mSwitched to worktree for [1m[32mexisting-exec[0m at [2m[WORKTREE_EXISTING_EXEC][0m[0m+✅ [32mSwitched to worktree for [1m[32mexisting-exec[0m at [1m[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 4b142845a..6a4b73ee9 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap@@ -15,15 +15,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpmL5yt1/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmptcWQZg/test-config.toml---success: falseexit_code: 1----- stdout ------✅ [32mCreated new worktree for [1m[32mfail-test[0m at [2m[REPO].fail-test[0m[0m+✅ [32mCreated new worktree for [1m[32mfail-test[0m at [1m[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 8d6cb78e4..d489b534d 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap@@ -15,15 +15,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpEHaZqQ/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpOfIfWL/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mmultiline-test[0m at [2m[REPO].multiline-test[0m[0m+✅ [32mCreated new worktree for [1m[32mmultiline-test[0m at [1m[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 596ae25db..089c24efc 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap@@ -15,15 +15,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp9KW3IH/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIVfCvt/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mexec-test[0m at [2m[REPO].exec-test[0m[0m+✅ [32mCreated new worktree for [1m[32mexec-test[0m at [1m[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 416e53ab6..eb5135130 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_existing_branch.snap@@ -12,15 +12,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpvKMVPn/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpSbHuCa/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mSwitched to worktree for [1m[32mfeature-z[0m at [2m[WORKTREE_FEATURE_Z][0m[0m+✅ [32mSwitched to worktree for [1m[32mfeature-z[0m at [1m[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 a02af807f..c22d60250 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 125ef103f..62bc0746c 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 05911f6c9..658052ad4 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 a7d8d8ef4..cad661c05 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@@ -16,15 +16,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpg40tXe/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpfBZMH9/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mno-hooks-test[0m at [2m[REPO].no-hooks-test[0m[0m+✅ [32mCreated new worktree for [1m[32mno-hooks-test[0m at [1m[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 ed5390e04..aafdf65df 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@@ -15,15 +15,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmppeu8EL/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpTf5MlF/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mSwitched to worktree for [1m[32mexisting-no-hooks[0m at [2m[WORKTREE_EXISTING_NO_HOOKS][0m[0m+✅ [32mSwitched to worktree for [1m[32mexisting-no-hooks[0m at [1m[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 3713dd8b8..cfc7ccdb9 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@@ -14,16 +14,17 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKxVSWN+ GIT_EDITOR: ""+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuLwZjpLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmph3cAbc/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpfpCslg/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mno-post-start[0m at [2m[REPO].no-post-start[0m[0m+✅ [32mCreated new worktree for [1m[32mno-post-start[0m at [1m[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 67634de97..6f72f1af3 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@@ -15,16 +15,17 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null- HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp7DolD7+ GIT_EDITOR: ""+ HOME: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpSlH1kPLANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpcEdk7I/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp40CWMS/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mforce-no-hooks[0m at [2m[REPO].force-no-hooks[0m[0m+✅ [32mCreated new worktree for [1m[32mforce-no-hooks[0m at [1m[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 ac1525eff..1d598a1fa 100644--- a/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap+++ b/tests/snapshots/integration__integration_tests__switch__switch_with_base.snap@@ -15,15 +15,16 @@ info:GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"GIT_CONFIG_GLOBAL: /dev/nullGIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpPycQW6/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmprEfpAW/test-config.toml---success: trueexit_code: 0----- stdout ------✅ [32mCreated new worktree for [1m[32mfeature-with-base[0m at [2m[REPO].feature-with-base[0m[0m+✅ [32mCreated new worktree for [1m[32mfeature-with-base[0m at [1m[REPO].feature-with-base[0m[0mTo enable automatic cd, run: wt config shell