Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
feat: add Claude Code section to `wt config show` (#833)
Maximilian Roos3490fb338e5d
diff --git a/src/commands/config/show.rs b/src/commands/config/show.rsindex 1ec59b400..598cda16d 100644--- a/src/commands/config/show.rs+++ b/src/commands/config/show.rs@@ -45,6 +45,10 @@ pub fn handle_config_show(full: bool) -> anyhow::Result<()> {// Render shell integration statusrender_shell_status(&mut show_output)?;+ // Render Claude Code status+ show_output.push('\n');+ render_claude_code_status(&mut show_output)?;+// Run full diagnostic checks if requested (includes slow network calls)if full {show_output.push('\n');@@ -76,16 +80,19 @@ fn is_claude_available() -> bool {.unwrap_or(false)}-/// Check if the worktrunk plugin is installed in Claude Code-fn is_plugin_installed() -> bool {+/// Get the home directory for Claude Code config detection+fn get_home_dir() -> Option<PathBuf> {// Try HOME/USERPROFILE env vars first (for tests and explicit overrides), then fall back to dirs- let home = std::env::var("HOME")+ std::env::var("HOME").or_else(|_| std::env::var("USERPROFILE")).ok().map(PathBuf::from)- .or_else(dirs::home_dir);+ .or_else(dirs::home_dir)+}- let Some(home) = home else {+/// Check if the worktrunk plugin is installed in Claude Code+fn is_plugin_installed() -> bool {+ let Some(home) = get_home_dir() else {return false;};@@ -98,6 +105,24 @@ fn is_plugin_installed() -> bool {content.contains("\"worktrunk@worktrunk\"")}+/// Check if the statusline is configured in Claude Code settings+fn is_statusline_configured() -> bool {+ let Some(home) = get_home_dir() else {+ return false;+ };++ let settings_file = home.join(".claude/settings.json");+ let Ok(content) = std::fs::read_to_string(&settings_file) else {+ return false;+ };++ // Check if statusLine is configured with a wt command+ // Match "wt " at a word boundary in command context to avoid false positives+ // from unrelated JSON keys containing "wt" (e.g., "fontWeight", "tabWidth")+ content.contains("\"statusLine\"")+ && (content.contains("\"wt ") || content.contains(": \"wt ") || content.contains(":\"wt "))+}+/// Get the git version string (e.g., "2.47.1")fn get_git_version() -> Option<String> {let output = Cmd::new("git").arg("--version").run().ok()?;@@ -149,48 +174,70 @@ fn check_zsh_compinit_missing() -> bool {// ==================== Render Functions ====================-/// Render OTHER section (version, Claude plugin, hyperlinks)-fn render_runtime_info(out: &mut String) -> anyhow::Result<()> {- let cmd = crate::binary_name();- let version = version_str();+/// Render CLAUDE CODE section (plugin and statusline status)+fn render_claude_code_status(out: &mut String) -> anyhow::Result<()> {+ let claude_available = is_claude_available();- writeln!(out, "{}", format_heading("OTHER", None))?;+ writeln!(out, "{}", format_heading("CLAUDE CODE", None))?;- // Version info- writeln!(- out,- "{}",- info_message(cformat!("{cmd}: <bold>{version}</>"))- )?;- if let Some(git_version) = get_git_version() {+ if !claude_available {writeln!(out,"{}",- info_message(cformat!("git: <bold>{git_version}</>"))+ info_message(cformat!("<bold>claude</> CLI not installed")))?;+ return Ok(());}- // Claude Code plugin status+ // Plugin statuslet plugin_installed = is_plugin_installed();- let claude_available = is_claude_available();-if plugin_installed {- writeln!(out, "{}", success_message("Claude Code plugin installed"))?;- } else if claude_available {+ writeln!(out, "{}", success_message("Plugin installed"))?;+ } else {writeln!(out,"{}",- hint_message("Claude Code plugin not installed. To install, run:")+ hint_message("Plugin not installed. To install, run:"))?;let install_commands = "claude plugin marketplace add max-sixty/worktrunk\nclaude plugin install worktrunk@worktrunk";writeln!(out, "{}", format_bash_with_gutter(install_commands))?;+ }++ // Statusline status+ let statusline_configured = is_statusline_configured();+ if statusline_configured {+ writeln!(out, "{}", success_message("Statusline configured"))?;} else {writeln!(out,"{}",- hint_message(cformat!(- "Claude Code plugin not installed (<bold>claude</> not found)"- ))+ hint_message(+ "Statusline not configured. See https://worktrunk.dev/claude-code/#statusline"+ )+ )?;+ }++ Ok(())+}++/// Render OTHER section (version, hyperlinks)+fn render_runtime_info(out: &mut String) -> anyhow::Result<()> {+ let cmd = crate::binary_name();+ let version = version_str();++ writeln!(out, "{}", format_heading("OTHER", None))?;++ // Version info+ writeln!(+ out,+ "{}",+ info_message(cformat!("{cmd}: <bold>{version}</>"))+ )?;+ if let Some(git_version) = get_git_version() {+ writeln!(+ out,+ "{}",+ info_message(cformat!("git: <bold>{git_version}</>")))?;}diff --git a/tests/common/mod.rs b/tests/common/mod.rsindex 46695b624..589469851 100644--- a/tests/common/mod.rs+++ b/tests/common/mod.rs@@ -1834,6 +1834,20 @@ impl TestRepo {.unwrap();}+ /// Setup the statusline as configured in Claude Code settings+ ///+ /// Creates the settings.json file with the wt statusline command.+ /// The temp_home must already be set up (via set_temp_home_env on the command).+ pub fn setup_statusline_configured(temp_home: &std::path::Path) {+ let claude_dir = temp_home.join(".claude");+ std::fs::create_dir_all(&claude_dir).unwrap();+ std::fs::write(+ claude_dir.join("settings.json"),+ r#"{"statusLine":{"type":"command","command":"wt list statusline --claude-code"}}"#,+ )+ .unwrap();+ }+/// Setup mock `gh` that returns configurable PR/CI data////// Use this for testing CI status parsing code. The mock returns JSON datadiff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rsindex 37aba0115..b9f46e722 100644--- a/tests/integration_tests/config_show.rs+++ b/tests/integration_tests/config_show.rs@@ -1207,7 +1207,8 @@ fn test_config_show_shell_integration_active(mut repo: TestRepo, temp_home: Tempfn test_config_show_plugin_installed(mut repo: TestRepo, temp_home: TempDir) {// Setup mock gh/glab for deterministic outputrepo.setup_mock_ci_tools_unauthenticated();- // Setup plugin as installed in Claude Code+ // Setup mock claude CLI and plugin as installed+ repo.setup_mock_claude_installed();TestRepo::setup_plugin_installed(temp_home.path());// Create global config@@ -1261,6 +1262,37 @@ fn test_config_show_claude_available_plugin_not_installed(mut repo: TestRepo, te});}+#[rstest]+fn test_config_show_statusline_configured(mut repo: TestRepo, temp_home: TempDir) {+ // Setup mock gh/glab for deterministic output+ repo.setup_mock_ci_tools_unauthenticated();+ // Setup mock claude CLI, plugin, AND statusline+ repo.setup_mock_claude_installed();+ TestRepo::setup_plugin_installed(temp_home.path());+ TestRepo::setup_statusline_configured(temp_home.path());++ // 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 = "../{{ repo }}.{{ branch }}"+"#,+ )+ .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());++ assert_cmd_snapshot!(cmd);+ });+}+/// Test that deprecated [commit-generation] section shows warning and creates migration file#[rstest]fn test_deprecated_commit_generation_section_shows_warning(repo: TestRepo, temp_home: TempDir) {diff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snapindex d53c92022..506234581 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snap@@ -49,10 +49,13 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m↳[22m [2mPlugin not installed. To install, run:[22m+[107m [0m [2m[0m[2m[34mclaude[0m[2m plugin marketplace add max-sixty/worktrunk+[107m [0m [2m[0m[2m[34mclaude[0m[2m plugin install worktrunk@worktrunk+[2m↳[22m [2mStatusline not configured. See https://worktrunk.dev/claude-code/#statusline[22m+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed. To install, run:[22m-[107m [0m [2m[0m[2m[34mclaude[0m[2m plugin marketplace add max-sixty/worktrunk-[107m [0m [2m[0m[2m[34mclaude[0m[2m plugin install worktrunk@worktrunk[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snapindex 4bc84f002..0e94edfd3 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap@@ -62,8 +62,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snapindex e0c9c03dc..07292bcf6 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap@@ -67,8 +67,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --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 a61f69c54..ea997b7c3 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@@ -49,8 +49,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snapindex 3771403fb..a8c630e2c 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap@@ -51,8 +51,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 4a0ae1537..b42c4cb2b 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@@ -53,6 +53,9 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mDIAGNOSTICS[39m[2m↳[22m [2mCI status requires GitHub or GitLab remote[22m[31m✗[39m [31mCommit generation failed ([1mnonexistent-llm-command-12345 -m test-model[22m)[39m@@ -64,5 +67,4 @@ exit_code: 0[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 176d8110c..f214f2ecc 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@@ -50,6 +50,9 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mDIAGNOSTICS[39m[2m↳[22m [2mCI status requires GitHub or GitLab remote[22m[2m↳[22m [2mCommit generation not configured[22m@@ -57,5 +60,4 @@ exit_code: 0[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 ba81ecce7..15fd42634 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@@ -49,8 +49,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 ba81ecce7..15fd42634 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@@ -49,8 +49,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snapindex 9bebd406c..da6dac68e 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snap@@ -55,8 +55,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snapindex 40c17e174..224bd23fd 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snap@@ -55,8 +55,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 ba81ecce7..15fd42634 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@@ -49,8 +49,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snapindex e348505fa..ba3d449de 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap@@ -49,8 +49,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 b431c8b94..5bd7927b8 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@@ -11,6 +11,8 @@ info:COLUMNS: "500"GIT_EDITOR: ""HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: CMOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"PATH: "[PATH]"RUST_LOG: warn@@ -41,8 +43,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 ffd776801..11667ed99 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@@ -53,8 +53,10 @@ exit_code: 0[2m↳[22m [2mTo configure, run [90mwt config shell install[39m[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snapindex 3d7f390e8..f98414a7c 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snap@@ -49,8 +49,11 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[32m✓[39m [32mPlugin installed[39m+[2m↳[22m [2mStatusline not configured. See https://worktrunk.dev/claude-code/#statusline[22m+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[32m✓[39m [32mClaude Code plugin installed[39m[2m○[22m Hyperlinks: [1minactive[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.snapindex 5e317ab5b..37b89d48b 100644--- 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@@ -49,8 +49,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_statusline_configured.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_statusline_configured.snapnew file mode 100644index 000000000..baefa7725--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_statusline_configured.snap@@ -0,0 +1,59 @@+---+source: tests/integration_tests/config_show.rs+info:+ program: wt+ args:+ - config+ - show+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ PATH: "[PATH]"+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ WT_TEST_DELAYED_STREAM_MS: "-1"+ WT_TEST_EPOCH: "1735776000"+ 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"../{{ repo }}.{{ branch }}"++[36mPROJECT CONFIG[39m _REPO_/.config/wt.toml+[2m↳[22m [2mNot found[22m++[36mSHELL INTEGRATION[39m+[33m▲[39m [33mShell integration not active[39m+[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m++[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m+[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m+[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m++[36mCLAUDE CODE[39m+[32m✓[39m [32mPlugin installed[39m+[32m✓[39m [32mStatusline configured[39m++[36mOTHER[39m+[2m○[22m wt: [1m[VERSION][22m+[2m○[22m git: [1m[VERSION][22m+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snapindex f013784eb..e41d14bda 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap@@ -53,8 +53,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snapindex c3b076a36..3cfc94540 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap@@ -65,8 +65,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --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 bb79d8c82..a18f35d64 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@@ -55,8 +55,10 @@ exit_code: 0[107m [0m [2m[0m[2m[34malias[0m[2m wt=[0m[2m[32m"git worktree"[0m[2m[2m↳[22m [2mIf `alias wt="git worktree"` 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+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_user_deleted_migration_shows_regenerate_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_user_deleted_migration_shows_regenerate_hint.snapindex 4661abba2..e51652c72 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_user_deleted_migration_shows_regenerate_hint.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_user_deleted_migration_shows_regenerate_hint.snap@@ -51,8 +51,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 d3d27eb3d..8678d5754 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@@ -51,8 +51,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 ab9fd9191..67c9a2c1a 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@@ -53,8 +53,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 a61f69c54..ea997b7c3 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@@ -49,8 +49,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 f6a302d94..8cae76c12 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@@ -55,8 +55,10 @@ exit_code: 0[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 dcdb6eb34..6b567fad6 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@@ -51,8 +51,10 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[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 00cb4bc13..9241e54ba 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@@ -53,8 +53,10 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped fish; ~/.config/fish/functions not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snap b/tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snapindex 08bdaaaa7..b8e802c68 100644--- a/tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snap+++ b/tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snap@@ -51,8 +51,10 @@ exit_code: 0[2m○[22m Fish integration found in deprecated location @ [1m~/.config/fish/conf.d/wt.fish[22m[2m↳[22m [2mTo migrate to [90m~/.config/fish/functions/wt.fish[39m, run [90mwt config shell install fish[39m[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snap b/tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snapindex da4b12355..9caa0bd9c 100644--- a/tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snap+++ b/tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snap@@ -51,8 +51,10 @@ exit_code: 0[2m○[22m [2mSkipped bash; ~/.bashrc not found[22m[2m○[22m [2mSkipped zsh; ~/.zshrc not found[22m+[36mCLAUDE CODE[39m+[2m○[22m [1mclaude[22m CLI not installed+[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22m[2m○[22m git: [1m[VERSION][22m-[2m↳[22m [2mClaude Code plugin not installed ([1mclaude[22m not found)[22m[2m○[22m Hyperlinks: [1minactive[22m