Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Rename `--doctor` flag to `--full` and add binaries status display
Maximilian Roos171952ec9cd2
diff --git a/src/cli.rs b/src/cli.rsindex 9b2486cec..ea982fed3 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -321,12 +321,12 @@ and project config (`.config/wt.toml`).If a config file doesn't exist, shows defaults that would be used.-## Doctor mode+## Full diagnostics-Use `--doctor` to test commit generation with a synthetic diff:+Use `--full` to test commit generation with a synthetic diff:```console-wt config show --doctor+wt config show --full```This verifies that the LLM command is configured correctly and can generate@@ -335,7 +335,7 @@ commit messages."#Show {/// Test commit generation pipeline#[arg(long)]- doctor: bool,+ full: bool,},/// Manage caches (CI status, default branch)diff --git a/src/commands/config.rs b/src/commands/config.rsindex 1408cfbea..4dacf16c2 100644--- a/src/commands/config.rs+++ b/src/commands/config.rs@@ -116,7 +116,7 @@ fn create_config_file(}/// Handle the config show command-pub fn handle_config_show(doctor: bool) -> anyhow::Result<()> {+pub fn handle_config_show(full: bool) -> anyhow::Result<()> {// Build the complete output as a stringlet mut show_output = String::new();@@ -130,9 +130,13 @@ pub fn handle_config_show(doctor: bool) -> anyhow::Result<()> {// Render shell integration statusrender_shell_status(&mut show_output)?;+ show_output.push('\n');++ // Render binaries status+ render_binaries_status(&mut show_output)?;- // Display through pager (only if not in doctor mode, since doctor adds interactive output)- if doctor {+ // Display through pager (only if not in full mode, since full adds interactive output)+ if full {worktrunk::styling::eprintln!("{}", show_output);} else if let Err(e) = show_help_in_pager(&show_output) {log::debug!("Pager invocation failed: {}", e);@@ -140,16 +144,16 @@ pub fn handle_config_show(doctor: bool) -> anyhow::Result<()> {worktrunk::styling::eprintln!("{}", show_output);}- // Run doctor checks if requested- if doctor {- run_doctor_checks()?;+ // Run full diagnostic checks if requested+ if full {+ run_full_checks()?;}Ok(())}-/// Run diagnostic checks on configuration-fn run_doctor_checks() -> anyhow::Result<()> {+/// Run full diagnostic checks (commit generation test)+fn run_full_checks() -> anyhow::Result<()> {output::print(info_message("Running diagnostic checks..."))?;output::blank()?;@@ -305,6 +309,8 @@ fn render_project_config(out: &mut String) -> anyhow::Result<()> {}fn render_shell_status(out: &mut String) -> anyhow::Result<()> {+ writeln!(out, "{}", cformat!("<cyan>SHELL INTEGRATION</>"))?;+// Use the same detection logic as `wt config shell install`let scan_result = match scan_shell_configs(None, true) {Ok(r) => r,@@ -421,6 +427,70 @@ fn render_shell_status(out: &mut String) -> anyhow::Result<()> {Ok(())}+fn render_binaries_status(out: &mut String) -> anyhow::Result<()> {+ use super::list::ci_status::CiToolsStatus;++ writeln!(out, "{}", cformat!("<cyan>BINARIES</>"))?;++ let ci_tools = CiToolsStatus::detect();++ // Check gh (GitHub CLI)+ if ci_tools.gh_installed {+ if ci_tools.gh_authenticated {+ writeln!(+ out,+ "{}",+ info_message(cformat!("<bold>gh</> installed & authenticated"))+ )?;+ } else {+ writeln!(+ out,+ "{}",+ warning_message(cformat!(+ "<bold>gh</> installed but not authenticated; run <bright-black>gh auth login</>"+ ))+ )?;+ }+ } else {+ writeln!(+ out,+ "{}",+ hint_message(cformat!(+ "<bold>gh</> not found (GitHub CI status unavailable)"+ ))+ )?;+ }++ // Check glab (GitLab CLI)+ if ci_tools.glab_installed {+ if ci_tools.glab_authenticated {+ writeln!(+ out,+ "{}",+ info_message(cformat!("<bold>glab</> installed & authenticated"))+ )?;+ } else {+ writeln!(+ out,+ "{}",+ warning_message(cformat!(+ "<bold>glab</> installed but not authenticated; run <bright-black>glab auth login</>"+ ))+ )?;+ }+ } else {+ writeln!(+ out,+ "{}",+ hint_message(cformat!(+ "<bold>glab</> not found (GitLab CI status unavailable)"+ ))+ )?;+ }++ Ok(())+}+/// Check if zsh has compinit enabled by spawning an interactive shell////// Returns true if compinit is NOT enabled (i.e., user needs to add it).diff --git a/src/commands/list/ci_status.rs b/src/commands/list/ci_status.rsindex da190459c..8b4308776 100644--- a/src/commands/list/ci_status.rs+++ b/src/commands/list/ci_status.rs@@ -2,6 +2,43 @@ use serde::{Deserialize, Serialize, de::DeserializeOwned};use std::process::Command;use worktrunk::git::Repository;+/// CI platform detected from remote URL+// TODO: Add a `[ci] platform = "github" | "gitlab"` override in project config+// for cases where URL detection fails or users want to force a specific platform.+#[derive(Debug, Clone, Copy, PartialEq, Eq)]+enum CiPlatform {+ GitHub,+ GitLab,+}++/// Detect the CI platform from a remote URL by searching for "github" or "gitlab".+fn detect_platform_from_url(url: &str) -> Option<CiPlatform> {+ let url_lower = url.to_ascii_lowercase();+ if url_lower.contains("github") {+ Some(CiPlatform::GitHub)+ } else if url_lower.contains("gitlab") {+ Some(CiPlatform::GitLab)+ } else {+ None+ }+}++/// Get the CI platform for a repository by checking its origin remote URL.+fn get_platform_for_repo(repo_root: &str) -> Option<CiPlatform> {+ let output = Command::new("git")+ .args(["remote", "get-url", "origin"])+ .current_dir(repo_root)+ .output()+ .ok()?;++ if output.status.success() {+ let url = String::from_utf8(output.stdout).ok()?;+ detect_platform_from_url(&url)+ } else {+ None+ }+}+/// Extract owner from a git remote URL.////// Used for client-side filtering of PRs/MRs by source repository. When multiple users@@ -52,6 +89,73 @@ fn parse_remote_owner(url: &str) -> Option<&str> {mod tests {use super::*;+ #[test]+ fn test_detect_platform_from_url() {+ // GitHub - various URL formats+ assert_eq!(+ detect_platform_from_url("https://github.com/owner/repo.git"),+ Some(CiPlatform::GitHub)+ );+ assert_eq!(+ detect_platform_from_url("[email protected]:owner/repo.git"),+ Some(CiPlatform::GitHub)+ );+ assert_eq!(+ detect_platform_from_url("ssh://[email protected]/owner/repo.git"),+ Some(CiPlatform::GitHub)+ );++ // GitHub Enterprise+ assert_eq!(+ detect_platform_from_url("https://github.mycompany.com/owner/repo.git"),+ Some(CiPlatform::GitHub)+ );++ // GitLab - various URL formats+ assert_eq!(+ detect_platform_from_url("https://gitlab.com/owner/repo.git"),+ Some(CiPlatform::GitLab)+ );+ assert_eq!(+ detect_platform_from_url("[email protected]:owner/repo.git"),+ Some(CiPlatform::GitLab)+ );++ // Self-hosted GitLab+ assert_eq!(+ detect_platform_from_url("https://gitlab.example.com/owner/repo.git"),+ Some(CiPlatform::GitLab)+ );++ // Legacy schemes (http://, git://) - common on self-hosted installations+ assert_eq!(+ detect_platform_from_url("http://github.com/owner/repo.git"),+ Some(CiPlatform::GitHub)+ );+ assert_eq!(+ detect_platform_from_url("git://github.com/owner/repo.git"),+ Some(CiPlatform::GitHub)+ );+ assert_eq!(+ detect_platform_from_url("http://gitlab.example.com/owner/repo.git"),+ Some(CiPlatform::GitLab)+ );+ assert_eq!(+ detect_platform_from_url("git://gitlab.mycompany.com/owner/repo.git"),+ Some(CiPlatform::GitLab)+ );++ // Unknown platforms+ assert_eq!(+ detect_platform_from_url("https://bitbucket.org/owner/repo.git"),+ None+ );+ assert_eq!(+ detect_platform_from_url("https://codeberg.org/owner/repo.git"),+ None+ );+ }+/// Test URL parsing for various git remote formats.////// This is critical for PR/MR filtering - if we parse the wrong owner,@@ -310,6 +414,40 @@ fn tool_available(tool: &str, args: &[&str]) -> bool {.unwrap_or(false)}+/// Status of CI tools availability+#[derive(Debug, Clone, Copy)]+pub struct CiToolsStatus {+ /// gh is installed (can run --version)+ pub gh_installed: bool,+ /// gh is installed and authenticated+ pub gh_authenticated: bool,+ /// glab is installed (can run --version)+ pub glab_installed: bool,+ /// glab is installed and authenticated+ pub glab_authenticated: bool,+}++impl CiToolsStatus {+ /// Check which CI tools are available+ pub fn detect() -> Self {+ let gh_installed = tool_available("gh", &["--version"]);+ let gh_authenticated = gh_installed && tool_available("gh", &["auth", "status"]);+ let glab_installed = tool_available("glab", &["--version"]);+ let glab_authenticated = glab_installed && tool_available("glab", &["auth", "status"]);+ Self {+ gh_installed,+ gh_authenticated,+ glab_installed,+ glab_authenticated,+ }+ }++ /// Returns true if at least one CI tool can fetch status+ pub fn any_available(&self) -> bool {+ self.gh_authenticated || self.glab_authenticated+ }+}+/// Parse JSON output from CLI toolsfn parse_json<T: DeserializeOwned>(stdout: &[u8], command: &str, branch: &str) -> Option<T> {serde_json::from_slice(stdout)@@ -686,6 +824,9 @@ impl PrStatus {/// Detect CI status without caching (internal implementation)///+ /// Platform is determined by the remote URL (github.com vs gitlab.com).+ /// For unknown platforms (e.g., GitHub Enterprise with custom domains), falls back+ /// to trying both platforms./// PR/MR detection always runs. Workflow/pipeline fallback only runs if `has_upstream`.fn detect_uncached(branch: &str,@@ -693,30 +834,59 @@ impl PrStatus {repo_root: &str,has_upstream: bool,) -> Option<Self> {- // Try GitHub PR first (always, regardless of upstream)- if let Some(status) = Self::detect_github(branch, local_head, repo_root) {- return Some(status);+ // Determine platform from remote URL+ let platform = get_platform_for_repo(repo_root);++ match platform {+ Some(CiPlatform::GitHub) => {+ Self::detect_github_ci(branch, local_head, repo_root, has_upstream)+ }+ Some(CiPlatform::GitLab) => {+ Self::detect_gitlab_ci(branch, local_head, repo_root, has_upstream)+ }+ None => {+ // Unknown platform (e.g., GitHub Enterprise, self-hosted GitLab with custom domain)+ // Fall back to trying both platforms+ log::debug!(+ "Could not determine CI platform for {}, trying both",+ repo_root+ );+ Self::detect_github_ci(branch, local_head, repo_root, has_upstream)+ .or_else(|| Self::detect_gitlab_ci(branch, local_head, repo_root, has_upstream))+ }}+ }- // Try GitLab MR (always, regardless of upstream)- if let Some(status) = Self::detect_gitlab(branch, local_head, repo_root) {+ /// Detect GitHub CI status (PR first, then workflow if has_upstream)+ fn detect_github_ci(+ branch: &str,+ local_head: &str,+ repo_root: &str,+ has_upstream: bool,+ ) -> Option<Self> {+ if let Some(status) = Self::detect_github(branch, local_head, repo_root) {return Some(status);}-- // Workflow/pipeline fallback only if upstream is configured.- // This prevents false matches from similarly-named branches on the remote- // that aren't actually related to the local branch.- if !has_upstream {- return None;+ if has_upstream {+ return Self::detect_github_workflow(branch, local_head, repo_root);}+ None+ }- // Try GitHub workflow runs (for branches without PRs)- if let Some(status) = Self::detect_github_workflow(branch, local_head, repo_root) {+ /// Detect GitLab CI status (MR first, then pipeline if has_upstream)+ fn detect_gitlab_ci(+ branch: &str,+ local_head: &str,+ repo_root: &str,+ has_upstream: bool,+ ) -> Option<Self> {+ if let Some(status) = Self::detect_gitlab(branch, local_head, repo_root) {return Some(status);}-- // Fall back to GitLab pipeline (for branches without MRs)- Self::detect_gitlab_pipeline(branch, local_head)+ if has_upstream {+ return Self::detect_gitlab_pipeline(branch, local_head);+ }+ None}/// Detect GitHub PR CI status for a branch.diff --git a/src/commands/list/mod.rs b/src/commands/list/mod.rsindex 27866315c..16e67e797 100644--- a/src/commands/list/mod.rs+++ b/src/commands/list/mod.rs@@ -201,6 +201,42 @@ pub fn handle_list(}}+ // Show hint if CI status was requested but no tools can fetch it+ if show_full {+ let ci_tools = ci_status::CiToolsStatus::detect();+ if !ci_tools.any_available() {+ use color_print::cformat;+ use worktrunk::styling::hint_message;+ crate::output::blank()?;++ // Provide specific guidance based on what's installed but not authenticated+ let gh_needs_auth = ci_tools.gh_installed && !ci_tools.gh_authenticated;+ let glab_needs_auth = ci_tools.glab_installed && !ci_tools.glab_authenticated;++ if gh_needs_auth && glab_needs_auth {+ // Both installed but neither authenticated+ crate::output::print(hint_message(cformat!(+ "CI status unavailable; run <bright-black>gh auth login</> or <bright-black>glab auth login</>"+ )))?;+ } else if gh_needs_auth {+ // gh installed but not authenticated+ crate::output::print(hint_message(cformat!(+ "CI status unavailable; run <bright-black>gh auth login</> to authenticate"+ )))?;+ } else if glab_needs_auth {+ // glab installed but not authenticated+ crate::output::print(hint_message(cformat!(+ "CI status unavailable; run <bright-black>glab auth login</> to authenticate"+ )))?;+ } else {+ // Neither tool is installed+ crate::output::print(hint_message(cformat!(+ "CI status unavailable; install <bright-black>gh</> or <bright-black>glab</>"+ )))?;+ }+ }+ }+Ok(())}diff --git a/src/main.rs b/src/main.rsindex be997432c..4b24b654d 100644--- a/src/main.rs+++ b/src/main.rs@@ -875,7 +875,7 @@ fn main() {}}ConfigCommand::Create { project } => handle_config_create(project),- ConfigCommand::Show { doctor } => handle_config_show(doctor),+ ConfigCommand::Show { full } => handle_config_show(full),ConfigCommand::Cache { action } => match action {CacheCommand::Show => handle_cache_show(),CacheCommand::Clear { cache_type } => handle_cache_clear(cache_type),diff --git a/tests/common/mod.rs b/tests/common/mod.rsindex 660a050c0..769194c56 100644--- a/tests/common/mod.rs+++ b/tests/common/mod.rs@@ -758,6 +758,11 @@ impl TestRepo {# Mock gh command that fails fast without network callscase "$1" in+ --version)+ # gh --version - succeed (indicates gh is installed)+ echo "gh version 2.0.0 (mock)"+ exit 0+ ;;auth)# gh auth status - succeed immediatelyexit 0@@ -802,6 +807,81 @@ exit 1self.mock_bin_path = Some(mock_bin);}+ /// Setup mock `gh` and `glab` commands that show "installed but not authenticated"+ ///+ /// Use this for `wt config show` tests that need deterministic BINARIES output.+ /// Creates mocks where:+ /// - `gh --version`: succeeds (installed)+ /// - `gh auth status`: fails (not authenticated)+ /// - `glab --version`: succeeds (installed)+ /// - `glab auth status`: fails (not authenticated)+ pub fn setup_mock_ci_tools_unauthenticated(&mut self) {+ let mock_bin = self.temp_dir.path().join("mock-bin");+ std::fs::create_dir_all(&mock_bin).unwrap();++ // Create mock gh script - installed but not authenticated+ let gh_script = mock_bin.join("gh");+ std::fs::write(+ &gh_script,+ r#"#!/bin/sh+# Mock gh: installed but not authenticated++case "$1" in+ --version)+ echo "gh version 2.0.0 (mock)"+ exit 0+ ;;+ auth)+ # gh auth status - fail (not authenticated)+ exit 1+ ;;+ *)+ exit 1+ ;;+esac+"#,+ )+ .unwrap();++ #[cfg(unix)]+ {+ use std::os::unix::fs::PermissionsExt;+ std::fs::set_permissions(&gh_script, std::fs::Permissions::from_mode(0o755)).unwrap();+ }++ // Create mock glab script - installed but not authenticated+ let glab_script = mock_bin.join("glab");+ std::fs::write(+ &glab_script,+ r#"#!/bin/sh+# Mock glab: installed but not authenticated++case "$1" in+ --version)+ echo "glab version 1.0.0 (mock)"+ exit 0+ ;;+ auth)+ # glab auth status - fail (not authenticated)+ exit 1+ ;;+ *)+ exit 1+ ;;+esac+"#,+ )+ .unwrap();++ #[cfg(unix)]+ {+ use std::os::unix::fs::PermissionsExt;+ std::fs::set_permissions(&glab_script, std::fs::Permissions::from_mode(0o755)).unwrap();+ }++ self.mock_bin_path = Some(mock_bin);+ }+/// Configure a command to use mock gh/glab commands////// Must call `setup_mock_gh()` first. Prepends the mock bin directory to PATHdiff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rsindex 8d980b609..0797c0d5b 100644--- a/tests/integration_tests/config_show.rs+++ b/tests/integration_tests/config_show.rs@@ -1,7 +1,4 @@-use crate::common::{- TestRepo, set_temp_home_env, setup_home_snapshot_settings, setup_snapshot_settings_with_home,- wt_command,-};+use crate::common::{TestRepo, set_temp_home_env, setup_snapshot_settings_with_home, wt_command};use insta_cmd::assert_cmd_snapshot;use std::fs;use tempfile::TempDir;@@ -9,9 +6,12 @@ use tempfile::TempDir;/// Test `wt config show` with both global and project configs present#[test]fn test_config_show_with_project_config() {- let repo = TestRepo::new();+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create fake global config at XDG path (used on all platforms with etcetera)let global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -42,40 +42,23 @@ server = "npm run dev"settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&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());- assert_cmd_snapshot!(cmd, @r#"- success: true- exit_code: 0- ----- stdout ------- ----- 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]-- [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"-- ⚪ [2mSkipped bash; ~/.bashrc not found[22m- ⚪ [2mSkipped zsh; ~/.zshrc not found[22m- ⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m- "#);+ assert_cmd_snapshot!(cmd);});}/// Test `wt config show` when there is no project config#[test]fn test_config_show_no_project_config() {- let repo = TestRepo::new();+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create fake global config (but no project config) at XDG pathlet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -90,34 +73,24 @@ fn test_config_show_no_project_config() {settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&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());- assert_cmd_snapshot!(cmd, @r#"- 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- 💡 [2mNot found[22m-- ⚪ [2mSkipped bash; ~/.bashrc not found[22m- ⚪ [2mSkipped zsh; ~/.zshrc not found[22m- ⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m- "#);+ assert_cmd_snapshot!(cmd);});}/// Test `wt config show` outside a git repository#[test]fn test_config_show_outside_git_repo() {+ let mut repo = TestRepo::new();let temp_dir = tempfile::tempdir().unwrap();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create fake global config at XDG pathlet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -128,36 +101,26 @@ fn test_config_show_outside_git_repo() {).unwrap();- let settings = setup_home_snapshot_settings(&temp_home);+ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);settings.bind(|| {let mut cmd = wt_command();+ repo.configure_mock_commands(&mut cmd);cmd.arg("config").arg("show").current_dir(temp_dir.path());set_temp_home_env(&mut cmd, temp_home.path());- assert_cmd_snapshot!(cmd, @r#"- success: true- exit_code: 0- ----- stdout ------- ----- stderr ------ [36mUSER CONFIG[39m ~/.config/worktrunk/config.toml- [107m [0m worktree-path = [32m"../{{ main_worktree }}.{{ branch }}"[0m-- [36m[2mPROJECT CONFIG[22m Not in a git repository[39m-- ⚪ [2mSkipped bash; ~/.bashrc not found[22m- ⚪ [2mSkipped zsh; ~/.zshrc not found[22m- ⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m- "#);+ assert_cmd_snapshot!(cmd);});}/// Test `wt config show` warns when zsh compinit is not enabled#[test]fn test_config_show_zsh_compinit_warning() {- let repo = TestRepo::new();+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create global configlet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -176,6 +139,7 @@ if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&mut cmd);+ repo.configure_mock_commands(&mut cmd);// Force compinit warning for deterministic tests across environmentscmd.env("WORKTRUNK_TEST_COMPINIT_MISSING", "1");cmd.arg("config").arg("show").current_dir(repo.root_path());@@ -188,9 +152,12 @@ if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)/// Test `wt config show` shows hint when some shells configured, some not#[test]fn test_config_show_partial_shell_config_shows_hint() {- let repo = TestRepo::new();+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create global configlet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -218,6 +185,7 @@ if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&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());cmd.env("WORKTRUNK_TEST_COMPINIT_CONFIGURED", "1"); // Bypass zsh subprocess check@@ -229,9 +197,12 @@ if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)/// Test `wt config show` shows no warning when zsh compinit is enabled#[test]fn test_config_show_zsh_compinit_correct_order() {- let repo = TestRepo::new();+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create global configlet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -253,6 +224,7 @@ if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&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());cmd.env("WORKTRUNK_TEST_COMPINIT_CONFIGURED", "1"); // Bypass zsh subprocess check (unreliable on CI)@@ -264,9 +236,12 @@ if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init zsh)/// Test `wt config show` warns about unknown/misspelled keys in project config#[test]fn test_config_show_warns_unknown_project_keys() {- let repo = TestRepo::new();+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create global configlet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -289,36 +264,23 @@ fn test_config_show_warns_unknown_project_keys() {settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&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());- assert_cmd_snapshot!(cmd, @r#"- 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- 🟡 [33mUnknown key [1mpost-merge-command[22m will be ignored[39m- [107m [0m [1m[36m[post-merge-command]- [107m [0m deploy = [32m"task deploy"-- ⚪ [2mSkipped bash; ~/.bashrc not found[22m- ⚪ [2mSkipped zsh; ~/.zshrc not found[22m- ⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m- "#);+ assert_cmd_snapshot!(cmd);});}/// Test `wt config show` warns about unknown keys in user config#[test]fn test_config_show_warns_unknown_user_keys() {- let repo = TestRepo::new();+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create global config with typo: commit-gen instead of commit-generationlet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -332,38 +294,23 @@ fn test_config_show_warns_unknown_user_keys() {settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&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());- assert_cmd_snapshot!(cmd, @r#"- success: true- exit_code: 0- ----- stdout ------- ----- stderr ------ [36mUSER CONFIG[39m ~/.config/worktrunk/config.toml- 🟡 [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"-- [36mPROJECT CONFIG[39m [REPO]/.config/wt.toml- 💡 [2mNot found[22m-- ⚪ [2mSkipped bash; ~/.bashrc not found[22m- ⚪ [2mSkipped zsh; ~/.zshrc not found[22m- ⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m- "#);+ assert_cmd_snapshot!(cmd);});}-/// Test `wt config show --doctor` when commit generation is not configured+/// Test `wt config show --full` when commit generation is not configured#[test]-fn test_config_show_doctor_not_configured() {- let repo = TestRepo::new();+fn test_config_show_full_not_configured() {+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create isolated config directorylet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -378,11 +325,12 @@ fn test_config_show_doctor_not_configured() {settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&mut cmd);+ repo.configure_mock_commands(&mut cmd);// Override WORKTRUNK_CONFIG_PATH to point to our test configcmd.env("WORKTRUNK_CONFIG_PATH", &config_path);cmd.arg("config").arg("show")- .arg("--doctor")+ .arg("--full").current_dir(repo.root_path());set_temp_home_env(&mut cmd, temp_home.path());@@ -390,12 +338,15 @@ fn test_config_show_doctor_not_configured() {});}-/// Test `wt config show --doctor` when commit generation command doesn't exist+/// Test `wt config show --full` when commit generation command doesn't exist#[test]-fn test_config_show_doctor_command_not_found() {- let repo = TestRepo::new();+fn test_config_show_full_command_not_found() {+ let mut repo = TestRepo::new();let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create isolated config directorylet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -415,11 +366,12 @@ args = ["-m", "test-model"]settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&mut cmd);+ repo.configure_mock_commands(&mut cmd);// Override WORKTRUNK_CONFIG_PATH to point to our test configcmd.env("WORKTRUNK_CONFIG_PATH", &config_path);cmd.arg("config").arg("show")- .arg("--doctor")+ .arg("--full").current_dir(repo.root_path());set_temp_home_env(&mut cmd, temp_home.path());diff --git a/tests/integration_tests/internal_flag.rs b/tests/integration_tests/internal_flag.rsindex 7e6823350..9314ac5cf 100644--- a/tests/integration_tests/internal_flag.rs+++ b/tests/integration_tests/internal_flag.rs@@ -45,10 +45,13 @@ fn test_list_with_internal_flag() {/// Config show doesn't emit directives, but should work fine with --internal.#[test]fn test_config_show_with_internal_flag() {- let repo = TestRepo::new();+ let mut repo = TestRepo::new();repo.commit("Initial commit");let temp_home = TempDir::new().unwrap();+ // Setup mock gh/glab for deterministic BINARIES output+ repo.setup_mock_ci_tools_unauthenticated();+// Create fake global config at XDG pathlet global_config_dir = temp_home.path().join(".config").join("worktrunk");fs::create_dir_all(&global_config_dir).unwrap();@@ -63,6 +66,7 @@ fn test_config_show_with_internal_flag() {settings.bind(|| {let mut cmd = wt_command();repo.clean_cli_env(&mut cmd);+ repo.configure_mock_commands(&mut cmd);set_temp_home_env(&mut cmd, temp_home.path());cmd.arg("--internal").arg("config")diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_command_not_found.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snapsimilarity index 86%rename from tests/snapshots/integration__integration_tests__config_show__config_show_doctor_command_not_found.snaprename to tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snapindex 5375a2569..0fb1a6ee7 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_command_not_found.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap@@ -5,7 +5,7 @@ info:args:- config- show- - "--doctor"+ - "--full"env:APPDATA: "[TEST_CONFIG_HOME]"CLICOLOR_FORCE: "1"@@ -18,6 +18,7 @@ info:HOME: "[TEST_HOME]"LANG: CLC_ALL: C+ PATH: "[PATH]"SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"@@ -38,10 +39,15 @@ exit_code: 0[36mPROJECT CONFIG[39m [REPO]/.config/wt.toml💡 [2mNot found[22m+[36mSHELL INTEGRATION[39m⚪ [2mSkipped bash; ~/.bashrc not found[22m⚪ [2mSkipped zsh; ~/.zshrc not found[22m⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m+[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39m+⚪ Running diagnostic checks...🔄 [36mTesting commit generation with [1mnonexistent-llm-command-12345 -m test-model[22m[39mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_not_configured.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snapsimilarity index 81%rename from tests/snapshots/integration__integration_tests__config_show__config_show_doctor_not_configured.snaprename to tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snapindex e99f05dcb..6b5c5f838 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_doctor_not_configured.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap@@ -5,7 +5,7 @@ info:args:- config- show- - "--doctor"+ - "--full"env:APPDATA: "[TEST_CONFIG_HOME]"CLICOLOR_FORCE: "1"@@ -18,6 +18,7 @@ info:HOME: "[TEST_HOME]"LANG: CLC_ALL: C+ PATH: "[PATH]"SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"@@ -34,10 +35,15 @@ exit_code: 0[36mPROJECT CONFIG[39m [REPO]/.config/wt.toml💡 [2mNot found[22m+[36mSHELL INTEGRATION[39m⚪ [2mSkipped bash; ~/.bashrc not found[22m⚪ [2mSkipped zsh; ~/.zshrc not found[22m⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m+[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39m+⚪ Running diagnostic checks...🟡 [33mCommit generation is not configured[39mdiff --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.snapnew file mode 100644index 000000000..871f55138--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap@@ -0,0 +1,44 @@+---+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: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ 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+💡 [2mNot found[22m++[36mSHELL INTEGRATION[39m+⚪ [2mSkipped bash; ~/.bashrc not found[22m+⚪ [2mSkipped zsh; ~/.zshrc not found[22m+⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39mdiff --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.snapnew file mode 100644index 000000000..2c492946c--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap@@ -0,0 +1,37 @@+---+source: tests/integration_tests/config_show.rs+info:+ program: wt+ args:+ - config+ - show+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ 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 }}"++[36m[2mPROJECT CONFIG[22m Not in a git repository[39m++[36mSHELL INTEGRATION[39m+⚪ [2mSkipped bash; ~/.bashrc not found[22m+⚪ [2mSkipped zsh; ~/.zshrc not found[22m+⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39mdiff --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 35d5652ea..84c32e4aa 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@@ -17,6 +17,7 @@ info:HOME: "[TEST_HOME]"LANG: CLC_ALL: C+ PATH: "[PATH]"SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"@@ -34,8 +35,13 @@ exit_code: 0[36mPROJECT CONFIG[39m [REPO]/.config/wt.toml💡 [2mNot found[22m+[36mSHELL INTEGRATION[39m💡 [2mNot configured shell extension & completions for bash @ ~/.bashrc[22m⚪ Already configured shell extension & completions for [1mzsh[22m @ ~/.zshrc⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m💡 [2m[90mwt config shell install[39m enables shell integration[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39mdiff --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.snapnew file mode 100644index 000000000..caa512b73--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap@@ -0,0 +1,46 @@+---+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: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ 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+🟡 [33mUnknown key [1mpost-merge-command[22m will be ignored[39m+[107m [0m [1m[36m[post-merge-command]+[107m [0m deploy = [32m"task deploy"++[36mSHELL INTEGRATION[39m+⚪ [2mSkipped bash; ~/.bashrc not found[22m+⚪ [2mSkipped zsh; ~/.zshrc not found[22m+⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39mdiff --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.snapnew file mode 100644index 000000000..fd5baff49--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.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: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+[36mUSER CONFIG[39m ~/.config/worktrunk/config.toml+🟡 [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"++[36mPROJECT CONFIG[39m [REPO]/.config/wt.toml+💡 [2mNot found[22m++[36mSHELL INTEGRATION[39m+⚪ [2mSkipped bash; ~/.bashrc not found[22m+⚪ [2mSkipped zsh; ~/.zshrc not found[22m+⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39mdiff --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.snapnew file mode 100644index 000000000..ac46f200d--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap@@ -0,0 +1,50 @@+---+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: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ 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 }}"+[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"++[36mSHELL INTEGRATION[39m+⚪ [2mSkipped bash; ~/.bashrc not found[22m+⚪ [2mSkipped zsh; ~/.zshrc not found[22m+⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39mdiff --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 a82a43e33..61dcf0c4d 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@@ -17,6 +17,7 @@ info:HOME: "[TEST_HOME]"LANG: CLC_ALL: C+ PATH: "[PATH]"SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"@@ -34,6 +35,11 @@ exit_code: 0[36mPROJECT CONFIG[39m [REPO]/.config/wt.toml💡 [2mNot found[22m+[36mSHELL INTEGRATION[39m⚪ Already configured shell extension & completions for [1mzsh[22m @ ~/.zshrc⚪ [2mSkipped bash; ~/.bashrc not found[22m⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39mdiff --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 81581a302..d0da06b9e 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@@ -17,6 +17,7 @@ info:HOME: "[TEST_HOME]"LANG: CLC_ALL: C+ PATH: "[PATH]"SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"@@ -34,8 +35,13 @@ exit_code: 0[36mPROJECT CONFIG[39m [REPO]/.config/wt.toml💡 [2mNot found[22m+[36mSHELL INTEGRATION[39m⚪ Already configured shell extension & completions for [1mzsh[22m @ ~/.zshrc🟡 [33mCompletions won't work; add to ~/.zshrc before the wt line:[39m[107m [0m autoload -Uz compinit && compinit⚪ [2mSkipped bash; ~/.bashrc not found[22m⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39mdiff --git a/tests/snapshots/integration__integration_tests__help__help_config_show.snap b/tests/snapshots/integration__integration_tests__help__help_config_show.snapindex 45190e004..40ed4e6f4 100644--- a/tests/snapshots/integration__integration_tests__help__help_config_show.snap+++ b/tests/snapshots/integration__integration_tests__help__help_config_show.snap@@ -23,7 +23,7 @@ wt config show - Show configuration files & locationsUsage: [1m[36mwt config show[0m [36m[OPTIONS][1m[32mOptions:- [1m[36m--doctor+ [1m[36m--fullTest commit generation pipeline[1m[36m-h[0m, [1m[36m--help@@ -44,11 +44,11 @@ and project config ([2m.config/wt.toml[0m).If a config file doesn't exist, shows defaults that would be used.-[32mDoctor mode+[32mFull diagnostics-Use [2m--doctor[0m to test commit generation with a synthetic diff:+Use [2m--full[0m to test commit generation with a synthetic diff:- [2mwt config show --doctor+ [2mwt config show --fullThis verifies that the LLM command is configured correctly and can generatecommit messages.diff --git a/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap b/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snapindex 73b397088..21e7081c8 100644--- a/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap+++ b/tests/snapshots/integration__integration_tests__internal_flag__config_show_with_internal_flag.snap@@ -18,6 +18,7 @@ info:HOME: "[TEST_HOME]"LANG: CLC_ALL: C+ PATH: "[PATH]"SOURCE_DATE_EPOCH: "1735776000"USERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"@@ -34,6 +35,11 @@ exit_code: 0[36mPROJECT CONFIG[39m [REPO]/.config/wt.toml💡 [2mNot found[22m+[36mSHELL INTEGRATION[39m⚪ [2mSkipped bash; ~/.bashrc not found[22m⚪ [2mSkipped zsh; ~/.zshrc not found[22m⚪ [2mSkipped fish; ~/.config/fish/conf.d not found[22m++[36mBINARIES[39m+🟡 [33m[1mgh[22m installed but not authenticated; run [90mgh auth login[39m[39m+🟡 [33m[1mglab[22m installed but not authenticated; run [90mglab auth login[39m[39m