Skip to content

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

Clearer deprecation warnings & consolidated diff output (#2147)

Maximilian Roosa752ba21ea15
diff --git a/src/commands/config/show.rs b/src/commands/config/show.rs
index e7d5c0b2f..b10506684 100644
--- a/src/commands/config/show.rs
+++ b/src/commands/config/show.rs
@@ -521,7 +521,6 @@ fn render_user_config(out: &mut String, has_system_config: bool) -> anyhow::Resu
false, // silent mode - we'll format the output ourselves
) {
if let Some(info) = result.info {
- // Add deprecation details to the output buffer
out.push_str(&worktrunk::config::format_deprecation_details(&info));
true
} else {
@@ -545,14 +544,12 @@ fn render_user_config(out: &mut String, has_system_config: bool) -> anyhow::Resu
)));
}
- // Add "Current config" label when deprecations shown (to separate from diff)
- if has_deprecations {
- writeln!(out, "{}", info_message("Current config:"))?;
+ // Display TOML with syntax highlighting (gutter at column 0).
+ // Skip when deprecations were shown — the proposed diff already covers it.
+ if !has_deprecations {
+ writeln!(out, "{}", format_toml(&contents))?;
}
- // Display TOML with syntax highlighting (gutter at column 0)
- writeln!(out, "{}", format_toml(&contents))?;
-
if !has_system_config {
render_system_config_hint(out)?;
}
@@ -673,7 +670,6 @@ fn render_project_config(out: &mut String) -> anyhow::Result<()> {
false, // silent mode - we'll format the output ourselves
) {
if let Some(info) = result.info {
- // Add deprecation details to the output buffer
out.push_str(&worktrunk::config::format_deprecation_details(&info));
true
} else {
@@ -695,14 +691,12 @@ fn render_project_config(out: &mut String) -> anyhow::Result<()> {
));
}
- // Add "Current config" label when deprecations shown (to separate from diff)
- if has_deprecations {
- writeln!(out, "{}", info_message("Current config:"))?;
+ // Display TOML with syntax highlighting (gutter at column 0).
+ // Skip when deprecations were shown — the proposed diff already covers it.
+ if !has_deprecations {
+ writeln!(out, "{}", format_toml(&contents))?;
}
- // Display TOML with syntax highlighting (gutter at column 0)
- writeln!(out, "{}", format_toml(&contents))?;
-
Ok(())
}
diff --git a/src/commands/config/update.rs b/src/commands/config/update.rs
index 7ba82589f..bd49f7158 100644
--- a/src/commands/config/update.rs
+++ b/src/commands/config/update.rs
@@ -88,10 +88,11 @@ pub fn handle_config_update(yes: bool) -> anyhow::Result<()> {
fn format_update_preview(info: &DeprecationInfo) -> String {
let mut out = format_deprecation_warnings(info);
- // Show diff (without the hint that format_deprecation_details adds)
+ // Show diff (without the "To apply" hint that format_deprecation_details adds)
if let Some(new_path) = &info.migration_path
&& let Some(diff) = format_migration_diff(&info.config_path, new_path)
{
+ let _ = writeln!(out, "{}", info_message("Proposed diff:"));
let _ = writeln!(out, "{diff}");
}
diff --git a/src/config/deprecation.rs b/src/config/deprecation.rs
index 18b533211..eaea9be31 100644
--- a/src/config/deprecation.rs
+++ b/src/config/deprecation.rs
@@ -30,7 +30,7 @@ use shell_escape::unix::escape;
use crate::config::WorktrunkConfig;
use crate::shell_exec::Cmd;
use crate::styling::{
- eprintln, format_bash_with_gutter, format_with_gutter, hint_message, suggest_command_in_dir,
+ eprintln, format_with_gutter, hint_message, info_message, suggest_command_in_dir,
warning_message,
};
@@ -1380,24 +1380,24 @@ pub fn format_deprecation_warnings(info: &DeprecationInfo) -> String {
);
}
- if !info.deprecations.commit_gen.is_empty() {
- let mut parts = Vec::new();
- if info.deprecations.commit_gen.has_top_level {
- parts.push("[commit-generation] → [commit.generation]".to_string());
- }
- for project_key in &info.deprecations.commit_gen.project_keys {
- parts.push(format!(
- "[projects.\"{}\".commit-generation] → [projects.\"{}\".commit.generation]",
- project_key, project_key
- ));
- }
+ if info.deprecations.commit_gen.has_top_level {
let _ = writeln!(
out,
"{}",
- warning_message(format!(
- "{} uses deprecated config sections: {}",
- info.label,
- parts.join(", ")
+ warning_message(cformat!(
+ "{}: <bold>[commit-generation]</> is deprecated in favor of <bold>[commit.generation]</>",
+ info.label
+ ))
+ );
+ }
+ for project_key in &info.deprecations.commit_gen.project_keys {
+ let _ = writeln!(
+ out,
+ "{}",
+ warning_message(cformat!(
+ "{label}: <bold>[projects.\"{k}\".commit-generation]</> is deprecated in favor of <bold>[projects.\"{k}\".commit.generation]</>",
+ label = info.label,
+ k = project_key
))
);
}
@@ -1430,8 +1430,8 @@ pub fn format_deprecation_warnings(info: &DeprecationInfo) -> String {
let _ = writeln!(
out,
"{}",
- warning_message(format!(
- "{} uses deprecated config section: [select] → [switch.picker]",
+ warning_message(cformat!(
+ "{}: <bold>[select]</> is deprecated in favor of <bold>[switch.picker]</>",
info.label
))
);
@@ -1441,8 +1441,8 @@ pub fn format_deprecation_warnings(info: &DeprecationInfo) -> String {
let _ = writeln!(
out,
"{}",
- warning_message(format!(
- "{} uses deprecated hook name: post-create → pre-start",
+ warning_message(cformat!(
+ "{}: <bold>post-create</> hook is deprecated in favor of <bold>pre-start</>",
info.label
))
);
@@ -1452,8 +1452,8 @@ pub fn format_deprecation_warnings(info: &DeprecationInfo) -> String {
let _ = writeln!(
out,
"{}",
- warning_message(format!(
- "{} uses deprecated config section: [ci] → [forge]",
+ warning_message(cformat!(
+ "{}: <bold>[ci]</> is deprecated in favor of <bold>[forge]</>",
info.label
))
);
@@ -1463,8 +1463,8 @@ pub fn format_deprecation_warnings(info: &DeprecationInfo) -> String {
let _ = writeln!(
out,
"{}",
- warning_message(format!(
- "{} uses deprecated field: [merge] no-ff → ff (inverted)",
+ warning_message(cformat!(
+ "{}: <bold>merge.no-ff</> is deprecated in favor of <bold>merge.ff</> (inverted)",
info.label
))
);
@@ -1474,21 +1474,28 @@ pub fn format_deprecation_warnings(info: &DeprecationInfo) -> String {
let _ = writeln!(
out,
"{}",
- warning_message(format!(
- "{} uses deprecated field: [switch] no-cd → cd (inverted)",
+ warning_message(cformat!(
+ "{}: <bold>switch.no-cd</> is deprecated in favor of <bold>switch.cd</> (inverted)",
info.label
))
);
}
if !info.deprecations.pre_hook_table_form.is_empty() {
- let hook_list = info.deprecations.pre_hook_table_form.join(", ");
+ let hook_list = info
+ .deprecations
+ .pre_hook_table_form
+ .iter()
+ .map(|h| cformat!("<bold>{h}</>"))
+ .collect::<Vec<_>>()
+ .join(", ");
let _ = writeln!(
out,
"{}",
- warning_message(format!(
- "{} uses deprecated table form for pre-* hooks: {} → pipeline form",
- info.label, hook_list
+ warning_message(cformat!(
+ "{}: table form for {} is deprecated in favor of the pipeline form",
+ info.label,
+ hook_list
))
);
}
@@ -1508,18 +1515,25 @@ pub fn format_deprecation_details(info: &DeprecationInfo) -> String {
// Migration hint with apply command
if let Some(new_path) = &info.migration_path {
- let _ = writeln!(out, "{}", hint_message("To apply:"));
- let _ = writeln!(out, "{}", format_bash_with_gutter("wt config update"));
+ let _ = writeln!(
+ out,
+ "{}",
+ hint_message(cformat!("To apply: <underline>wt config update</>"))
+ );
// Inline diff — git diff header shows the file paths
if let Some(diff) = format_migration_diff(&info.config_path, new_path) {
+ let _ = writeln!(out, "{}", info_message("Proposed diff:"));
let _ = writeln!(out, "{diff}");
}
} else if let Some(main_path) = &info.main_worktree_path {
// In linked worktree — include -C so the command works from here
let cmd = suggest_command_in_dir(main_path, "config", &["update"], &[]);
- let _ = writeln!(out, "{}", hint_message("To apply:"));
- let _ = writeln!(out, "{}", format_bash_with_gutter(&cmd));
+ let _ = writeln!(
+ out,
+ "{}",
+ hint_message(cformat!("To apply: <underline>{cmd}</>"))
+ );
}
out
diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rs
index 44d45e10b..aed7891ea 100644
--- a/tests/integration_tests/config_show.rs
+++ b/tests/integration_tests/config_show.rs
@@ -3001,6 +3001,94 @@ env = "cp .env.example .env"
});
}
+/// `wt config show` displays deprecation details for `[select]` → `[switch.picker]`.
+/// Uses user config so the warning label reads "User config".
+#[rstest]
+fn test_config_show_displays_select_section_deprecation(mut repo: TestRepo, temp_home: TempDir) {
+ repo.setup_mock_ci_tools_unauthenticated();
+
+ let global_config_dir = temp_home.path().join(".config").join("worktrunk");
+ fs::create_dir_all(&global_config_dir).unwrap();
+ let config_path = global_config_dir.join("config.toml");
+ fs::write(
+ &config_path,
+ r#"[select]
+pager = "delta --paging=never"
+"#,
+ )
+ .unwrap();
+
+ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);
+ settings.bind(|| {
+ let mut cmd = wt_command();
+ repo.configure_wt_cmd(&mut cmd);
+ repo.configure_mock_commands(&mut cmd);
+ cmd.arg("config").arg("show").current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+ set_xdg_config_path(&mut cmd, temp_home.path());
+
+ assert_cmd_snapshot!(cmd);
+ });
+}
+
+/// `wt config show` displays deprecation details for `[merge] no-ff` → `ff` (inverted).
+#[rstest]
+fn test_config_show_displays_no_ff_deprecation(mut repo: TestRepo, temp_home: TempDir) {
+ repo.setup_mock_ci_tools_unauthenticated();
+
+ let global_config_dir = temp_home.path().join(".config").join("worktrunk");
+ fs::create_dir_all(&global_config_dir).unwrap();
+ let config_path = global_config_dir.join("config.toml");
+ fs::write(
+ &config_path,
+ r#"[merge]
+no-ff = true
+"#,
+ )
+ .unwrap();
+
+ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);
+ settings.bind(|| {
+ let mut cmd = wt_command();
+ repo.configure_wt_cmd(&mut cmd);
+ repo.configure_mock_commands(&mut cmd);
+ cmd.arg("config").arg("show").current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+ set_xdg_config_path(&mut cmd, temp_home.path());
+
+ assert_cmd_snapshot!(cmd);
+ });
+}
+
+/// `wt config show` displays deprecation details for `[switch] no-cd` → `cd` (inverted).
+#[rstest]
+fn test_config_show_displays_no_cd_deprecation(mut repo: TestRepo, temp_home: TempDir) {
+ repo.setup_mock_ci_tools_unauthenticated();
+
+ let global_config_dir = temp_home.path().join(".config").join("worktrunk");
+ fs::create_dir_all(&global_config_dir).unwrap();
+ let config_path = global_config_dir.join("config.toml");
+ fs::write(
+ &config_path,
+ r#"[switch]
+no-cd = true
+"#,
+ )
+ .unwrap();
+
+ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);
+ settings.bind(|| {
+ let mut cmd = wt_command();
+ repo.configure_wt_cmd(&mut cmd);
+ repo.configure_mock_commands(&mut cmd);
+ cmd.arg("config").arg("show").current_dir(repo.root_path());
+ set_temp_home_env(&mut cmd, temp_home.path());
+ set_xdg_config_path(&mut cmd, temp_home.path());
+
+ assert_cmd_snapshot!(cmd);
+ });
+}
+
/// `wt config update --yes` applies commit-generation section rename
#[rstest]
fn test_config_update_applies_commit_generation_migration(repo: TestRepo) {
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_always_regenerates_migration_file.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_always_regenerates_migration_file.snap
index 57a784cc4..f6ebd9f38 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_always_regenerates_migration_file.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_always_regenerates_migration_file.snap
@@ -49,9 +49,9 @@ exit_code: 0
PROJECT CONFIG @ _REPO_/.config/wt.toml
▲ Project config uses deprecated template variables: main_worktree → repo
-▲ Project config uses deprecated hook name: post-create → pre-start
-↳ To apply:
-  wt config update
+▲ Project config: post-create hook is deprecated in favor of pre-start
+↳ To apply: wt config update
+○ Proposed diff:
  diff --git a_REPO_/.config/wt.toml b_REPO_/.config/wt.toml.new
  index 8fcdb47..7792aac 100644
  --- a_REPO_/.config/wt.toml
@@ -59,8 +59,6 @@ exit_code: 0
  @@ -1 +1 @@
  -post-create = "ln -sf {{ main_worktree }}/node_modules"
  +pre-start = "ln -sf {{ repo }}/node_modules"
-○ Current config:
-  post-create = "ln -sf {{ main_worktree }}/node_modules"
SHELL INTEGRATION
▲ Shell integration not active
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
index 5ae57e85d..af092f99d 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
@@ -46,9 +46,9 @@ exit_code: 0
----- stderr -----
USER CONFIG @ ~/.config/worktrunk/config.toml
▲ User config uses deprecated template variables: repo_root → repo_path, main_worktree → repo
-▲ User config uses deprecated hook name: post-create → pre-start
-↳ To apply:
-  wt config update
+▲ User config: post-create hook is deprecated in favor of pre-start
+↳ To apply: wt config update
+○ Proposed diff:
  diff --git a[TEMP_HOME]/.config/worktrunk/config.toml b[TEMP_HOME]/.config/worktrunk/config.toml.new
  index d95d100..5eef8a6 100644
  --- a[TEMP_HOME]/.config/worktrunk/config.toml
@@ -58,9 +58,6 @@ exit_code: 0
  -post-create = "ln -sf {{ repo_root }}/node_modules"
  +worktree-path = "../{{ repo }}.{{ branch }}"
  +pre-start = "ln -sf {{ repo_path }}/node_modules"
-○ Current config:
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
-  post-create = "ln -sf {{ repo_root }}/node_modules"
↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
PROJECT CONFIG @ _REPO_/.config/wt.toml
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_no_cd_deprecation.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_no_cd_deprecation.snap
new file mode 100644
index 000000000..9ee789ad3
--- /dev/null
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_no_cd_deprecation.snap
@@ -0,0 +1,76 @@
+---
+source: tests/integration_tests/config_show.rs
+info:
+ program: wt
+ args:
+ - config
+ - show
+ env:
+ APPDATA: "[TEST_CONFIG_HOME]"
+ CLICOLOR_FORCE: "1"
+ COLUMNS: "500"
+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
+ GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
+ GIT_TERMINAL_PROMPT: "0"
+ HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"
+ NO_COLOR: ""
+ OPENCODE_CONFIG_DIR: "[TEST_OPENCODE_CONFIG]"
+ PATH: "[PATH]"
+ PSModulePath: ""
+ RUST_LOG: warn
+ SHELL: ""
+ TERM: alacritty
+ USERPROFILE: "[TEST_HOME]"
+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
+ WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_NUSHELL_ENV: "0"
+ WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
+---
+success: true
+exit_code: 0
+----- stdout -----
+
+----- stderr -----
+USER CONFIG @ ~/.config/worktrunk/config.toml
+▲ User config: switch.no-cd is deprecated in favor of switch.cd (inverted)
+↳ To apply: wt config update
+○ Proposed diff:
+  diff --git a[TEMP_HOME]/.config/worktrunk/config.toml b[TEMP_HOME]/.config/worktrunk/config.toml.new
+  index ec5c19e..2c6162a 100644
+  --- a[TEMP_HOME]/.config/worktrunk/config.toml
+  +++ b[TEMP_HOME]/.config/worktrunk/config.toml.new
+  @@ -1,2 +1,2 @@
+  [switch]
+  -no-cd = true
+  +cd = false
+↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
+
+PROJECT CONFIG @ _REPO_/.config/wt.toml
+↳ Not found
+
+SHELL INTEGRATION
+▲ Shell integration not active
+  Invoked as: [PROJECT_ROOT]/target/debug/wt
+
+○ bash: Skipped; ~/.bashrc not found
+○ zsh: Skipped; ~/.zshrc not found
+○ fish: Skipped; ~/.config/fish/functions not found
+○ nu: Skipped; ~/.config/nushell/vendor/autoload not found
+
+OTHER
+○ wt: [VERSION]
+○ git: [VERSION]
+○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_no_ff_deprecation.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_no_ff_deprecation.snap
new file mode 100644
index 000000000..3674f2447
--- /dev/null
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_no_ff_deprecation.snap
@@ -0,0 +1,76 @@
+---
+source: tests/integration_tests/config_show.rs
+info:
+ program: wt
+ args:
+ - config
+ - show
+ env:
+ APPDATA: "[TEST_CONFIG_HOME]"
+ CLICOLOR_FORCE: "1"
+ COLUMNS: "500"
+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
+ GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
+ GIT_TERMINAL_PROMPT: "0"
+ HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"
+ NO_COLOR: ""
+ OPENCODE_CONFIG_DIR: "[TEST_OPENCODE_CONFIG]"
+ PATH: "[PATH]"
+ PSModulePath: ""
+ RUST_LOG: warn
+ SHELL: ""
+ TERM: alacritty
+ USERPROFILE: "[TEST_HOME]"
+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
+ WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_NUSHELL_ENV: "0"
+ WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
+---
+success: true
+exit_code: 0
+----- stdout -----
+
+----- stderr -----
+USER CONFIG @ ~/.config/worktrunk/config.toml
+▲ User config: merge.no-ff is deprecated in favor of merge.ff (inverted)
+↳ To apply: wt config update
+○ Proposed diff:
+  diff --git a[TEMP_HOME]/.config/worktrunk/config.toml b[TEMP_HOME]/.config/worktrunk/config.toml.new
+  index f4de629..27f3868 100644
+  --- a[TEMP_HOME]/.config/worktrunk/config.toml
+  +++ b[TEMP_HOME]/.config/worktrunk/config.toml.new
+  @@ -1,2 +1,2 @@
+  [merge]
+  -no-ff = true
+  +ff = false
+↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
+
+PROJECT CONFIG @ _REPO_/.config/wt.toml
+↳ Not found
+
+SHELL INTEGRATION
+▲ Shell integration not active
+  Invoked as: [PROJECT_ROOT]/target/debug/wt
+
+○ bash: Skipped; ~/.bashrc not found
+○ zsh: Skipped; ~/.zshrc not found
+○ fish: Skipped; ~/.config/fish/functions not found
+○ nu: Skipped; ~/.config/nushell/vendor/autoload not found
+
+OTHER
+○ wt: [VERSION]
+○ git: [VERSION]
+○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_pre_hook_table_form_deprecation.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_pre_hook_table_form_deprecation.snap
index 9422bf90c..1e963f499 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_pre_hook_table_form_deprecation.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_pre_hook_table_form_deprecation.snap
@@ -48,9 +48,9 @@ exit_code: 0
↳ Not found; to create one, run wt config create
PROJECT CONFIG @ _REPO_/.config/wt.toml
-▲ Project config uses deprecated table form for pre-* hooks: pre-start, pre-merge → pipeline form
-↳ To apply:
-  wt config update
+▲ Project config: table form for pre-start, pre-merge is deprecated in favor of the pipeline form
+↳ To apply: wt config update
+○ Proposed diff:
  diff --git a_REPO_/.config/wt.toml b_REPO_/.config/wt.toml.new
  index 3a61835..0ab06b7 100644
  --- a_REPO_/.config/wt.toml
@@ -65,14 +65,6 @@ exit_code: 0
  -env = "cp .env.example .env"
  +pre-start = [{ install = "npm ci" }, { env = "cp .env.example .env" }]
  +pre-merge = [{ test = "cargo test" }, { lint = "cargo clippy" }]
-○ Current config:
-  [pre-merge]
-  test = "cargo test"
-  lint = "cargo clippy"
- 
-  [pre-start]
-  install = "npm ci"
-  env = "cp .env.example .env"
SHELL INTEGRATION
▲ Shell integration not active
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap
index 82767602a..9513313f8 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap
@@ -45,9 +45,9 @@ exit_code: 0
----- stderr -----
USER CONFIG @ ~/.config/worktrunk/config.toml
-▲ User config uses deprecated config sections: [projects."github.com/example/repo".commit-generation] → [projects."github.com/example/repo".commit.generation]
-↳ To apply:
-  wt config update
+▲ User config: [projects."github.com/example/repo".commit-generation] is deprecated in favor of [projects."github.com/example/repo".commit.generation]
+↳ To apply: wt config update
+○ Proposed diff:
  diff --git a[TEMP_HOME]/.config/worktrunk/config.toml b[TEMP_HOME]/.config/worktrunk/config.toml.new
  index de80729..131a2fd 100644
  --- a[TEMP_HOME]/.config/worktrunk/config.toml
@@ -58,11 +58,6 @@ exit_code: 0
  -[projects."github.com/example/repo".commit-generation]
  +[projects."github.com/example/repo".commit.generation]
  command = "llm -m gpt-4"
-○ Current config:
-  worktree-path = "../{{ repo }}.{{ branch }}"
- 
-  [projects."github.com/example/repo".commit-generation]
-  command = "llm -m gpt-4"
↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
PROJECT CONFIG @ _REPO_/.config/wt.toml
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_select_section_deprecation.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_select_section_deprecation.snap
new file mode 100644
index 000000000..9dd89e84a
--- /dev/null
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_select_section_deprecation.snap
@@ -0,0 +1,76 @@
+---
+source: tests/integration_tests/config_show.rs
+info:
+ program: wt
+ args:
+ - config
+ - show
+ env:
+ APPDATA: "[TEST_CONFIG_HOME]"
+ CLICOLOR_FORCE: "1"
+ COLUMNS: "500"
+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
+ GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
+ GIT_TERMINAL_PROMPT: "0"
+ HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"
+ NO_COLOR: ""
+ OPENCODE_CONFIG_DIR: "[TEST_OPENCODE_CONFIG]"
+ PATH: "[PATH]"
+ PSModulePath: ""
+ RUST_LOG: warn
+ SHELL: ""
+ TERM: alacritty
+ USERPROFILE: "[TEST_HOME]"
+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
+ WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_NUSHELL_ENV: "0"
+ WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
+---
+success: true
+exit_code: 0
+----- stdout -----
+
+----- stderr -----
+USER CONFIG @ ~/.config/worktrunk/config.toml
+▲ User config: [select] is deprecated in favor of [switch.picker]
+↳ To apply: wt config update
+○ Proposed diff:
+  diff --git a[TEMP_HOME]/.config/worktrunk/config.toml b[TEMP_HOME]/.config/worktrunk/config.toml.new
+  index 0d6352a..3e94895 100644
+  --- a[TEMP_HOME]/.config/worktrunk/config.toml
+  +++ b[TEMP_HOME]/.config/worktrunk/config.toml.new
+  @@ -1,2 +1,2 @@
+  -[select]
+  +[switch.picker]
+  pager = "delta --paging=never"
+↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
+
+PROJECT CONFIG @ _REPO_/.config/wt.toml
+↳ Not found
+
+SHELL INTEGRATION
+▲ Shell integration not active
+  Invoked as: [PROJECT_ROOT]/target/debug/wt
+
+○ bash: Skipped; ~/.bashrc not found
+○ zsh: Skipped; ~/.zshrc not found
+○ fish: Skipped; ~/.config/fish/functions not found
+○ nu: Skipped; ~/.config/nushell/vendor/autoload not found
+
+OTHER
+○ wt: [VERSION]
+○ git: [VERSION]
+○ Hyperlinks: inactive
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
index 0e467ce95..82c1e044a 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
@@ -49,11 +49,8 @@ exit_code: 0
PROJECT CONFIG @ [PROJECT_ID]
▲ Project config uses deprecated template variables: main_worktree → repo
-▲ Project config uses deprecated hook name: post-create → pre-start
-↳ To apply:
-  wt -C _REPO_ config update
-○ Current config:
-  post-create = "ln -sf {{ main_worktree }}/node_modules"
+▲ Project config: post-create hook is deprecated in favor of pre-start
+↳ To apply: wt -C _REPO_ config update
SHELL INTEGRATION
▲ Shell integration not active
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap
index 89feb8de6..38ef6b59c 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap
@@ -45,9 +45,9 @@ exit_code: 0
----- stderr -----
USER CONFIG @ ~/.config/worktrunk/config.toml
-▲ User config uses deprecated config section: [ci] → [forge]
-↳ To apply:
-  wt config update
+▲ User config: [ci] is deprecated in favor of [forge]
+↳ To apply: wt config update
+○ Proposed diff:
  diff --git a[TEMP_HOME]/.config/worktrunk/config.toml b[TEMP_HOME]/.config/worktrunk/config.toml.new
  index 2e0e0bb..9d78d51 100644
  --- a[TEMP_HOME]/.config/worktrunk/config.toml
@@ -61,11 +61,6 @@ exit_code: 0
  +[forge]
  +platform = "github"
▲ Key ci belongs in project config as [forge]
-○ Current config:
-  worktree-path = "../{{ repo }}.{{ branch }}"
- 
-  [ci]
-  platform = "github"
↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
PROJECT CONFIG @ _REPO_/.config/wt.toml
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap
index 0386c4319..c0964e144 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap
@@ -49,9 +49,9 @@ exit_code: 0
↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
PROJECT CONFIG @ _REPO_/.config/wt.toml
-▲ Project config uses deprecated config sections: [commit-generation] → [commit.generation]
-↳ To apply:
-  wt config update
+▲ Project config: [commit-generation] is deprecated in favor of [commit.generation]
+↳ To apply: wt config update
+○ Proposed diff:
  diff --git a_REPO_/.config/wt.toml b_REPO_/.config/wt.toml.new
  index 074c30f..bcaf404 100644
  --- a_REPO_/.config/wt.toml
@@ -63,9 +63,6 @@ exit_code: 0
  +[commit.generation]
  +command = "claude"
▲ Key commit-generation belongs in user config as [commit.generation]
-○ Current config:
-  [commit-generation]
-  command = "claude"
SHELL INTEGRATION
▲ Shell integration not active
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
index 849b2e3bf..417fab43f 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
@@ -49,9 +49,9 @@ exit_code: 0
↳ Optional system config not found @ /etc/xdg/worktrunk/config.toml
PROJECT CONFIG @ _REPO_/.config/wt.toml
-▲ Project config uses deprecated hook name: post-create → pre-start
-↳ To apply:
-  wt config update
+▲ Project config: post-create hook is deprecated in favor of pre-start
+↳ To apply: wt config update
+○ Proposed diff:
  diff --git a_REPO_/.config/wt.toml b_REPO_/.config/wt.toml.new
  index 13d6ba3..6ccc26d 100644
  --- a_REPO_/.config/wt.toml
@@ -62,11 +62,6 @@ exit_code: 0
  
  [post-start]
  server = "npm run dev"
-○ Current config:
-  post-create = "npm install"
- 
-  [post-start]
-  server = "npm run dev"
SHELL INTEGRATION
▲ Shell integration not active
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_update_applies_approved_commands_migration.snap b/tests/snapshots/integration__integration_tests__config_show__config_update_applies_approved_commands_migration.snap
index 0f9cb552c..d7c7c057d 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_update_applies_approved_commands_migration.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_update_applies_approved_commands_migration.snap
@@ -47,6 +47,7 @@ exit_code: 0
----- stderr -----
▲ User config has approved-commands in [projects] sections (moved to approvals.toml)
↳ Copied approved commands to approvals.toml
+○ Proposed diff:
  diff --git a[TEST_CONFIG] b[TEST_CONFIG_NEW]
  index 51f8ab1..a30ca31 100644
  --- a[TEST_CONFIG]
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_update_applies_commit_generation_migration.snap b/tests/snapshots/integration__integration_tests__config_show__config_update_applies_commit_generation_migration.snap
index c3dc185a7..c907ad890 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_update_applies_commit_generation_migration.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_update_applies_commit_generation_migration.snap
@@ -45,7 +45,8 @@ exit_code: 0
----- stdout -----
----- stderr -----
-▲ User config uses deprecated config sections: [commit-generation] → [commit.generation]
+▲ User config: [commit-generation] is deprecated in favor of [commit.generation]
+○ Proposed diff:
  diff --git a[TEST_CONFIG] b[TEST_CONFIG_NEW]
  index 40d0385..bc7273c 100644
  --- a[TEST_CONFIG]
diff --git a/tests/snapshots/integration__integration_tests__config_show__config_update_applies_template_var_migration.snap b/tests/snapshots/integration__integration_tests__config_show__config_update_applies_template_var_migration.snap
index 2034f7c71..a7ddcb203 100644
--- a/tests/snapshots/integration__integration_tests__config_show__config_update_applies_template_var_migration.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__config_update_applies_template_var_migration.snap
@@ -46,7 +46,8 @@ exit_code: 0
----- stderr -----
▲ User config uses deprecated template variables: repo_root → repo_path, worktree → worktree_path, main_worktree → repo
-▲ User config uses deprecated hook name: post-create → pre-start
+▲ User config: post-create hook is deprecated in favor of pre-start
+○ Proposed diff:
  diff --git a[TEST_CONFIG] b[TEST_CONFIG_NEW]
  index 89b3165..b3535c5 100644
  --- a[TEST_CONFIG]
diff --git a/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_accept.snap b/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_accept.snap
index 14a855d0a..2a37955b1 100644
--- a/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_accept.snap
+++ b/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_accept.snap
@@ -3,7 +3,8 @@ source: tests/integration_tests/config_update_pty.rs
expression: "&output"
---
▲ User config uses deprecated template variables: repo_root → repo_path, main_worktree → repo
-▲ User config uses deprecated hook name: post-create → pre-start
+▲ User config: post-create hook is deprecated in favor of pre-start
+○ Proposed diff:
  diff --git a[TEST_CONFIG] b[TEST_CONFIG_NEW]
  index d95d100..5eef8a6 100644
  --- a[TEST_CONFIG]
diff --git a/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_decline.snap b/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_decline.snap
index d89dd7b3b..b10d3defa 100644
--- a/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_decline.snap
+++ b/tests/snapshots/integration__integration_tests__config_update_pty__config_update_prompt_decline.snap
@@ -3,7 +3,8 @@ source: tests/integration_tests/config_update_pty.rs
expression: "&output"
---
▲ User config uses deprecated template variables: repo_root → repo_path, main_worktree → repo
-▲ User config uses deprecated hook name: post-create → pre-start
+▲ User config: post-create hook is deprecated in favor of pre-start
+○ Proposed diff:
  diff --git a[TEST_CONFIG] b[TEST_CONFIG_NEW]
  index d95d100..5eef8a6 100644
  --- a[TEST_CONFIG]