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.rsindex 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.snapindex 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[2m○[22m post-create:[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0m[36m❯[39m Allow and remember? [1m[y/N][22m-[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0m[0mtest command[32m✓[39m [32mCreated new worktree for [1mtest-approve[22m from [1mmain[22m @ [1m_REPO_/repo.test-approve[22m[39mdiff --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.snapindex 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[36m❯[39m Allow and remember? [1m[y/N][22m[33m▲[39m [33mFailed to save command approval: Failed to write config file: Permission denied (os error 13)[39m[2m↳[22m [2mApproval will be requested again next time.[22m-[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0m[0mtest command[32m✓[39m [32mCreated new worktree for [1mtest-permission[22m from [1mmain[22m @ [1m_REPO_/repo.test-permission[22m[39mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_preserves_progress_messages.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__fish_wrapper_preserves_progress_messages.snapindex 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.rsexpression: output.normalized()---[32m✓[39m [32mCreated new worktree for [1mfish-bg[22m from [1mmain[22m @ [1m[TMPDIR]/repo.fish-bg[22m[39m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'fish background task'[0m[2m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_post_start_command_no_directive_leak.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__switch_with_post_start_command_no_directive_leak.snapindex 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.rsexpression: output.normalized()---[32m✓[39m [32mCreated new worktree for [1mfeature-with-hooks[22m from [1mmain[22m @ [1m[TMPDIR]/repo.feature-with-hooks[22m[39m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command executed'[0m[2m[0mdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__wrapper_preserves_progress_messages.snap b/tests/integration_tests/snapshots/integration__integration_tests__shell_wrapper__tests__wrapper_preserves_progress_messages.snapindex 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.rsexpression: output.normalized()---[32m✓[39m [32mCreated new worktree for [1mfeature-bg[22m from [1mmain[22m @ [1m[TMPDIR]/repo.feature-bg[22m[39m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'background task'[0m[2m[0mdiff --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.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'approved'[0m[2m [0m[2m[36m>[0m[2m output.txt[0m[32m✓[39m [32mCreated new worktree for [1mtest-approved[22m from [1mmain[22m @ [1m_REPO_.test-approved[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22mdiff --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.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m[0mtest command[32m✓[39m [32mCreated new worktree for [1mtest-yes-tty[22m from [1mmain[22m @ [1m_REPO_.test-yes-tty[22m[39mdiff --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.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'test command'[0m[2m [0m[2m[36m>[0m[2m output.txt[0m[32m✓[39m [32mCreated new worktree for [1mtest-yes[22m from [1mmain[22m @ [1m_REPO_.test-yes[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22mdiff --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.snapindex 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[32m✓[39m [32mMerged to [1mmain[22m [90m(1 commit, 1 file, [32m+1[39m[39m[90m)[39m[39m[36m◎ Removing [1mfeature[22m worktree & branch in background (same commit as [1mmain[22m,[39m [2m_[22m[36m)[39m[2m○[22m Switched to worktree for [1mmain[22m @ [1m_REPO_[22m-[36m◎[39m [36mRunning post-merge [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-merge project hook:[39m[107m [0m [2m[0m[2m[34mexit[0m[2m 1[0m[33m▲[39m [33mCommand failed: exit status: 1[39m[31m✗[39m [31mpost-merge command failed: exit status: 1[39mdiff --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.snapindex 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[32m✓[39m [32mMerged to [1mmain[22m [90m(1 commit, 1 file, [32m+1[39m[39m[90m)[39m[39m[36m◎ Removing [1mfeature[22m worktree & branch in background (same commit as [1mmain[22m,[39m [2m_[22m[36m)[39m[2m○[22m Switched to worktree for [1mmain[22m @ [1m_REPO_[22m-[36m◎[39m [36mRunning post-merge [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-merge project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'merged feature to main'[0m[2m [0m[2m[36m>[0m[2m post-merge-ran.txtdiff --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.snapindex 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 -----[2m○[22m Already up to date with [1mmain[22m (no new commits, no rebase needed)[2m○[22m Worktree preserved (main worktree)-[36m◎[39m [36mRunning post-merge [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-merge project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'post-merge ran from main'[0m[2m [0m[2m[36m>[0m[2m post-merge-ran.txtdiff --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.snapindex 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[2m○[22m Already up to date with [1mmain[22m (no new commits, no rebase needed)[36m◎ Removing [1mfeature[22m worktree & branch in background (same commit as [1mmain[22m,[39m [2m_[22m[36m)[39m[2m○[22m Switched to worktree for [1mmain[22m @ [1m_REPO_[22m-[36m◎[39m [36mRunning post-merge [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-merge project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'post-merge ran'[0m[2m [0m[2m[36m>[0m[2m post-merge-ran.txtdiff --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.snapindex 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 -----[33m▲[39m [33mAuto-staging 1 untracked path:[39m[107m [0m feature.txt-[36m◎[39m [36mRunning pre-commit [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-commit project hook:[39m[107m [0m [2m[0m[2m[34mexit[0m[2m 1[0m[31m✗[39m [31mpre-commit command failed: exit status: 1[39m[2m↳[22m [2mTo skip pre-commit hooks, re-run with [90m--no-verify[39m[22mdiff --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.snapindex 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 -----[33m▲[39m [33mAuto-staging 1 untracked path:[39m[107m [0m feature.txt-[36m◎[39m [36mRunning pre-commit [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-commit project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Pre-commit check passed'[0m[2m[0mPre-commit check passed[36m◎[39m [36mCommitting changes with default message... [90m(1 file, [32m+1[39m, no squashing needed[39m[90m)[39m[39mdiff --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.snapindex 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 ------[36m◎[39m [36mRunning pre-merge [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-merge project hook:[39m[107m [0m [2m[0m[2m[34mexit[0m[2m 1[0m[31m✗[39m [31mpre-merge command failed: exit status: 1[39m[2m↳[22m [2mTo skip pre-merge hooks, re-run with [90m--no-verify[39m[22mdiff --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.snapindex 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 ------[36m◎[39m [36mRunning pre-merge [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-merge project hook:[39m[107m [0m [2m[0m[2m[34mexit[0m[2m 0[0m[36m◎[39m [36mMerging 1 commit to [1mmain[22m @ [2m4f5863f[22m (no commit/squash/rebase needed)[39m[107m [0m * [33m4f5863f[m Add feature filediff --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.snapindex 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 ------[36m◎[39m [36mRunning pre-commit [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-commit project hook:[39m[107m [0m [2m[0m[2m[34mexit[0m[2m 1[0m[31m✗[39m [31mpre-commit command failed: exit status: 1[39m[2m↳[22m [2mTo skip pre-commit hooks, re-run with [90m--no-verify[39m[22mdiff --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.snapindex 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 ------[36m◎[39m [36mRunning pre-commit [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-commit project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Pre-commit check passed'[0m[2m[0mPre-commit check passed[36m◎[39m [36mMerging 1 commit to [1mmain[22m @ [2mef627f5[22m (no commit/squash/rebase needed)[39mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__both_create_and_start.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Setup done'[0m[2m [0m[2m[36m>[0m[2m setup.txt[0m[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snap b/tests/snapshots/integration__integration_tests__post_start_commands__execute_with_post_start.snapindex 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 -----[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Background task'[0m[2m [0m[2m[36m>[0m[2m background.txt[36m◎[39m [36mExecuting (--execute):[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Execute flag'[0m[2m [0m[2m[36m>[0m[2m execute.txtdiff --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.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Default: main'[0m[2m [0m[2m[36m>[0m[2m default.txt[0m[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_failing_command.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mexit[0m[2m 1[0m[33m▲[39m [33mCommand failed: exit status: 1[39m[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_multiline_control_structure.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[35mif[0m[2m [ ! -f test.txt ]; [0m[2m[35mthen[0m[2m[0m[2m[107m [0m [2m [0m[2m[34mecho[0m[2m [0m[2m[32m'File does not exist'[0m[2m [0m[2m[36m>[0m[2m result.txt[107m [0m [2m[0m[2m[34melse[0m[2mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_create_single_command.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Setup complete'[0m[2m[0mSetup complete[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39mdiff --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.snapindex 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 ------[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'Upstream: '[0m[2m [0m[2m[36m>[0m[2m upstream.txt[0m[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22mdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_complex_shell.snapindex 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 -----[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m 'line1[107m [0m [2m[0m[2m[34mline2[0m[2m[107m [0m [2m[0m[2m[34mline3[0m[2m' | grep line2 > filtered.txtdiff --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.snapindex 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 -----[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'POST-START-RAN'[0m[2m [0m[2m[36m>[0m[2m post_start_marker.txtdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_invalid_command.snapindex 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 -----[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m 'unclosed quotediff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_log_captures_output.snapindex 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 -----[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'stdout output'[0m[2m [0m[2m[36m&&[0m[2m [0m[2m[34mecho[0m[2m [0m[2m[32m'stderr output'[0m[2m >&2diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiline_with_newlines.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_multiline_with_newlines.snapindex 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 -----[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'first line'[0m[2m [0m[2m[36m>[0m[2m multiline.txt[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'second line'[0m[2m [0m[2m[36m>>[0m[2m multiline.txt[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'third line'[0m[2m [0m[2m[36m>>[0m[2m multiline.txtdiff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_single_background.snapindex 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 -----[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22m-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34msleep[0m[2m 0.1 [0m[2m[36m&&[0m[2m [0m[2m[34mecho[0m[2m [0m[2m[32m'Background task done'[0m[2m [0m[2m[36m>[0m[2m background.txtdiff --git a/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_executes.snap b/tests/snapshots/integration__integration_tests__remove__pre_remove_hook_executes.snapindex 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 -----[36m◎[39m [36mRemoving [1mfeature-hook[22m worktree...[39m-[36m◎[39m [36mRunning pre-remove [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-remove project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'About to remove worktree'[0m[2m[0mAbout to remove worktree[32m✓ Removed [1mfeature-hook[22m worktree & branch (same commit as [1mmain[22m,[39m [2m_[22m[32m)[39mdiff --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.snapindex 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 -----[36m◎[39m [36mRemoving [1mfeature-fail[22m worktree...[39m-[36m◎[39m [36mRunning pre-remove [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-remove project hook:[39m[107m [0m [2m[0m[2m[34mexit[0m[2m 1[0m[31m✗[39m [31mpre-remove command failed: exit status: 1[39m[2m↳[22m [2mTo skip pre-remove hooks, re-run with [90m--no-verify[39m[22mdiff --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.snapindex 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 -----[36m◎[39m [36mRemoving current worktree...[39m-[36m◎[39m [36mRunning pre-remove [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-remove project hook:[39m[107m [0m [2m[0m[2m[34mtouch[0m[2m _REPO_/m.txt[0m[32m✓[39m [32mRemoved worktree (detached HEAD, no branch to delete)[39mdiff --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.snapindex 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 ------[36m◎[39m [36mRunning pre-remove [1mproject hook[22m:[39m+[36m◎[39m [36mRunning pre-remove project hook:[39m[107m [0m [2m[0m[2m[34mtouch[0m[2m _REPO_/detached-bg-hook-marker.txt[0m[36m◎[39m [36mRemoving worktree in background (detached HEAD, no branch to delete)[39mdiff --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.snapindex 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[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22m[36m◎[39m [36mRunning post-start [1muser:bg[22m:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'USER_POST_START'[0m[2m [0m[2m[36m>[0m[2m user_bg.txt-[36m◎[39m [36mRunning post-start [1mproject hook[22m:[39m+[36m◎[39m [36mRunning post-start project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'PROJECT_POST_START'[0m[2m [0m[2m[36m>[0m[2m project_bg.txtdiff --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.snapindex 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 -----[36m◎[39m [36mRunning post-create [1muser:log[22m:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'USER_HOOK'[0m[2m [0m[2m[36m>>[0m[2m hook_order.txt-[0m[36m◎[39m [36mRunning post-create [1mproject hook[22m:[39m+[0m[36m◎[39m [36mRunning post-create project hook:[39m[107m [0m [2m[0m[2m[34mecho[0m[2m [0m[2m[32m'PROJECT_HOOK'[0m[2m [0m[2m[36m>>[0m[2m hook_order.txt[0m[32m✓[39m [32mCreated new worktree for [1mfeature[22m from [1mmain[22m @ [1m_REPO_.feature[22m[39m[2m↳[22m [2mRun [90mwt config shell install[39m to enable automatic cd[22m