Skip to content

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

Fix: Correct batch approval prompt spacing

Maximilian Roos21d5efc581fa
diff --git a/src/commands/command_approval.rs b/src/commands/command_approval.rs
index 8171d4c87..18c3bbac8 100644
--- a/src/commands/command_approval.rs
+++ b/src/commands/command_approval.rs
@@ -102,7 +102,7 @@ fn prompt_for_batch_approval(commands: &[&Command], project_id: &str) -> std::io
eprintln!();
eprintln!(
- "{WARNING_EMOJI} {WARNING}{WARNING_BOLD}{project_name}{WARNING_BOLD:#} wants to execute {WARNING_BOLD}{count}{WARNING_BOLD:#} command{plural}:{WARNING:#}"
+ "{WARNING_EMOJI} {WARNING}{WARNING_BOLD}{project_name}{WARNING_BOLD:#}{WARNING} wants to execute {WARNING_BOLD}{count}{WARNING_BOLD:#}{WARNING} command{plural}:{WARNING:#}"
);
eprintln!();
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 aada00cb8..cf0326374 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
@@ -11,7 +11,7 @@ exit_code: 0
----- stderr -----
-🟑 test-repo wants to execute 2 commands:
+🟑 test-repo wants to execute 2 commands:
πŸ”„ post-create:
  echo 'First 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 8b531c4f3..309fa4e5e 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
@@ -11,7 +11,7 @@ exit_code: 0
----- stderr -----
-🟑 test-repo wants to execute 4 commands:
+🟑 test-repo wants to execute 4 commands:
πŸ”„ post-create:
  echo 'Branch: test-nested-branch'
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 634b3f749..fd86d0cc3 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
@@ -11,7 +11,7 @@ exit_code: 0
----- stderr -----
-🟑 test-repo wants to execute 3 commands:
+🟑 test-repo wants to execute 3 commands:
πŸ”„ post-create install:
  echo 'Installing dependencies...'
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 e86bfc303..ac3446f27 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
@@ -11,7 +11,7 @@ exit_code: 0
----- stderr -----
-🟑 test-repo wants to execute 1 command:
+🟑 test-repo wants to execute 1 command:
πŸ”„ post-create:
  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 6d1d3410d..27796facd 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
@@ -11,7 +11,7 @@ exit_code: 0
----- stderr -----
-🟑 test-repo wants to execute 2 commands:
+🟑 test-repo wants to execute 2 commands:
πŸ”„ post-create:
  echo 'First command'
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 8b30188fe..547b2550b 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
@@ -11,7 +11,7 @@ exit_code: 0
----- stderr -----
-🟑 test-repo wants to execute 1 command:
+🟑 test-repo wants to execute 1 command:
πŸ”„ post-create:
  echo 'test command' > output.txt