Skip to content

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.rs
index 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.rs
index 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 pager
if 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 buffer
fn 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.rs
index 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 synoptic
pub 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 highlighter
highlighter.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 styling
for 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.rs
index 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 includes
settings.add_filter(r"\x1b\[0m$", "");
diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rs
index 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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
PROJECT CONFIG _REPO_/.config/wt.toml
↳ Empty file
@@ -40,3 +41,7 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
- 
-  [commit-generation]
-  command = "nonexistent-llm-command-12345"
-  args = ["-m", "test-model"]
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+ 
+  [commit-generation]
+  command = "nonexistent-llm-command-12345"
+  args = ["-m", "test-model"]
PROJECT CONFIG _REPO_/.config/wt.toml
↳ Not found
@@ -53,3 +54,7 @@ exit_code: 0
    Failed to spawn LLM command
  ○ Ran command:
    nonexistent-llm-command-12345 -m test-model
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
PROJECT CONFIG _REPO_/.config/wt.toml
↳ Not found
@@ -45,3 +46,7 @@ exit_code: 0
DIAGNOSTICS
↳ CI status requires GitHub or GitLab remote
↳ Commit generation not configured
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
PROJECT CONFIG _REPO_/.config/wt.toml
↳ Not found
@@ -40,3 +41,7 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
PROJECT CONFIG _REPO_/.config/wt.toml
↳ Not found
@@ -40,3 +41,7 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
PROJECT CONFIG _REPO_/.config/wt.toml
↳ Not found
@@ -40,3 +41,7 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
PROJECT CONFIG Not in a git repository
@@ -32,3 +33,7 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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
○ Skipped fish; ~/.config/fish/conf.d not found
↳ To enable shell integration, run wt config shell install
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
new file mode 100644
index 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 -----
+USER CONFIG ~/.config/worktrunk/config.toml
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+
+PROJECT CONFIG _REPO_/.config/wt.toml
+↳ Not found
+
+SHELL INTEGRATION
+○ Skipped bash; ~/.bashrc not found
+○ Skipped zsh; ~/.zshrc not found
+○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+○ Shell integration active
diff --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.snap
index 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
  alias wt="git worktree"
↳ If 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.
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
PROJECT CONFIG _REPO_/.config/wt.toml
▲ Unknown key post-merge-command will be ignored
-  [post-merge-command]
-  deploy = "task deploy"
+  [post-merge-command]
+  deploy = "task deploy"
SHELL INTEGRATION
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
▲ Unknown key commit-gen will be ignored
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
- 
-  [commit-gen]
-  command = "llm"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+ 
+  [commit-gen]
+  command = "llm"
PROJECT CONFIG _REPO_/.config/wt.toml
↳ Not found
@@ -44,3 +45,7 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
PROJECT CONFIG _REPO_/.config/wt.toml
↳ Empty file
@@ -40,3 +41,7 @@ exit_code: 0
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ 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 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 -----
USER CONFIG ~/.config/worktrunk/config.toml
-  worktree-path = "../{{ main_worktree }}.{{ branch }}"
- 
-  [projects."test-project"]
-  approved-commands = ["npm install"]
+  worktree-path = "../{{ main_worktree }}.{{ branch }}"
+ 
+  [projects."test-project"]
+  approved-commands = ["npm install"]
PROJECT CONFIG _REPO_/.config/wt.toml
-  post-create = "npm install"
- 
-  [post-start]
-  server = "npm run dev"
+  post-create = "npm install"
+ 
+  [post-start]
+  server = "npm run dev"
SHELL INTEGRATION
○ Skipped bash; ~/.bashrc not found
○ Skipped zsh; ~/.zshrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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
  if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)"; fi
○ Skipped bash; ~/.bashrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active
diff --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.snap
index 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
  autoload -Uz compinit && compinit
○ Skipped bash; ~/.bashrc not found
○ Skipped fish; ~/.config/fish/conf.d not found
+
+RUNTIME
+  wt [VERSION]
+↳ Shell integration not active