Skip to content

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

fix(config): drop redundant "To configure" hint for outdated shell wrappers (#2152)

Maximilian Roosb5db68e3afd0
diff --git a/src/commands/config/show.rs b/src/commands/config/show.rs
index b10506684..33220ab13 100644
--- a/src/commands/config/show.rs
+++ b/src/commands/config/show.rs
@@ -912,8 +912,10 @@ fn render_shell_status(out: &mut String) -> anyhow::Result<()> {
} else if shell.is_wrapper_based()
&& matches!(result.action, ConfigAction::WouldAdd)
{
- // File exists but has different content (e.g. outdated version)
- any_not_configured = true;
+ // File exists but has different content (e.g. outdated version).
+ // The per-shell "To update" hint below covers this case, so we
+ // don't flip `any_not_configured` — the generic "To configure"
+ // summary would be misleading when the integration is installed.
let warning = warning_message(cformat!(
"<bold>{shell}</>: Outdated shell extension @ {path}"
));
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_fish_outdated_wrapper.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_fish_outdated_wrapper.snap
index 6e48a4350..1e5dd37af 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_fish_outdated_wrapper.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_fish_outdated_wrapper.snap
@@ -59,7 +59,6 @@ exit_code: 0
○ bash: Skipped; ~/.bashrc not found
○ zsh: Skipped; ~/.zshrc not found
○ nu: Skipped; ~/.config/nushell/vendor/autoload not found
-↳ To configure, run wt config shell install
OTHER
○ wt: [VERSION]
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_nushell_outdated_wrapper.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_nushell_outdated_wrapper.snap
index e90b54ee7..eb17371b2 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_nushell_outdated_wrapper.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_nushell_outdated_wrapper.snap
@@ -59,7 +59,6 @@ exit_code: 0
○ bash: Skipped; ~/.bashrc not found
○ zsh: Skipped; ~/.zshrc not found
○ fish: Skipped; ~/.config/fish/functions not found
-↳ To configure, run wt config shell install
OTHER
○ wt: [VERSION]