Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

feat: Dim unhighlighted shell command text

Maximilian Roosc57116bef52f
diff --git a/src/styling/format.rs b/src/styling/format.rs
index 00d9570cf..b57884e5a 100644
--- a/src/styling/format.rs
+++ b/src/styling/format.rs
@@ -183,6 +183,9 @@ pub fn format_bash_with_gutter(content: &str, left_margin: &str) -> String {
use tree_sitter_highlight::{HighlightConfiguration, HighlightEvent, Highlighter};
let gutter = super::GUTTER;
+ // Use gray (BrightBlack) for visible dimming of unhighlighted content
+ let base_style = super::GRAY;
+ let reset = anstyle::Reset;
let mut output = String::new();
let wrapped_lines = wrap_content_for_gutter(content, left_margin);
@@ -229,12 +232,14 @@ pub fn format_bash_with_gutter(content: &str, left_margin: &str) -> String {
// Process each wrapped line
for line in &wrapped_lines {
- output.push_str(&format!("{left_margin}{gutter} {gutter:#} "));
+ // Start line with gutter and base gray style for unhighlighted content
+ output.push_str(&format!("{left_margin}{gutter} {gutter:#} {base_style}"));
// Highlight this line
let Ok(highlights) = highlighter.highlight(&config, line.as_bytes(), None, |_| None) else {
- // Fallback: just print plain text if highlighting fails
+ // Fallback: just print plain text if highlighting fails (already gray)
output.push_str(line);
+ output.push_str(&format!("{reset}"));
output.push('\n');
continue;
};
@@ -244,13 +249,13 @@ pub fn format_bash_with_gutter(content: &str, left_margin: &str) -> String {
for event in highlights {
match event.unwrap() {
HighlightEvent::Source { start, end } => {
- // Output the text for this source region
+ // Output the text for this source region (inherits current style)
if let Ok(text) = std::str::from_utf8(&line_bytes[start..end]) {
output.push_str(text);
}
}
HighlightEvent::HighlightStart(idx) => {
- // Start of a highlighted region - apply style
+ // Start of a highlighted region - apply style (includes dimmed)
if let Some(name) = highlight_names.get(idx.0)
&& let Some(style) = bash_token_style(name)
{
@@ -258,14 +263,14 @@ pub fn format_bash_with_gutter(content: &str, left_margin: &str) -> String {
}
}
HighlightEvent::HighlightEnd => {
- // End of highlighted region - reset style
- output.push_str(&format!("{}", anstyle::Reset));
+ // End of highlighted region - return to base gray style
+ output.push_str(&format!("{base_style}"));
}
}
}
- // Ensure all styles are reset at end of line to prevent leaking into child process output
- output.push_str(&format!("{}", anstyle::Reset));
+ // Full reset at end of line to prevent leaking into child process output
+ output.push_str(&format!("{reset}"));
output.push('\n');
}
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_accept.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_accept.snap
index 522c21af9..f6ff9386f 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_accept.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_accept.snap
@@ -7,11 +7,11 @@ y
🟑 test-repo needs approval to execute 1 command:
βšͺ post-create:
-  echo 'test command'
+  echo 'test command'
πŸ’‘ Allow and remember? [y/N]
πŸ”„ Running post-create:
-  echo 'test command'
+  echo 'test command'
test command
βœ… Created new worktree for test-approve from main at [REPO]/test-repo.test-approve
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_decline.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_decline.snap
index 90056fdf0..5132fbccd 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_decline.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_decline.snap
@@ -7,7 +7,7 @@ n
🟑 test-repo needs approval to execute 1 command:
βšͺ post-create:
-  echo 'test command'
+  echo 'test command'
πŸ’‘ Allow and remember? [y/N]
βšͺ Commands declined, continuing worktree creation
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_accept.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_accept.snap
index 3d9f1f3aa..5f962d97b 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_accept.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_accept.snap
@@ -7,20 +7,20 @@ y
🟑 test-repo needs approval to execute 2 commands:
βšͺ post-create:
-  echo 'First command'
+  echo 'First command'
βšͺ post-create:
-  echo 'Third command'
+  echo 'Third command'
πŸ’‘ Allow and remember? [y/N]
πŸ”„ Running post-create:
-  echo 'First command'
+  echo 'First command'
First command
πŸ”„ Running post-create:
-  echo 'Second command'
+  echo 'Second command'
Second command
πŸ”„ Running post-create:
-  echo 'Third command'
+  echo 'Third command'
Third command
βœ… Created new worktree for test-mixed-accept from main at [REPO]/test-repo.test-mixed-accept
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_decline.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_decline.snap
index 8ea278474..a618ff4f4 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_decline.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_mixed_approved_unapproved_decline.snap
@@ -7,10 +7,10 @@ n
🟑 test-repo needs approval to execute 2 commands:
βšͺ post-create:
-  echo 'First command'
+  echo 'First command'
βšͺ post-create:
-  echo 'Third command'
+  echo 'Third command'
πŸ’‘ Allow and remember? [y/N]
βšͺ Commands declined, continuing worktree creation
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_multiple_commands.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_multiple_commands.snap
index 392fc8915..d9366c03e 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_multiple_commands.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_multiple_commands.snap
@@ -7,23 +7,23 @@ y
🟑 test-repo needs approval to execute 3 commands:
βšͺ post-create:
-  echo 'First command'
+  echo 'First command'
βšͺ post-create:
-  echo 'Second command'
+  echo 'Second command'
βšͺ post-create:
-  echo 'Third command'
+  echo 'Third command'
πŸ’‘ Allow and remember? [y/N]
πŸ”„ Running post-create:
-  echo 'First command'
+  echo 'First command'
First command
πŸ”„ Running post-create:
-  echo 'Second command'
+  echo 'Second command'
Second command
πŸ”„ Running post-create:
-  echo 'Third command'
+  echo 'Third command'
Third command
βœ… Created new worktree for test-multi from main at [REPO]/test-repo.test-multi
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_named_commands.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_named_commands.snap
index 6cab82350..504c966e8 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_named_commands.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_named_commands.snap
@@ -7,23 +7,23 @@ y
🟑 test-repo needs approval to execute 3 commands:
βšͺ post-create install:
-  echo 'Installing dependencies...'
+  echo 'Installing dependencies...'
βšͺ post-create build:
-  echo 'Building project...'
+  echo 'Building project...'
βšͺ post-create test:
-  echo 'Running tests...'
+  echo 'Running tests...'
πŸ’‘ Allow and remember? [y/N]
πŸ”„ Running post-create install:
-  echo 'Installing dependencies...'
+  echo 'Installing dependencies...'
Installing dependencies...
πŸ”„ Running post-create build:
-  echo 'Building project...'
+  echo 'Building project...'
Building project...
πŸ”„ Running post-create test:
-  echo 'Running tests...'
+  echo 'Running tests...'
Running tests...
βœ… Created new worktree for test-named from main at [REPO]/test-repo.test-named
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_permission_error.snap b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_permission_error.snap
index a5ad14ae3..14883af21 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_permission_error.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__approval_pty__approval_prompt_permission_error.snap
@@ -7,13 +7,13 @@ y
🟑 test-repo needs approval to execute 1 command:
βšͺ post-create:
-  echo 'test command'
+  echo 'test command'
πŸ’‘ Allow and remember? [y/N]
🟑 Failed to save command approval: Failed to write config file: Permission denied (os error 13)
πŸ’‘ You will be prompted again next time.
πŸ”„ Running post-create:
-  echo 'test command'
+  echo 'test command'
test command
βœ… Created new worktree for test-permission from main at [REPO]/test-repo.test-permission
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --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.snap
index 6bc71502c..953f78c22 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
@@ -4,7 +4,7 @@ expression: output.normalized()
---
βœ… Created new worktree for fish-multiline from main at [TMPDIR]/test-repo.fish-multiline
πŸ”„ Executing (--execute):
-  echo 'line 1'; echo 'line 2'; echo 'line 3'
+  echo 'line 1'; echo 'line 2'; echo 'line 3'
line 1
line 2
line 3
diff --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.snap
index 56471eec0..6a28a784b 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
@@ -4,4 +4,4 @@ expression: output.normalized()
---
βœ… Created new worktree for fish-bg from main at [TMPDIR]/test-repo.fish-bg
πŸ”„ Running post-start:
-  echo 'fish background task'
+  echo 'fish background task'
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_bash.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_bash.snap
index 2f8b1f00a..9541676b0 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_bash.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_bash.snap
@@ -3,7 +3,7 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
πŸ”„ Running pre-merge check1:
-  [WORKSPACE]/tests/fixtures/mixed-output.sh check1 3
+  [WORKSPACE]/tests/fixtures/mixed-output.sh check1 3
[check1] stdout line 1
[check1] stderr line 1
[check1] stdout line 2
@@ -13,7 +13,7 @@ expression: output.normalized()
[check1] stdout complete
[check1] stderr complete
πŸ”„ Running pre-merge check2:
-  [WORKSPACE]/tests/fixtures/mixed-output.sh check2 3
+  [WORKSPACE]/tests/fixtures/mixed-output.sh check2 3
[check2] stdout line 1
[check2] stderr line 1
[check2] stdout line 2
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_zsh.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_zsh.snap
index 2f8b1f00a..9541676b0 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_zsh.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_mixed_stdout_stderr_zsh.snap
@@ -3,7 +3,7 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
πŸ”„ Running pre-merge check1:
-  [WORKSPACE]/tests/fixtures/mixed-output.sh check1 3
+  [WORKSPACE]/tests/fixtures/mixed-output.sh check1 3
[check1] stdout line 1
[check1] stderr line 1
[check1] stdout line 2
@@ -13,7 +13,7 @@ expression: output.normalized()
[check1] stdout complete
[check1] stderr complete
πŸ”„ Running pre-merge check2:
-  [WORKSPACE]/tests/fixtures/mixed-output.sh check2 3
+  [WORKSPACE]/tests/fixtures/mixed-output.sh check2 3
[check2] stdout line 1
[check2] stderr line 1
[check2] stdout line 2
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_failure_bash.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_failure_bash.snap
index 0bfa20dcc..7414060b0 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_failure_bash.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_failure_bash.snap
@@ -3,10 +3,10 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
πŸ”„ Running pre-merge format:
-  echo 'βœ“ Code formatting check passed'
+  echo 'βœ“ Code formatting check passed'
βœ“ Code formatting check passed
πŸ”„ Running pre-merge test:
-  echo 'βœ— Test suite failed: 3 tests failing' && exit 1
+  echo 'βœ— Test suite failed: 3 tests failing' && exit 1
βœ— Test suite failed: 3 tests failing
❌ pre-merge command failed: test: exit status: 1
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_failure_zsh.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_failure_zsh.snap
index 0bfa20dcc..7414060b0 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_failure_zsh.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_failure_zsh.snap
@@ -3,10 +3,10 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
πŸ”„ Running pre-merge format:
-  echo 'βœ“ Code formatting check passed'
+  echo 'βœ“ Code formatting check passed'
βœ“ Code formatting check passed
πŸ”„ Running pre-merge test:
-  echo 'βœ— Test suite failed: 3 tests failing' && exit 1
+  echo 'βœ— Test suite failed: 3 tests failing' && exit 1
βœ— Test suite failed: 3 tests failing
❌ pre-merge command failed: test: exit status: 1
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_success_bash.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_success_bash.snap
index 931a20927..1261da70f 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_success_bash.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_success_bash.snap
@@ -3,13 +3,13 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
πŸ”„ Running pre-merge format:
-  echo 'βœ“ Code formatting check passed'
+  echo 'βœ“ Code formatting check passed'
βœ“ Code formatting check passed
πŸ”„ Running pre-merge lint:
-  echo 'βœ“ Linting passed - no warnings'
+  echo 'βœ“ Linting passed - no warnings'
βœ“ Linting passed - no warnings
πŸ”„ Running pre-merge test:
-  echo 'βœ“ All 47 tests passed in 2.3s'
+  echo 'βœ“ All 47 tests passed in 2.3s'
βœ“ All 47 tests passed in 2.3s
πŸ”„ Merging 1 commit to main @ [HASH] (no commit/squash/rebase needed)
  * [HASH] Add feature
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_success_zsh.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_success_zsh.snap
index 931a20927..1261da70f 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_success_zsh.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__merge_with_pre_merge_success_zsh.snap
@@ -3,13 +3,13 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
πŸ”„ Running pre-merge format:
-  echo 'βœ“ Code formatting check passed'
+  echo 'βœ“ Code formatting check passed'
βœ“ Code formatting check passed
πŸ”„ Running pre-merge lint:
-  echo 'βœ“ Linting passed - no warnings'
+  echo 'βœ“ Linting passed - no warnings'
βœ“ Linting passed - no warnings
πŸ”„ Running pre-merge test:
-  echo 'βœ“ All 47 tests passed in 2.3s'
+  echo 'βœ“ All 47 tests passed in 2.3s'
βœ“ All 47 tests passed in 2.3s
πŸ”„ Merging 1 commit to main @ [HASH] (no commit/squash/rebase needed)
  * [HASH] Add feature
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_hooks_post_create.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_hooks_post_create.snap
index 30ade69e2..d35f70de1 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_hooks_post_create.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_hooks_post_create.snap
@@ -3,10 +3,10 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
πŸ”„ Running post-create install:
-  uv sync
+  uv sync
Resolved 24 packages in 145ms
Installed 24 packages in 1.2s
βœ… Created new worktree for feature-x from main at [TMPDIR]/test-repo.feature-x
πŸ”„ Running post-start dev:
-  uv run dev
+  uv run dev
diff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_hooks_pre_merge.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_hooks_pre_merge.snap
index 97512f133..31c1209b7 100644
--- a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_hooks_pre_merge.snap
+++ b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__readme_example_hooks_pre_merge.snap
@@ -10,7 +10,7 @@ expression: output.normalized()
  Includes comprehensive test coverage and input validation.
βœ… Squashed @ [HASH]
πŸ”„ Running pre-merge test:
-  uv run pytest
+  uv run pytest
============================= test session starts ==============================
collected 3 items
@@ -22,7 +22,7 @@ tests/test_auth.py::test_token_validation PASSED [100%]
============================== 3 passed in 0.8s ===============================
πŸ”„ Running pre-merge lint:
-  uv run ruff check
+  uv run ruff check
All checks passed!
diff --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.snap
index 4291c6179..a2649d2ce 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
@@ -4,5 +4,5 @@ expression: output.normalized()
---
βœ… Created new worktree for test-exec from main at [TMPDIR]/test-repo.test-exec
πŸ”„ Executing (--execute):
-  echo executed
+  echo executed
executed
diff --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.snap
index 4291c6179..a2649d2ce 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
@@ -4,5 +4,5 @@ expression: output.normalized()
---
βœ… Created new worktree for test-exec from main at [TMPDIR]/test-repo.test-exec
πŸ”„ Executing (--execute):
-  echo executed
+  echo executed
executed
diff --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.snap
index 4095ee738..436880edc 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
@@ -3,13 +3,13 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
πŸ”„ Running post-create:
-  echo 'Installing dependencies...'
+  echo 'Installing dependencies...'
Installing dependencies...
πŸ”„ Running post-create:
-  echo 'Building project...'
+  echo 'Building project...'
Building project...
βœ… Created new worktree for feature-hooks from main at [TMPDIR]/test-repo.feature-hooks
πŸ”„ Running post-start server:
-  echo 'Starting dev server on port 3000'
+  echo 'Starting dev server on port 3000'
πŸ”„ Running post-start watch:
-  echo 'Watching for file changes'
+  echo 'Watching for file changes'
diff --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.snap
index 150751ce9..49c7e2171 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
@@ -4,4 +4,4 @@ expression: output.normalized()
---
βœ… Created new worktree for feature-with-hooks from main at [TMPDIR]/test-repo.feature-with-hooks
πŸ”„ Running post-start:
-  echo 'test command executed'
+  echo 'test command executed'
diff --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.snap
index 26b18241a..c5d784537 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
@@ -4,4 +4,4 @@ expression: output.normalized()
---
βœ… Created new worktree for feature-bg from main at [TMPDIR]/test-repo.feature-bg
πŸ”„ Running post-start:
-  echo 'background task'
+  echo 'background task'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap b/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap
index fe7618adf..a2a784489 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__already_approved_skip_prompt.snap
@@ -23,7 +23,7 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  echo 'approved' > output.txt
+  echo 'approved' > output.txt
βœ… Created new worktree for test-approved from main at [REPO].test-approved
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap
index 0f545e555..878c80233 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_fails_in_non_tty.snap
@@ -30,4 +30,4 @@ exit_code: 1
🟑 test-repo needs approval to execute 1 command:
βšͺ post-create:
-  echo 'test command'
+  echo 'test command'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap
index dba5e575b..0e54b5579 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_mixed_approved_unapproved.snap
@@ -12,7 +12,7 @@ exit_code: 1
🟑 test-repo needs approval to execute 2 commands:
βšͺ post-create:
-  echo 'First command'
+  echo 'First command'
βšͺ post-create:
-  echo 'Third command'
+  echo 'Third command'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap
index 5c47fe18c..427e391a5 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_multiple_commands.snap
@@ -12,13 +12,13 @@ exit_code: 1
🟑 test-repo needs approval to execute 4 commands:
βšͺ post-create:
-  echo 'Branch: test-nested-branch'
+  echo 'Branch: test-nested-branch'
βšͺ post-create:
-  echo 'Worktree: [REPO].test-nested-branch'
+  echo 'Worktree: [REPO].test-nested-branch'
βšͺ post-create:
-  echo 'Repo: test-repo'
+  echo 'Repo: test-repo'
βšͺ post-create:
-  cd [REPO].test-nested-branch && pwd
+  cd [REPO].test-nested-branch && pwd
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap
index b26322c75..fc7e1b3cb 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_named_commands.snap
@@ -12,10 +12,10 @@ exit_code: 1
🟑 test-repo needs approval to execute 3 commands:
βšͺ post-create install:
-  echo 'Installing dependencies...'
+  echo 'Installing dependencies...'
βšͺ post-create build:
-  echo 'Building project...'
+  echo 'Building project...'
βšͺ post-create test:
-  echo 'Running tests...'
+  echo 'Running tests...'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap b/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap
index c54f6f87a..ed8d5ef08 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__approval_single_command.snap
@@ -12,4 +12,4 @@ exit_code: 1
🟑 test-repo needs approval to execute 1 command:
βšͺ post-create:
-  echo 'Worktree path: [REPO].feature-test-approval'
+  echo 'Worktree path: [REPO].feature-test-approval'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap b/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap
index dba5e575b..0e54b5579 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__decline_approval_skips_only_unapproved.snap
@@ -12,7 +12,7 @@ exit_code: 1
🟑 test-repo needs approval to execute 2 commands:
βšͺ post-create:
-  echo 'First command'
+  echo 'First command'
βšͺ post-create:
-  echo 'Third command'
+  echo 'Third command'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__force_bypasses_tty_check.snap b/tests/snapshots/integration__integration_tests__approval_ui__force_bypasses_tty_check.snap
index fe6e9647a..84a82eccd 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__force_bypasses_tty_check.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__force_bypasses_tty_check.snap
@@ -24,7 +24,7 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  echo 'test command'
+  echo 'test command'
βœ… Created new worktree for test-force-tty from main at [REPO].test-force-tty
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_first_run.snap b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_first_run.snap
index 88f39e010..322a0d5f8 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_first_run.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_first_run.snap
@@ -24,7 +24,7 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  echo 'test command' > output.txt
+  echo 'test command' > output.txt
βœ… Created new worktree for test-force from main at [REPO].test-force
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap
index 9ab9c3cd2..da74e4a78 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__force_does_not_save_approvals_second_run.snap
@@ -12,4 +12,4 @@ exit_code: 1
🟑 test-repo needs approval to execute 1 command:
βšͺ post-create:
-  echo 'test command' > output.txt
+  echo 'test command' > output.txt
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__run_hook_post_merge_requires_approval.snap b/tests/snapshots/integration__integration_tests__approval_ui__run_hook_post_merge_requires_approval.snap
index 4fd3a8218..3f21208c8 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__run_hook_post_merge_requires_approval.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__run_hook_post_merge_requires_approval.snap
@@ -12,4 +12,4 @@ exit_code: 1
🟑 test-repo needs approval to execute 1 command:
βšͺ post-merge:
-  echo 'Post-merge cleanup for main'
+  echo 'Post-merge cleanup for main'
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__run_hook_pre_merge_requires_approval.snap b/tests/snapshots/integration__integration_tests__approval_ui__run_hook_pre_merge_requires_approval.snap
index 459cd7b79..494653041 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__run_hook_pre_merge_requires_approval.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__run_hook_pre_merge_requires_approval.snap
@@ -12,4 +12,4 @@ exit_code: 1
🟑 test-repo needs approval to execute 1 command:
βšͺ pre-merge:
-  echo 'Running pre-merge checks on main'
+  echo 'Running pre-merge checks on main'
diff --git a/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap b/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap
index f3be3a7a2..ad1ee6207 100644
--- a/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap
+++ b/tests/snapshots/integration__integration_tests__approvals__add_approvals_all_none_approved.snap
@@ -31,4 +31,4 @@ exit_code: 1
🟑 test-repo needs approval to execute 1 command:
βšͺ post-create:
-  echo 'test'
+  echo 'test'
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_failure.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_failure.snap
index 7c1af5abc..4ba1c50dd 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_failure.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_failure.snap
@@ -29,7 +29,7 @@ exit_code: 1
βœ… Merged to main (1 commit, 1 file, +1)
πŸ”„ Removing feature worktree & branch in background
πŸ”„ Running post-merge:
-  exit 1
+  exit 1
🟑 Command failed: exit status: 1
❌ post-merge command failed: exit status: 1
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_named.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_named.snap
index 2feb754bd..d42f9f8f6 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_named.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_named.snap
@@ -29,9 +29,9 @@ exit_code: 0
βœ… Merged to main (1 commit, 1 file, +1)
πŸ”„ Removing feature worktree & branch in background
πŸ”„ Running post-merge notify:
-  echo 'Merge to main complete' > notify.txt
+  echo 'Merge to main complete' > notify.txt
πŸ”„ Running post-merge deploy:
-  echo 'Deploying branch feature' > deploy.txt
+  echo 'Deploying branch feature' > deploy.txt
----- stderr -----

diff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snap
index ccae0c0c4..3c0ab0cdf 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snap
@@ -29,7 +29,7 @@ exit_code: 0
βœ… Merged to main (1 commit, 1 file, +1)
πŸ”„ Removing feature worktree & branch in background
πŸ”„ Running post-merge:
-  echo 'merged feature to main' > post-merge-ran.txt
+  echo 'merged feature to main' > post-merge-ran.txt
----- stderr -----

diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_commit_command_failure.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_commit_command_failure.snap
index 3755fbd2e..10e6b17d6 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_commit_command_failure.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_commit_command_failure.snap
@@ -25,7 +25,7 @@ exit_code: 1
🟑 Auto-staging 1 untracked file:
  feature.txt
πŸ”„ Running pre-commit:
-  exit 1
+  exit 1
❌ pre-commit command failed: exit status: 1
πŸ’‘ Use --no-verify to skip pre-commit commands
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_commit_command_success.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_commit_command_success.snap
index e3ed9c302..d4b938e37 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_commit_command_success.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_commit_command_success.snap
@@ -25,7 +25,7 @@ exit_code: 0
🟑 Auto-staging 1 untracked file:
  feature.txt
πŸ”„ Running pre-commit:
-  echo 'Pre-commit check passed'
+  echo 'Pre-commit check passed'
πŸ”„ Committing changes with default message... (1 file, +1, no squashing needed)
πŸ’‘ Using fallback commit message. Run 'wt config --help' for LLM setup guide
  Changes to feature.txt
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_failure.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_failure.snap
index cbbf798a5..769240a54 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_failure.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_failure.snap
@@ -23,7 +23,7 @@ success: false
exit_code: 1
----- stdout -----
πŸ”„ Running pre-merge:
-  exit 1
+  exit 1
❌ pre-merge command failed: exit status: 1
πŸ’‘ Use --no-verify to skip pre-merge commands
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_named.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_named.snap
index c6c658e7f..4f35c7650 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_named.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_named.snap
@@ -23,11 +23,11 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running pre-merge format:
-  exit 0
+  exit 0
πŸ”„ Running pre-merge lint:
-  exit 0
+  exit 0
πŸ”„ Running pre-merge test:
-  exit 0
+  exit 0
πŸ”„ Merging 1 commit to main @ [SHA] (no commit/squash/rebase needed)
  * [SHA] Add feature file
  feature.txt | 1 +
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_success.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_success.snap
index a04d5bf88..ade6fe47f 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_success.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_merge_command_success.snap
@@ -23,7 +23,7 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running pre-merge:
-  exit 0
+  exit 0
πŸ”„ Merging 1 commit to main @ [SHA] (no commit/squash/rebase needed)
  * [SHA] Add feature file
  feature.txt | 1 +
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_squash_command_failure.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_squash_command_failure.snap
index 09934335a..82ff26d55 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_squash_command_failure.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_squash_command_failure.snap
@@ -23,7 +23,7 @@ success: false
exit_code: 1
----- stdout -----
πŸ”„ Running pre-commit:
-  exit 1
+  exit 1
❌ pre-commit command failed: exit status: 1
πŸ’‘ Use --no-verify to skip pre-commit commands
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_pre_squash_command_success.snap b/tests/snapshots/integration__integration_tests__merge__merge_pre_squash_command_success.snap
index 796daa7c0..1cdfb0304 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_pre_squash_command_success.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_pre_squash_command_success.snap
@@ -23,7 +23,7 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running pre-commit:
-  echo 'Pre-commit check passed'
+  echo 'Pre-commit check passed'
πŸ”„ Merging 1 commit to main @ [SHA] (no commit/squash/rebase needed)
  * [SHA] Add feature file
  feature.txt | 1 +
diff --git a/tests/snapshots/integration__integration_tests__merge__readme_example_complex.snap b/tests/snapshots/integration__integration_tests__merge__readme_example_complex.snap
index bf1fefc7c..0358a1e7f 100644
--- a/tests/snapshots/integration__integration_tests__merge__readme_example_complex.snap
+++ b/tests/snapshots/integration__integration_tests__merge__readme_example_complex.snap
@@ -36,9 +36,9 @@ exit_code: 0
  - Create test suite covering all authentication flows
βœ… Squashed @ [SHA]
πŸ”„ Running pre-merge test:
-  cargo test
+  cargo test
πŸ”„ Running pre-merge lint:
-  cargo clippy
+  cargo clippy
πŸ”„ Merging 1 commit to main @ [SHA] (no rebase needed)
  * [SHA] feat(auth): Implement JWT authentication system
  auth.rs | 8 ++++++++
@@ -48,7 +48,7 @@ exit_code: 0
βœ… Merged to main (1 commit, 3 files, +33)
πŸ”„ Removing feature-auth worktree & branch in background
πŸ”„ Running post-merge install:
-  cargo install --path .
+  cargo install --path .
----- stderr -----
 Finished test [unoptimized + debuginfo] target(s) in 0.12s
diff --git a/tests/snapshots/integration__integration_tests__merge__readme_example_hooks_post_create.snap b/tests/snapshots/integration__integration_tests__merge__readme_example_hooks_post_create.snap
index 9aa087e9a..a5aaeafcf 100644
--- a/tests/snapshots/integration__integration_tests__merge__readme_example_hooks_post_create.snap
+++ b/tests/snapshots/integration__integration_tests__merge__readme_example_hooks_post_create.snap
@@ -25,11 +25,11 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create install:
-  uv sync
+  uv sync
βœ… Created new worktree for feature-x from main at [REPO].feature-x
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start dev:
-  uv run dev
+  uv run dev
----- stderr -----

diff --git a/tests/snapshots/integration__integration_tests__merge__readme_example_hooks_pre_merge.snap b/tests/snapshots/integration__integration_tests__merge__readme_example_hooks_pre_merge.snap
index 3ca5dbced..358701631 100644
--- a/tests/snapshots/integration__integration_tests__merge__readme_example_hooks_pre_merge.snap
+++ b/tests/snapshots/integration__integration_tests__merge__readme_example_hooks_pre_merge.snap
@@ -31,9 +31,9 @@ exit_code: 0
  Includes comprehensive test coverage and input validation.
βœ… Squashed @ [SHA]
πŸ”„ Running pre-merge test:
-  uv run pytest
+  uv run pytest
πŸ”„ Running pre-merge lint:
-  uv run ruff check
+  uv run ruff check
πŸ”„ Merging 1 commit to main @ [SHA] (no rebase needed)
  * [SHA] feat(api): Add user authentication endpoints
  api/auth.py | 31 +++++++++++++++++++++++++++++++
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap
index e5ccf738a..c866f65f6 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -23,11 +24,11 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  echo 'Setup done' > setup.txt
+  echo 'Setup done' > setup.txt
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start server:
-  sleep 0.05 && echo 'Server running' > server.txt
+  sleep 0.05 && echo 'Server running' > server.txt
----- stderr -----

diff --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.snap
index bb6e081c1..de597291a 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
@@ -16,6 +16,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -26,8 +27,8 @@ exit_code: 0
----- stdout -----
βœ… Created new worktree for feature from main at [REPO].feature
πŸ”„ Running post-start:
-  echo 'Background task' > background.txt
+  echo 'Background task' > background.txt
πŸ”„ Executing (--execute):
-  echo 'Execute flag' > execute.txt
+  echo 'Execute flag' > execute.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.snap
index 0127d5877..d1d4376b3 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -23,7 +24,7 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  exit 1
+  exit 1
🟑 Command failed: exit status: 1
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap
index b8ebf9388..a9c15b7dd 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -23,11 +24,11 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  if [ ! -f test.txt ]; then
-  echo 'File does not exist' > result.txt
-  else
-  echo 'File exists' > result.txt
-  fi
+  if [ ! -f test.txt ]; then
+   echo 'File does not exist' > result.txt
+  else
+   echo 'File exists' > result.txt
+  fi
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiple_commands_array.snap
index 8c33c6087..666288edc 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -23,9 +24,9 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  echo 'First'
+  echo 'First'
πŸ”„ Running post-create:
-  echo 'Second'
+  echo 'Second'
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_named_commands.snap
index e96f8a7c3..d7687bb1a 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -23,9 +24,9 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create install:
-  echo 'Installing deps'
+  echo 'Installing deps'
πŸ”„ Running post-create setup:
-  echo 'Running setup'
+  echo 'Running setup'
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap
index 43f1bd673..67138d9e4 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -23,7 +24,7 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  echo 'Setup complete'
+  echo 'Setup complete'
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_template_expansion.snap
index 176848d23..e02740753 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -23,13 +24,13 @@ success: true
exit_code: 0
----- stdout -----
πŸ”„ Running post-create:
-  echo 'Repo: test-repo' > info.txt
+  echo 'Repo: test-repo' > info.txt
πŸ”„ Running post-create:
-  echo 'Branch: feature-test' >> info.txt
+  echo 'Branch: feature-test' >> info.txt
πŸ”„ Running post-create:
-  echo 'Worktree: [REPO].feature-test' >> info.txt
+  echo 'Worktree: [REPO].feature-test' >> info.txt
πŸ”„ Running post-create:
-  echo 'Root: [REPO]' >> info.txt
+  echo 'Root: [REPO]' >> info.txt
βœ… Created new worktree for feature/test from main at [REPO].feature-test
πŸ’‘ Run `wt config shell install` to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap
index 5d56ad1e0..3ae6c8883 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,8 +26,8 @@ exit_code: 0
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start:
-  echo 'line1
-  line2
-  line3' | grep line2 > filtered.txt
+  echo 'line1
+  line2
+  line3' | grep line2 > filtered.txt
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_create_with_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_create_with_command.snap
index 902f28a9c..fe19f9cd4 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_create_with_command.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_create_with_command.snap
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,6 +26,6 @@ exit_code: 0
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start:
-  echo 'POST-START-RAN' > post_start_marker.txt
+  echo 'POST-START-RAN' > post_start_marker.txt
----- 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.snap
index d48815763..7c554f29a 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,6 +26,6 @@ exit_code: 0
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start:
-  echo 'unclosed quote
+  echo 'unclosed quote
----- 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.snap
index 235bcf5be..a7e540bd5 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,6 +26,6 @@ exit_code: 0
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start:
-  echo 'stdout output' && echo 'stderr output' >&2
+  echo 'stdout output' && echo 'stderr output' >&2
----- 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.snap
index 5ecc7a6da..24a6d3a2f 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,8 +26,8 @@ exit_code: 0
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start:
-  echo 'first line' > multiline.txt
-  echo 'second line' >> multiline.txt
-  echo 'third line' >> multiline.txt
+  echo 'first line' > multiline.txt
+  echo 'second line' >> multiline.txt
+  echo 'third line' >> multiline.txt
----- 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.snap
index ddd960fba..a459eb4f3 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,8 +26,8 @@ exit_code: 0
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start task1:
-  echo 'Task 1 running' > task1.txt
+  echo 'Task 1 running' > task1.txt
πŸ”„ Running post-start task2:
-  echo 'Task 2 running' > task2.txt
+  echo 'Task 2 running' > task2.txt
----- 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.snap
index 5ba363ec2..2b9d150d1 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,10 +26,10 @@ exit_code: 0
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start task1:
-  echo 'TASK1_OUTPUT'
+  echo 'TASK1_OUTPUT'
πŸ”„ Running post-start task2:
-  echo 'TASK2_OUTPUT'
+  echo 'TASK2_OUTPUT'
πŸ”„ Running post-start task3:
-  echo 'TASK3_OUTPUT'
+  echo 'TASK3_OUTPUT'
----- 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.snap
index dc3b2a552..2b2380147 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
@@ -14,6 +14,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,6 +26,6 @@ exit_code: 0
βœ… Created new worktree for feature from main at [REPO].feature
πŸ’‘ Run `wt config shell install` to enable automatic cd
πŸ”„ Running post-start:
-  sleep 0.1 && echo 'Background task done' > background.txt
+  sleep 0.1 && echo 'Background task done' > background.txt
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_creates_file.snap
index c93d29c45..f6298c384 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
@@ -16,6 +16,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -26,6 +27,6 @@ exit_code: 0
----- stdout -----
βœ… Created new worktree for file-test from main at [REPO].file-test
πŸ”„ Executing (--execute):
-  echo 'test content' > test.txt
+  echo 'test content' > test.txt
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap
index fe713f3f7..5f77c6e27 100644
--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap
+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_existing.snap
@@ -15,6 +15,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -25,6 +26,6 @@ exit_code: 0
----- stdout -----
βœ… Switched to worktree for existing-exec at [WORKTREE_EXISTING_EXEC]
πŸ”„ Executing (--execute):
-  echo 'existing worktree' > existing.txt
+  echo 'existing worktree' > existing.txt
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap
index 2d74422b0..33d2390c6 100644
--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap
+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_failure.snap
@@ -16,6 +16,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -26,6 +27,6 @@ exit_code: 1
----- stdout -----
βœ… Created new worktree for fail-test from main at [REPO].fail-test
πŸ”„ Executing (--execute):
-  exit 1
+  exit 1
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap
index 96a7c3df7..a098eba74 100644
--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap
+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_multiline.snap
@@ -16,6 +16,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -26,9 +27,9 @@ exit_code: 0
----- stdout -----
βœ… Created new worktree for multiline-test from main at [REPO].multiline-test
πŸ”„ Executing (--execute):
-  echo 'line1'
-  echo 'line2'
-  echo 'line3'
+  echo 'line1'
+  echo 'line2'
+  echo 'line3'
line1
line2
line3
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap
index 534c0d730..12ae2ce53 100644
--- a/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap
+++ b/tests/snapshots/integration__integration_tests__switch__switch_execute_success.snap
@@ -16,6 +16,7 @@ info:
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
GIT_EDITOR: ""
+ HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
@@ -26,7 +27,7 @@ exit_code: 0
----- stdout -----
βœ… Created new worktree for exec-test from main at [REPO].exec-test
πŸ”„ Executing (--execute):
-  echo 'test output'
+  echo 'test output'
test output
----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_internal_execute_exit_code.snap b/tests/snapshots/integration__integration_tests__switch__switch_internal_execute_exit_code.snap
index 98c514126..fc4742eec 100644
--- a/tests/snapshots/integration__integration_tests__switch__switch_internal_execute_exit_code.snap
+++ b/tests/snapshots/integration__integration_tests__switch__switch_internal_execute_exit_code.snap
@@ -32,4 +32,4 @@ exit 42
----- stderr -----
βœ… Created new worktree for exit-code-test from main at [REPO].exit-code-test
πŸ”„ Executing (--execute):
-  exit 42
+  exit 42
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_internal_execute_output_then_exit.snap b/tests/snapshots/integration__integration_tests__switch__switch_internal_execute_output_then_exit.snap
index 17a457e70..08c34aa80 100644
--- a/tests/snapshots/integration__integration_tests__switch__switch_internal_execute_output_then_exit.snap
+++ b/tests/snapshots/integration__integration_tests__switch__switch_internal_execute_output_then_exit.snap
@@ -33,5 +33,5 @@ exit 7
----- stderr -----
βœ… Created new worktree for output-exit-test from main at [REPO].output-exit-test
πŸ”„ Executing (--execute):
-  echo 'doing work'
-  exit 7
+  echo 'doing work'
+  exit 7
diff --git a/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap b/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap
index 3a70f334a..cec8c356b 100644
--- a/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap
+++ b/tests/snapshots/integration__integration_tests__switch__switch_internal_with_execute.snap
@@ -33,5 +33,5 @@ echo 'line2'
----- stderr -----
βœ… Created new worktree for exec-internal from main at [REPO].exec-internal
πŸ”„ Executing (--execute):
-  echo 'line1'
-  echo 'line2'
+  echo 'line1'
+  echo 'line2'