Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Add RUNTIME section to `wt config show` (#375)
Maximilian Roos94b2253cc990
diff --git a/src/cli.rs b/src/cli.rsindex 7299dd797..6b67597ed 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -101,7 +101,11 @@ fn apply_help_template_recursive(mut cmd: Command, path: &str) -> Command {cmd}-fn version_str() -> &'static str {+/// Get the version string for display.+///+/// Returns the git describe version if available (e.g., "v0.8.5-3-gabcdef"),+/// otherwise falls back to the cargo package version (e.g., "0.8.5").+pub fn version_str() -> &'static str {static VERSION: OnceLock<String> = OnceLock::new();VERSION.get_or_init(|| {let git_version = env!("VERGEN_GIT_DESCRIBE");diff --git a/src/commands/config.rs b/src/commands/config.rsindex e0b89f98e..58aaf3182 100644--- a/src/commands/config.rs+++ b/src/commands/config.rs@@ -16,6 +16,7 @@ use worktrunk::utils::get_now;use super::configure_shell::{ConfigAction, scan_shell_configs};use super::list::ci_status::CachedCiStatus;+use crate::cli::version_str;use crate::display::format_relative_time_short;use crate::help_pager::show_help_in_pager;use crate::llm::test_commit_generation;@@ -139,6 +140,10 @@ pub fn handle_config_show(full: bool) -> anyhow::Result<()> {render_diagnostics(&mut show_output)?;}+ // Render runtime info at the bottom (version, binary name, shell integration status)+ show_output.push('\n');+ render_runtime_info(&mut show_output)?;+// Display through pagerif let Err(e) = show_help_in_pager(&show_output) {log::debug!("Pager invocation failed: {}", e);@@ -149,6 +154,31 @@ pub fn handle_config_show(full: bool) -> anyhow::Result<()> {Ok(())}+/// Render runtime information (version, binary name, shell integration status)+fn render_runtime_info(out: &mut String) -> anyhow::Result<()> {+ let cmd = crate::binary_name();+ let version = version_str();+ let shell_active = output::is_shell_integration_active();++ writeln!(out, "{}", format_heading("RUNTIME", None))?;++ // Version and binary name on one line+ writeln!(+ out,+ "{}",+ format_with_gutter(&cformat!("<bold>{cmd}</> <dim>{version}</>"), None)+ )?;++ // Shell integration status+ if shell_active {+ writeln!(out, "{}", info_message("Shell integration active"))?;+ } else {+ writeln!(out, "{}", hint_message("Shell integration not active"))?;+ }++ Ok(())+}+/// Run full diagnostic checks (CI tools, commit generation) and render to bufferfn render_diagnostics(out: &mut String) -> anyhow::Result<()> {use super::list::ci_status::{CiPlatform, CiToolsStatus, get_platform_for_repo};diff --git a/src/styling/highlighting.rs b/src/styling/highlighting.rsindex b6868e938..052dd623f 100644--- a/src/styling/highlighting.rs+++ b/src/styling/highlighting.rs@@ -88,39 +88,23 @@ pub(super) fn bash_token_style(kind: &str) -> Option<Style> {/// Formats TOML content with syntax highlighting using synopticpub fn format_toml(content: &str) -> String {+ // synoptic has built-in TOML support, so this always succeeds+ let mut highlighter = from_extension("toml", 4).expect("synoptic supports TOML");let gutter = super::GUTTER;-- // Get TOML highlighter from synoptic's built-in rules (tab_width = 4)- let mut highlighter = match from_extension("toml", 4) {- Some(h) => h,- None => {- // Fallback: return dimmed content if TOML highlighter not available- let dim = Style::new().dimmed();- let mut output = String::new();- for line in content.lines() {- output.push_str(&format!("{gutter} {gutter:#} {dim}{line}{dim:#}\n"));- }- return output;- }- };-- let mut output = String::new();let lines: Vec<String> = content.lines().map(|s| s.to_string()).collect();// Process all lines through the highlighterhighlighter.run(&lines);- // Render each line with appropriate styling+ // Render each line with gutter and appropriate styling+ let mut output = String::new();for (y, line) in lines.iter().enumerate() {- // Add gutter and spacing- output.push_str(&format!("{gutter} {gutter:#} "));+ output.push_str(&format!("{gutter} {gutter:#} "));- // Render each token with appropriate stylingfor token in highlighter.line(y, line) {match token {TokOpt::Some(text, kind) => {- let style = toml_token_style(&kind);- if let Some(s) = style {+ if let Some(s) = toml_token_style(&kind) {output.push_str(&format!("{s}{text}{s:#}"));} else {output.push_str(&text);diff --git a/tests/common/mod.rs b/tests/common/mod.rsindex 9a776ecd6..10491a133 100644--- a/tests/common/mod.rs+++ b/tests/common/mod.rs@@ -2114,6 +2114,15 @@ pub fn setup_snapshot_settings(repo: &TestRepo) -> insta::Settings {// On Windows, clap shows "wt.exe" instead of "wt"settings.add_filter(r"wt\.exe", "wt");+ // Normalize version strings in `wt config show` RUNTIME section+ // Version can be: v0.8.5, v0.8.5-2-gabcdef, v0.8.5-dirty, or bare git hash (b9ffe83)+ // Match specifically after "wt" (bold+reset) to avoid matching commit hashes elsewhere+ // Pattern: wt<bold-reset> <dim>VERSION<dim-reset>+ settings.add_filter(+ r"(\x1b\[1mwt\x1b\[22m \x1b\[2m)(?:v[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9]+-g[0-9a-f]+)?(?:-dirty)?|[0-9a-f]{7,40})(\x1b\[22m)",+ "$1[VERSION]$2",+ );+// Remove trailing ANSI reset codes at end of lines for cross-platform consistency// Windows terminal strips these trailing resets that Unix includessettings.add_filter(r"\x1b\[0m$", "");diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rsindex 0f28e2b49..b2db82419 100644--- a/tests/integration_tests/config_show.rs+++ b/tests/integration_tests/config_show.rs@@ -628,3 +628,37 @@ alias wt="git worktree"assert_cmd_snapshot!(cmd);});}++/// Test `wt config show` with shell integration active (WORKTRUNK_DIRECTIVE_FILE set)+#[rstest]+fn test_config_show_shell_integration_active(mut repo: TestRepo, temp_home: TempDir) {+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();++ // Create global config+ let global_config_dir = temp_home.path().join(".config").join("worktrunk");+ fs::create_dir_all(&global_config_dir).unwrap();+ fs::write(+ global_config_dir.join("config.toml"),+ r#"worktree-path = "../{{ main_worktree }}.{{ branch }}"+"#,+ )+ .unwrap();++ // Create a temp file for the directive file+ let directive_file = temp_home.path().join("directive");+ fs::write(&directive_file, "").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 WORKTRUNK_DIRECTIVE_FILE to simulate shell integration being active+ cmd.env("WORKTRUNK_DIRECTIVE_FILE", &directive_file);++ assert_cmd_snapshot!(cmd);+ });+}diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snapindex f3537f689..0be0a02b5 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap@@ -23,6 +23,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -31,7 +32,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[2m↳[22m [2mEmpty file[22m@@ -40,3 +41,7 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snapindex c9494a117..5dd50d1c7 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap@@ -24,6 +24,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -32,11 +33,11 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"-[107m [0m-[107m [0m [1m[36m[commit-generation]-[107m [0m command = [32m"nonexistent-llm-command-12345"-[107m [0m args = [[32m"-m"[0m, [32m"test-model"[0m]+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m+[107m [0m [1m[36m[commit-generation]+[107m [0m command = [32m"nonexistent-llm-command-12345"+[107m [0m args = [[32m"-m"[0m, [32m"test-model"[0m][36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[2m↳[22m [2mNot found[22m@@ -53,3 +54,7 @@ exit_code: 0[107m [0m [107m [0m Failed to spawn LLM command[107m [0m [2m○[22m Ran command:[107m [0m [107m [0m nonexistent-llm-command-12345 -m test-model++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snapindex b0004a8a9..01b247194 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap@@ -24,6 +24,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -32,7 +33,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[2m↳[22m [2mNot found[22m@@ -45,3 +46,7 @@ exit_code: 0[36mDIAGNOSTICS[39m[2m↳[22m [2mCI status requires GitHub or GitLab remote[22m[2m↳[22m [2mCommit generation not configured[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snapindex fb22e0371..3664b0931 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap@@ -23,6 +23,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -31,7 +32,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[2m↳[22m [2mNot found[22m@@ -40,3 +41,7 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snapindex fb22e0371..3664b0931 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap@@ -23,6 +23,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -31,7 +32,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[2m↳[22m [2mNot found[22m@@ -40,3 +41,7 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snapindex fb22e0371..3664b0931 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap@@ -23,6 +23,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -31,7 +32,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[2m↳[22m [2mNot found[22m@@ -40,3 +41,7 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snapindex 15b7944c6..cc2e0c7ce 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap@@ -16,6 +16,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -24,7 +25,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[2m[36mPROJECT CONFIG[39m Not in a git repository[22m@@ -32,3 +33,7 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snapindex 620207bb6..a1416c05b 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap@@ -45,3 +45,7 @@ exit_code: 0[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m[2m↳[22m [2mTo enable shell integration, run [90mwt config shell install[39m[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snapnew file mode 100644index 000000000..1b3a9b694--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap@@ -0,0 +1,48 @@+---+source: tests/integration_tests/config_show.rs+info:+ program: wt+ args:+ - config+ - show+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ 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+ PATH: "[PATH]"+ RUST_LOG: warn+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_DIRECTIVE_FILE: "[DIRECTIVE_FILE]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"++[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml+[2m↳[22m [2mNot found[22m++[36mSHELL INTEGRATION[39m+[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m+[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m+[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m○[22m Shell integration activediff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snapindex 4db581a37..b7e8362b9 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap@@ -48,3 +48,7 @@ exit_code: 0[107m [0m [2m[0m[2m[34malias[0m[2m wt=[0m[2m[32m"git worktree"[0m[2m[2m↳[22m [2mIf this is shell integration, report a false negative: https://github.com/max-sixty/worktrunk/issues/new?title=Shell%20integration%20detection%20false%20negative&body=Shell%20integration%20not%20detected%20despite%20config%20containing%20%60wt%60.%0A%0A%2A%2AUnmatched%20lines%3A%2A%2A%0A%60%60%60%0Aalias%20wt%3D%22git%20worktree%22%0A%60%60%60%0A%0A%2A%2AExpected%20behavior%3A%2A%2A%20These%20lines%20should%20be%20detected%20as%20shell%20integration.[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snapindex 05e39c7af..3edc6d9fb 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap@@ -23,6 +23,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -31,14 +32,18 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[33m▲[39m [33mUnknown key [1mpost-merge-command[22m will be ignored[39m-[107m [0m [1m[36m[post-merge-command]-[107m [0m deploy = [32m"task deploy"+[107m [0m [1m[36m[post-merge-command]+[107m [0m deploy = [32m"task deploy"[36mSHELL INTEGRATION[39m[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snapindex 3bf5b3826..30979955d 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap@@ -23,6 +23,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -32,10 +33,10 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml[33m▲[39m [33mUnknown key [1mcommit-gen[22m will be ignored[39m-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"-[107m [0m-[107m [0m [1m[36m[commit-gen]-[107m [0m command = [32m"llm"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m+[107m [0m [1m[36m[commit-gen]+[107m [0m command = [32m"llm"[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[2m↳[22m [2mNot found[22m@@ -44,3 +45,7 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snapindex f3537f689..0be0a02b5 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap@@ -23,6 +23,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -31,7 +32,7 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml[2m↳[22m [2mEmpty file[22m@@ -40,3 +41,7 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --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.snapindex 9c33fdecd..af2d94c64 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@@ -23,6 +23,7 @@ info:SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"---success: true@@ -31,18 +32,22 @@ exit_code: 0----- stderr -----[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml-[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"-[107m [0m-[107m [0m [1m[36m[projects."test-project"]-[107m [0m approved-commands = [[32m"npm install"[0m]+[107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"+[107m [0m+[107m [0m [1m[36m[projects."test-project"]+[107m [0m approved-commands = [[32m"npm install"[0m][36mPROJECT CONFIG[39m _REPO_/.config/wt.toml-[107m [0m post-create = [32m"npm install"-[107m [0m-[107m [0m [1m[36m[post-start]-[107m [0m server = [32m"npm run dev"+[107m [0m post-create = [32m"npm install"+[107m [0m+[107m [0m [1m[36m[post-start]+[107m [0m server = [32m"npm run dev"[36mSHELL INTEGRATION[39m[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snapindex de3fdb339..08ac85a35 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap@@ -43,3 +43,7 @@ exit_code: 0[107m [0m [2m[0m[2m[35mif[0m[2m [0m[2m[34mcommand[0m[2m [0m[2m[36m-v[0m[2m wt [0m[2m[36m>[0m[2m/dev/null [0m[2m[33m2[0m[2m>&1; [0m[2m[35mthen[0m[2m [0m[2m[34meval[0m[2m [0m[2m[32m"$([0m[2m[34mcommand[0m[2m wt config shell init zsh)"[0m[2m; [0m[2m[35mfi[0m[2m[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snapindex e8a94d5ad..0049a9475 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap@@ -45,3 +45,7 @@ exit_code: 0[107m [0m autoload -Uz compinit && compinit[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mRUNTIME[39m+[107m [0m [1mwt[22m [2m[VERSION][22m+[2m↳[22m [2mShell integration not active[22m