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.rsindex 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.snapindex 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[2m○[22m [2mbash: Skipped; ~/.bashrc not found[22m[2m○[22m [2mzsh: Skipped; ~/.zshrc not found[22m[2m○[22m [2mnu: Skipped; ~/.config/nushell/vendor/autoload not found[22m-[2m↳[22m [2mTo configure, run [4mwt config shell install[24m[22m[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22mdiff --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.snapindex 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[2m○[22m [2mbash: Skipped; ~/.bashrc not found[22m[2m○[22m [2mzsh: Skipped; ~/.zshrc not found[22m[2m○[22m [2mfish: Skipped; ~/.config/fish/functions not found[22m-[2m↳[22m [2mTo configure, run [4mwt config shell install[24m[22m[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m