Skip to content

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

Refactor hook announcement formatting for unnamed hooks

Maximilian Roos7f3578583907
diff --git a/src/commands/hooks.rs b/src/commands/hooks.rs
index 7be21bfce..736abcd95 100644
--- a/src/commands/hooks.rs
+++ b/src/commands/hooks.rs
@@ -27,14 +27,18 @@ impl SourcedCommand {
/// Format: "Running pre-merge user:foo:" for named, "Running post-create user hook:" for unnamed
/// When display_path is set, appends "@ path" to show where the command runs.
fn announce(&self) -> anyhow::Result<()> {
- // Named: "user:foo" matches filter syntax
- // Unnamed: "user hook" is clearer than just "user:"
- let display_name = match &self.prepared.name {
- Some(n) => format!("{}:{}", self.source, n),
- None => format!("{} hook", self.source),
+ // Named: "Running post-switch user:foo" with "user:foo" bold
+ // Unnamed: "Running post-switch user hook" with no bold
+ let full_label = match &self.prepared.name {
+ Some(n) => {
+ let display_name = format!("{}:{}", self.source, n);
+ crate::commands::format_command_label(
+ &self.hook_type.to_string(),
+ Some(&display_name),
+ )
+ }
+ None => format!("Running {} {} hook", self.hook_type, self.source),
};
- let full_label =
- crate::commands::format_command_label(&self.hook_type.to_string(), Some(&display_name));
let message = match &self.display_path {
Some(path) => {
let path_display = format_path_for_display(path);
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 e68bab69c..4b2f17eb8 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
@@ -9,7 +9,7 @@ y
○ post-create:
  echo 'test command'
❯ Allow and remember? [y/N]
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'test command'
test command
✓ Created new worktree for test-approve from main @ _REPO_/repo.test-approve
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 3299ee587..fc5557c75 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
@@ -11,7 +11,7 @@ y
❯ Allow and remember? [y/N]
▲ Failed to save command approval: Failed to write config file: Permission denied (os error 13)
↳ Approval will be requested again next time.
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'test command'
test command
✓ Created new worktree for test-permission from main @ _REPO_/repo.test-permission
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 5547244ca..d29277f74 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
@@ -3,5 +3,5 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
✓ Created new worktree for fish-bg from main @ [TMPDIR]/repo.fish-bg
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  echo 'fish background task'
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 cd8cfd019..fb7715456 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
@@ -3,5 +3,5 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
✓ Created new worktree for feature-with-hooks from main @ [TMPDIR]/repo.feature-with-hooks
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  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 07e3a8b2d..d1306760a 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
@@ -3,5 +3,5 @@ source: tests/integration_tests/shell_wrapper.rs
expression: output.normalized()
---
✓ Created new worktree for feature-bg from main @ [TMPDIR]/repo.feature-bg
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  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 962520e4a..7e11e7bde 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
@@ -31,7 +31,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'approved' > output.txt
✓ Created new worktree for test-approved from main @ _REPO_.test-approved
↳ Run wt config shell install to enable automatic cd
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__yes_bypasses_tty_check.snap b/tests/snapshots/integration__integration_tests__approval_ui__yes_bypasses_tty_check.snap
index f2e9101b7..5b0658080 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__yes_bypasses_tty_check.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__yes_bypasses_tty_check.snap
@@ -32,7 +32,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'test command'
test command
✓ Created new worktree for test-yes-tty from main @ _REPO_.test-yes-tty
diff --git a/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_first_run.snap b/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_first_run.snap
index fca85358e..dd85dd529 100644
--- a/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_first_run.snap
+++ b/tests/snapshots/integration__integration_tests__approval_ui__yes_does_not_save_approvals_first_run.snap
@@ -32,7 +32,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'test command' > output.txt
✓ Created new worktree for test-yes from main @ _REPO_.test-yes
↳ Run wt config shell install to enable automatic cd
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 4bbd35660..61e001c1f 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
@@ -38,7 +38,7 @@ exit_code: 1
✓ Merged to main (1 commit, 1 file, +1)
◎ Removing feature worktree & branch in background (same commit as main, _)
○ Switched to worktree for main @ _REPO_
-◎ Running post-merge project hook:
+◎ Running post-merge project hook:
  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_success.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_command_success.snap
index 90defff7c..a8f6470ad 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
@@ -38,5 +38,5 @@ exit_code: 0
✓ Merged to main (1 commit, 1 file, +1)
◎ Removing feature worktree & branch in background (same commit as main, _)
○ Switched to worktree for main @ _REPO_
-◎ Running post-merge project hook:
+◎ Running post-merge project hook:
  echo 'merged feature to main' > post-merge-ran.txt
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_runs_from_main_branch.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_runs_from_main_branch.snap
index 1d18fdee3..2f02bc815 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_runs_from_main_branch.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_runs_from_main_branch.snap
@@ -32,5 +32,5 @@ exit_code: 0
----- stderr -----
○ Already up to date with main (no new commits, no rebase needed)
○ Worktree preserved (main worktree)
-◎ Running post-merge project hook:
+◎ Running post-merge project hook:
  echo 'post-merge ran from main' > post-merge-ran.txt
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_runs_with_nothing_to_merge.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_runs_with_nothing_to_merge.snap
index ac7dd7c43..8545548e1 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_runs_with_nothing_to_merge.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_runs_with_nothing_to_merge.snap
@@ -34,5 +34,5 @@ exit_code: 0
○ Already up to date with main (no new commits, no rebase needed)
◎ Removing feature worktree & branch in background (same commit as main, _)
○ Switched to worktree for main @ _REPO_
-◎ Running post-merge project hook:
+◎ Running post-merge project hook:
  echo 'post-merge ran' > post-merge-ran.txt
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 0ba34f6f2..8c0f4b19a 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
@@ -33,7 +33,7 @@ exit_code: 1
----- stderr -----
▲ Auto-staging 1 untracked path:
  feature.txt
-◎ Running pre-commit project hook:
+◎ Running pre-commit project hook:
  exit 1
✗ pre-commit command failed: exit status: 1
↳ To skip pre-commit hooks, re-run with --no-verify
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 ccd911bcd..62e9daf12 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
@@ -33,7 +33,7 @@ exit_code: 0
----- stderr -----
▲ Auto-staging 1 untracked path:
  feature.txt
-◎ Running pre-commit project hook:
+◎ Running pre-commit project hook:
  echo 'Pre-commit check passed'
Pre-commit check passed
◎ Committing changes with default message... (1 file, +1, no squashing needed)
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 24f10adb9..8cc548409 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
@@ -31,7 +31,7 @@ exit_code: 1
----- stdout -----
----- stderr -----
-◎ Running pre-merge project hook:
+◎ Running pre-merge project hook:
  exit 1
✗ pre-merge command failed: exit status: 1
↳ To skip pre-merge hooks, re-run with --no-verify
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 90ef8e3ee..08afbbf80 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
@@ -31,7 +31,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running pre-merge project hook:
+◎ Running pre-merge project hook:
  exit 0
◎ Merging 1 commit to main @ 4f5863f (no commit/squash/rebase needed)
  * 4f5863f Add feature file
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 6242c8946..f7b938891 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
@@ -31,7 +31,7 @@ exit_code: 1
----- stdout -----
----- stderr -----
-◎ Running pre-commit project hook:
+◎ Running pre-commit project hook:
  exit 1
✗ pre-commit command failed: exit status: 1
↳ To skip pre-commit hooks, re-run with --no-verify
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 9a70fac65..0bdebe12f 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
@@ -31,7 +31,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running pre-commit project hook:
+◎ Running pre-commit project hook:
  echo 'Pre-commit check passed'
Pre-commit check passed
◎ Merging 1 commit to main @ ef627f5 (no commit/squash/rebase needed)
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 56c0e7c31..25d0354a7 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
@@ -31,7 +31,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'Setup done' > setup.txt
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd
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 457ac8637..0957e1448 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
@@ -34,7 +34,7 @@ exit_code: 0
----- stderr -----
✓ Created new worktree for feature from main @ _REPO_.feature
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  echo 'Background task' > background.txt
◎ Executing (--execute):
  echo 'Execute flag' > execute.txt
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_default_branch_template.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_default_branch_template.snap
index 238efdc76..ae8834aa9 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_default_branch_template.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_default_branch_template.snap
@@ -32,7 +32,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'Default: main' > default.txt
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd
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 a2fa63321..acd811c19 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
@@ -31,7 +31,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  exit 1
▲ Command failed: exit status: 1
✓ Created new worktree for feature from main @ _REPO_.feature
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 8f0346b33..a8c4ba6d6 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
@@ -31,7 +31,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  if [ ! -f test.txt ]; then
   echo 'File does not exist' > result.txt
  else
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 7c828abb9..35b8d2fa5 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
@@ -31,7 +31,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'Setup complete'
Setup complete
✓ Created new worktree for feature from main @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_template.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_template.snap
index e8e327d61..ac9f0380a 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_template.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_upstream_template.snap
@@ -32,7 +32,7 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'Upstream: ' > upstream.txt
✓ Created new worktree for feature from main @ _REPO_.feature
↳ 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 ea0fb995a..723814aa3 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
@@ -33,7 +33,7 @@ exit_code: 0
----- stderr -----
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  echo 'line1
  line2
  line3' | grep line2 > filtered.txt
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 9a1f1a891..7b684e895 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
@@ -33,5 +33,5 @@ exit_code: 0
----- stderr -----
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  echo 'POST-START-RAN' > post_start_marker.txt
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap
index 82449aec7..c793220a5 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
@@ -33,5 +33,5 @@ exit_code: 0
----- stderr -----
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  echo 'unclosed quote
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap
index e60c54ee6..dec6e186f 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
@@ -33,5 +33,5 @@ exit_code: 0
----- stderr -----
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  echo 'stdout output' && echo 'stderr output' >&2
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiline_with_newlines.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiline_with_newlines.snap
index a58304a71..3c1cfb472 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
@@ -33,7 +33,7 @@ exit_code: 0
----- stderr -----
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  echo 'first line' > multiline.txt
  echo 'second line' >> multiline.txt
  echo 'third line' >> multiline.txt
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 bef471213..995f439b7 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
@@ -33,5 +33,5 @@ exit_code: 0
----- stderr -----
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  sleep 0.1 && echo 'Background task done' > background.txt
diff --git a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_executes.snap b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_executes.snap
index 233729475..555e3a4c4 100644
--- a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_executes.snap
+++ b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_executes.snap
@@ -32,7 +32,7 @@ exit_code: 0
----- stderr -----
◎ Removing feature-hook worktree...
-◎ Running pre-remove project hook:
+◎ Running pre-remove project hook:
  echo 'About to remove worktree'
About to remove worktree
✓ Removed feature-hook worktree & branch (same commit as main, _)
diff --git a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_failure_aborts.snap b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_failure_aborts.snap
index 4fa6c676d..feeba9cd4 100644
--- a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_failure_aborts.snap
+++ b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_failure_aborts.snap
@@ -32,7 +32,7 @@ exit_code: 1
----- stderr -----
◎ Removing feature-fail worktree...
-◎ Running pre-remove project hook:
+◎ Running pre-remove project hook:
  exit 1
✗ pre-remove command failed: exit status: 1
↳ To skip pre-remove hooks, re-run with --no-verify
diff --git a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_runs_for_detached_head.snap b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_runs_for_detached_head.snap
index ddb9f2736..5358146fa 100644
--- a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_runs_for_detached_head.snap
+++ b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_runs_for_detached_head.snap
@@ -31,6 +31,6 @@ exit_code: 0
----- stderr -----
◎ Removing current worktree...
-◎ Running pre-remove project hook:
+◎ Running pre-remove project hook:
  touch _REPO_/m.txt
✓ Removed worktree (detached HEAD, no branch to delete)
diff --git a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_runs_for_detached_head_background.snap b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_runs_for_detached_head_background.snap
index 286a58465..7dabd82d4 100644
--- a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_runs_for_detached_head_background.snap
+++ b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_runs_for_detached_head_background.snap
@@ -29,6 +29,6 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running pre-remove project hook:
+◎ Running pre-remove project hook:
  touch _REPO_/detached-bg-hook-marker.txt
◎ Removing worktree in background (detached HEAD, no branch to delete)
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_and_project_post_start.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_and_project_post_start.snap
index 95009da5a..ef167b9a6 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_and_project_post_start.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_and_project_post_start.snap
@@ -35,5 +35,5 @@ exit_code: 0
↳ Run wt config shell install to enable automatic cd
◎ Running post-start user:bg:
  echo 'USER_POST_START' > user_bg.txt
-◎ Running post-start project hook:
+◎ Running post-start project hook:
  echo 'PROJECT_POST_START' > project_bg.txt
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_before_project.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_before_project.snap
index 36a4d9ca4..c866c583c 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_before_project.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_hooks_before_project.snap
@@ -33,7 +33,7 @@ exit_code: 0
----- stderr -----
◎ Running post-create user:log:
  echo 'USER_HOOK' >> hook_order.txt
-◎ Running post-create project hook:
+◎ Running post-create project hook:
  echo 'PROJECT_HOOK' >> hook_order.txt
✓ Created new worktree for feature from main @ _REPO_.feature
↳ Run wt config shell install to enable automatic cd