Skip to content

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

fix: improve hook pipeline summary display (#1994)

Maximilian Roos1408c59ecccc
diff --git a/src/commands/hooks.rs b/src/commands/hooks.rs
index 6c881e48b..00ffacd84 100644
--- a/src/commands/hooks.rs
+++ b/src/commands/hooks.rs
@@ -169,37 +169,57 @@ pub struct SourcedStep {
/// Format a summary description of a pipeline for display.
///
-/// Shows step names/counts with `→` separating serial steps.
-/// Named steps show their name; unnamed steps show their source (`user`/`project`).
-/// Example: "install → build, lint"
+/// Named steps show as `source:name`; unnamed steps are collapsed into a single
+/// `source ×N` count. Serial steps are separated by `;`, concurrent steps by `,`.
+/// Example: "user:install; user:build, user:lint"
///
-/// TODO: Rethink hook display presentation. Current issues:
-/// - Arrows (`→`) add visual noise and aren't obviously meaningful to users
-/// - Multiple unnamed steps from the same source repeat the label (`user → user`)
-/// - Source prefix was dropped for named steps (`user:bg` → `bg`) — less
-/// informative when both user and project hooks are present
+/// TODO: The `source:` prefix on named steps may be too verbose when only one
+/// source is present (e.g., `user:bg` vs just `bg`). Consider prefixing only
+/// when both user and project hooks exist for the same hook type.
fn format_pipeline_summary(steps: &[SourcedStep]) -> String {
- let mut parts = Vec::new();
+ // All steps in a group share the same source.
+ let source_label = steps[0].source.to_string();
+
+ // Collect named labels per step (None = unnamed).
+ let mut parts: Vec<String> = Vec::new();
+ let mut unnamed_count: usize = 0;
+
for step in steps {
- let source_label = step.source.to_string();
- match &step.step {
- PreparedStep::Single(cmd) => {
- let label = cmd.name.as_deref().unwrap_or(&source_label);
- parts.push(cformat!("<bold>{}</>", label));
- }
- PreparedStep::Concurrent(cmds) => {
- let names: Vec<String> = cmds
- .iter()
- .map(|c| {
- let label = c.name.as_deref().unwrap_or(&source_label);
- cformat!("<bold>{}</>", label)
- })
- .collect();
- parts.push(names.join(", "));
+ let step_names: Vec<Option<&str>> = match &step.step {
+ PreparedStep::Single(cmd) => vec![cmd.name.as_deref()],
+ PreparedStep::Concurrent(cmds) => cmds.iter().map(|c| c.name.as_deref()).collect(),
+ };
+
+ let named: Vec<_> = step_names
+ .iter()
+ .filter_map(|n| n.map(|name| cformat!("<bold>{source_label}:{name}</>")))
+ .collect();
+ unnamed_count += step_names.iter().filter(|n| n.is_none()).count();
+
+ if !named.is_empty() {
+ // Flush any pending unnamed count before named labels.
+ if unnamed_count > 0 {
+ parts.push(format_unnamed(&source_label, unnamed_count));
+ unnamed_count = 0;
}
+ parts.push(named.join(", "));
}
}
- parts.join(" → ")
+
+ // Flush trailing unnamed count.
+ if unnamed_count > 0 {
+ parts.push(format_unnamed(&source_label, unnamed_count));
+ }
+
+ parts.join("; ")
+}
+
+fn format_unnamed(source_label: &str, count: usize) -> String {
+ if count == 1 {
+ cformat!("<bold>{source_label}</>")
+ } else {
+ cformat!("<bold>{source_label}</> ×{count}")
+ }
}
/// Announce and spawn background hooks for one or more hook types.
@@ -617,6 +637,8 @@ fn expand_lazy_template(
#[cfg(test)]
mod tests {
use super::*;
+ use ansi_str::AnsiStr;
+ use insta::assert_snapshot;
#[test]
fn test_hook_source_display() {
@@ -703,11 +725,7 @@ mod tests {
])),
];
let summary = format_pipeline_summary(&steps);
- // Contains arrow and names (stripped of ANSI for assertion)
- assert!(summary.contains("→"));
- assert!(summary.contains("install"));
- assert!(summary.contains("build"));
- assert!(summary.contains("lint"));
+ assert_snapshot!(summary.ansi_strip(), @"user:install; user:build, user:lint");
}
#[test]
@@ -717,9 +735,48 @@ mod tests {
make_sourced_step(PreparedStep::Single(make_cmd(None, "npm run build"))),
];
let summary = format_pipeline_summary(&steps);
- // Unnamed steps show source name ("user" from make_sourced_step)
- assert!(summary.contains("user"));
- assert!(summary.contains("→"));
+ assert_snapshot!(summary.ansi_strip(), @"user ×2");
+ }
+
+ #[test]
+ fn test_format_pipeline_summary_mixed_named_unnamed() {
+ let steps = vec![
+ make_sourced_step(PreparedStep::Single(make_cmd(None, "npm install"))),
+ make_sourced_step(PreparedStep::Single(make_cmd(Some("bg"), "npm run dev"))),
+ ];
+ let summary = format_pipeline_summary(&steps);
+ assert_snapshot!(summary.ansi_strip(), @"user; user:bg");
+ }
+
+ #[test]
+ fn test_format_pipeline_summary_single_unnamed() {
+ let steps = vec![make_sourced_step(PreparedStep::Single(make_cmd(
+ None,
+ "npm install",
+ )))];
+ let summary = format_pipeline_summary(&steps);
+ assert_snapshot!(summary.ansi_strip(), @"user");
+ }
+
+ #[test]
+ fn test_format_pipeline_summary_concurrent_then_concurrent() {
+ // The canonical pipeline: two concurrent groups in sequence.
+ // post-start = [
+ // { install = "npm install", setup = "setup-db" },
+ // { build = "npm run build", lint = "npm run lint" },
+ // ]
+ let steps = vec![
+ make_sourced_step(PreparedStep::Concurrent(vec![
+ make_cmd(Some("install"), "npm install"),
+ make_cmd(Some("setup"), "setup-db"),
+ ])),
+ make_sourced_step(PreparedStep::Concurrent(vec![
+ make_cmd(Some("build"), "npm run build"),
+ make_cmd(Some("lint"), "npm run lint"),
+ ])),
+ ];
+ let summary = format_pipeline_summary(&steps);
+ assert_snapshot!(summary.ansi_strip(), @"user:install, user:setup; user:build, user:lint");
}
#[test]
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 94f55b884..353f96618 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
@@ -53,4 +53,4 @@ exit_code: 0
◎ Removing feature worktree & branch in background (same commit as main, _)
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-merge: notify, deploy @ _REPO_
+◎ Running post-merge: project:notify, project:deploy @ _REPO_
diff --git a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_pipeline_serial_ordering.snap b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_pipeline_serial_ordering.snap
index 9317ddcef..223b6e041 100644
--- a/tests/snapshots/integration__integration_tests__merge__merge_post_merge_pipeline_serial_ordering.snap
+++ b/tests/snapshots/integration__integration_tests__merge__merge_post_merge_pipeline_serial_ordering.snap
@@ -53,4 +53,4 @@ exit_code: 0
◎ Removing feature worktree & branch in background (same commit as main, _)
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-merge: project → project @ _REPO_
+◎ Running post-merge: project ×2 @ _REPO_
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 0f31bf17a..2d33e2f17 100644
--- a/tests/snapshots/integration__integration_tests__merge__readme_example_complex.snap
+++ b/tests/snapshots/integration__integration_tests__merge__readme_example_complex.snap
@@ -83,4 +83,4 @@ test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; fin
◎ Removing feature-auth worktree & branch in background (same commit as main, _)
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-merge: install @ _REPO_
+◎ Running post-merge: project:install @ _REPO_
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 c7e3c14c6..a57ee1b3a 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
@@ -52,4 +52,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: server @ _REPO_.feature
+◎ Running post-start: project:server @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_mixed_user_pipeline_project_flat.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_mixed_user_pipeline_project_flat.snap
index 7087b6e91..d0106784e 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_mixed_user_pipeline_project_flat.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_mixed_user_pipeline_project_flat.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: user → user_bg, proj @ _REPO_.feature
+◎ Running post-start: user; user:user_bg, project:proj @ _REPO_.feature
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 b730b7e1a..22a0c03d6 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
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: task1, task2 @ _REPO_.feature
+◎ Running post-start: project:task1, project:task2 @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_pipeline_template_vars.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_pipeline_template_vars.snap
index 37ec8c478..08efd6838 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_pipeline_template_vars.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_pipeline_template_vars.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: project → check @ _REPO_.feature
+◎ Running post-start: project; project:check @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_project_pipeline.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_project_pipeline.snap
index 7cfe29211..ad1454599 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_project_pipeline.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_project_pipeline.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: project → task1, task2 @ _REPO_.feature
+◎ Running post-start: project; project:task1, project:task2 @ _REPO_.feature
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 cfb52bc23..976a9bb78 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
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: task1, task2, task3 @ _REPO_.feature
+◎ Running post-start: project:task1, project:task2, project:task3 @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_output.snap b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_output.snap
index 37ba589bf..1b85130ae 100644
--- a/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_output.snap
+++ b/tests/snapshots/integration__integration_tests__post_start_commands__post_start_verbose_output.snap
@@ -58,4 +58,4 @@ exit_code: 0
  echo 'verbose test' > verbose.txt
  →
  echo 'verbose test' > verbose.txt
-◎ Running post-start: setup @ _REPO_.feature
+◎ Running post-start: project:setup @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_hooks_pre_start.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_hooks_pre_start.snap
index 196a71415..61d8e4fa8 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_hooks_pre_start.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__readme_example_hooks_pre_start.snap
@@ -10,4 +10,4 @@ expression: "&output.combined"
Installed 24 packages in 1.2s
✓ Created branch feature-x from main and worktree @ _REPO_.feature-x
↳ To customize worktree locations, run wt config create
-◎ Running post-start: dev
+◎ Running post-start: project:dev
diff --git a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__switch_with_hooks_zsh.snap b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__switch_with_hooks_zsh.snap
index 4e40b132a..3c5c142fc 100644
--- a/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__switch_with_hooks_zsh.snap
+++ b/tests/snapshots/integration__integration_tests__shell_wrapper__unix_tests__switch_with_hooks_zsh.snap
@@ -11,4 +11,4 @@ Installing dependencies...
Building project...
✓ Created branch feature-hooks from main and worktree @ _REPO_.feature-hooks
↳ To customize worktree locations, run wt config create
-◎ Running post-start: server, watch
+◎ Running post-start: project:server, project:watch
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__combined_post_remove_and_post_switch.snap b/tests/snapshots/integration__integration_tests__user_hooks__combined_post_remove_and_post_switch.snap
index 16f7c14c7..9d27593b0 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__combined_post_remove_and_post_switch.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__combined_post_remove_and_post_switch.snap
@@ -48,4 +48,4 @@ exit_code: 0
◎ Removing feature worktree & branch in background (--force-delete)
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-remove: cleanup; post-switch: notify @ _REPO_
+◎ Running post-remove: user:cleanup; post-switch: user:notify @ _REPO_
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__post_remove_runs_at_primary.snap b/tests/snapshots/integration__integration_tests__user_hooks__post_remove_runs_at_primary.snap
index 5ef34f6dc..88368fa60 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__post_remove_runs_at_primary.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__post_remove_runs_at_primary.snap
@@ -46,4 +46,4 @@ exit_code: 0
----- stderr -----
◎ Removing feature worktree & branch in background (--force-delete)
-◎ Running post-remove: cleanup @ _REPO_
+◎ Running post-remove: user:cleanup @ _REPO_
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__standalone_hook_name_filtered_lazy_template.snap b/tests/snapshots/integration__integration_tests__user_hooks__standalone_hook_name_filtered_lazy_template.snap
index 6150da142..46dccbfaf 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__standalone_hook_name_filtered_lazy_template.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__standalone_hook_name_filtered_lazy_template.snap
@@ -45,4 +45,4 @@ exit_code: 0
----- stdout -----
----- stderr -----
-◎ Running post-start: db
+◎ Running post-start: user:db
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 e2d57d04c..1ff903a71 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
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: bg, project @ _REPO_.feature
+◎ Running post-start: user:bg, project @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_commit_executes.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_commit_executes.snap
index f11cf3113..4db1aafd9 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_commit_executes.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_commit_executes.snap
@@ -50,4 +50,4 @@ exit_code: 0
◎ Generating commit message and committing changes... (1 file, +1)
  feat: test commit
✓ Committed changes @ [HASH]
-◎ Running post-commit: notify
+◎ Running post-commit: user:notify
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_commit_failure.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_commit_failure.snap
index 7a01dbb0b..9b3826deb 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_commit_failure.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_commit_failure.snap
@@ -50,4 +50,4 @@ exit_code: 0
◎ Generating commit message and committing changes... (1 file, +1)
  feat: test commit
✓ Committed changes @ [HASH]
-◎ Running post-commit: failing
+◎ Running post-commit: user:failing
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_merge_executes.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_merge_executes.snap
index eb1ad2e54..c154b86f9 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_merge_executes.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_merge_executes.snap
@@ -52,4 +52,4 @@ exit_code: 0
  1 file changed, 1 insertion(+)
✓ Merged to main (1 commit, 1 file, +1)
○ Worktree preserved (--no-remove)
-◎ Running post-merge: notify @ _REPO_
+◎ Running post-merge: user:notify @ _REPO_
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_executes.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_executes.snap
index 993d71cdc..b255ffb2c 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_executes.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_executes.snap
@@ -46,4 +46,4 @@ exit_code: 0
----- stderr -----
◎ Removing feature worktree & branch in background (--force-delete)
-◎ Running post-remove: cleanup
+◎ Running post-remove: user:cleanup
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_pipeline_ordering.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_pipeline_ordering.snap
index c1586f3f9..688ee8b62 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_pipeline_ordering.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_remove_pipeline_ordering.snap
@@ -46,4 +46,4 @@ exit_code: 0
----- stderr -----
◎ Removing feature worktree & branch in background (--force-delete)
-◎ Running post-remove: user → user
+◎ Running post-remove: user ×2
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_executes.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_executes.snap
index 39f2f66a0..e682574bf 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_executes.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_executes.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: bg @ _REPO_.feature
+◎ Running post-start: user:bg @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_concurrent_all.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_concurrent_all.snap
index 5571d5a41..b6af9045e 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_concurrent_all.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_concurrent_all.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: a, b @ _REPO_.feature
+◎ Running post-start: user:a, user:b @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_concurrent_failure.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_concurrent_failure.snap
index 5fcf7ec54..ac1479c2d 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_concurrent_failure.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_concurrent_failure.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: fail, ok → user @ _REPO_.feature
+◎ Running post-start: user:fail, user:ok; user @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_failure.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_failure.snap
index 1d9ce99f8..5a7b150b6 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_failure.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_failure.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: user → bg @ _REPO_.feature
+◎ Running post-start: user; user:bg @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_hook_name_per_step.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_hook_name_per_step.snap
index 049094810..6d5a7b681 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_hook_name_per_step.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_hook_name_per_step.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: step_one → step_two @ _REPO_.feature
+◎ Running post-start: user:step_one; user:step_two @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_lazy_vars_bg.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_lazy_vars_bg.snap
index adce18655..270646637 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_lazy_vars_bg.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_lazy_vars_bg.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: user → db @ _REPO_.feature
+◎ Running post-start: user; user:db @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_ordering.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_ordering.snap
index 1d9ce99f8..5a7b150b6 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_ordering.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_start_pipeline_ordering.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-start: user → bg @ _REPO_.feature
+◎ Running post-start: user; user:bg @ _REPO_.feature
diff --git a/tests/snapshots/integration__integration_tests__user_hooks__user_post_switch_pipeline_via_create.snap b/tests/snapshots/integration__integration_tests__user_hooks__user_post_switch_pipeline_via_create.snap
index 6d3b7a47d..b18fb48ae 100644
--- a/tests/snapshots/integration__integration_tests__user_hooks__user_post_switch_pipeline_via_create.snap
+++ b/tests/snapshots/integration__integration_tests__user_hooks__user_post_switch_pipeline_via_create.snap
@@ -49,4 +49,4 @@ exit_code: 0
↳ To customize worktree locations, run wt config create
▲ Cannot change directory — shell integration not installed
↳ To enable automatic cd, run wt config shell install
-◎ Running post-switch: user → check @ _REPO_.feature
+◎ Running post-switch: user; user:check @ _REPO_.feature