Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Add `wt config plugins claude install-statusline` (#1834)
Maximilian Roos9fa9cc3dde65
diff --git a/src/cli/config.rs b/src/cli/config.rsindex b0882076e..4d1608d51 100644--- a/src/cli/config.rs+++ b/src/cli/config.rs@@ -197,6 +197,11 @@ $ wt config plugins claude installRemove the plugin:```console$ wt config plugins claude uninstall+```++Configure the statusline:+```console+$ wt config plugins claude install-statusline```"#)]Claude {#[command(subcommand)]@@ -236,6 +241,25 @@ $ claude plugin uninstall worktrunk@worktrunk#[arg(short, long)]yes: bool,},++ /// Configure the Claude Code statusline+ #[command(+ name = "install-statusline",+ after_long_help = r#"Writes the statusline configuration to `~/.claude/settings.json`, setting:++```json+{"statusLine":{"type":"command","command":"wt list statusline --format=claude-code"}}+```++Preserves existing settings. Creates the `.claude/` directory and `settings.json` if needed.++Skips gracefully if the statusline is already configured."#+ )]+ InstallStatusline {+ /// Skip confirmation prompt+ #[arg(short, long)]+ yes: bool,+ },}#[derive(Subcommand)]diff --git a/src/commands/config/mod.rs b/src/commands/config/mod.rsindex 5e806c3b5..7284839f7 100644--- a/src/commands/config/mod.rs+++ b/src/commands/config/mod.rs@@ -12,7 +12,9 @@ mod update;// Re-export public functionspub use create::handle_config_create;pub use hints::{handle_hints_clear, handle_hints_get};-pub use plugins::{handle_claude_install, handle_claude_uninstall};+pub use plugins::{+ handle_claude_install, handle_claude_install_statusline, handle_claude_uninstall,+};pub use show::handle_config_show;pub use state::{handle_logs_get, handle_state_clear, handle_state_clear_all, handle_state_get,diff --git a/src/commands/config/plugins.rs b/src/commands/config/plugins.rsindex 450352439..8f100020a 100644--- a/src/commands/config/plugins.rs+++ b/src/commands/config/plugins.rs@@ -1,11 +1,13 @@//! Plugin management commands for AI coding tools.+use std::path::PathBuf;+use anyhow::{Context, bail};use color_print::cformat;use worktrunk::shell_exec::Cmd;use worktrunk::styling::{eprintln, info_message, progress_message, success_message};-use super::show::{is_claude_available, is_plugin_installed};+use super::show::{home_dir, is_claude_available, is_plugin_installed, is_statusline_configured};use crate::output::prompt::{PromptResponse, prompt_yes_no_preview};/// Handle `wt config plugins claude install`@@ -99,6 +101,81 @@ pub fn handle_claude_uninstall(yes: bool) -> anyhow::Result<()> {Ok(())}+/// Handle `wt config plugins claude install-statusline`+pub fn handle_claude_install_statusline(yes: bool) -> anyhow::Result<()> {+ if is_statusline_configured() {+ eprintln!("{}", info_message("Statusline already configured"));+ return Ok(());+ }++ let settings_path = require_settings_path()?;++ if !yes {+ match prompt_yes_no_preview(+ &cformat!("Configure statusline for <bold>Claude Code</>?"),+ || {+ eprintln!(+ "{}",+ worktrunk::styling::format_with_gutter(+ r#"{+ "statusLine": {+ "type": "command",+ "command": "wt list statusline --format=claude-code"+ }+}"#,+ None,+ )+ );+ },+ )? {+ PromptResponse::Accepted => {}+ PromptResponse::Declined => return Ok(()),+ }+ }++ // Ensure parent directory exists+ if let Some(parent) = settings_path.parent() {+ std::fs::create_dir_all(parent).context("Failed to create .claude directory")?;+ }++ // Read existing settings or start with empty object+ let mut settings: serde_json::Map<String, serde_json::Value> = if settings_path.exists() {+ let content =+ std::fs::read_to_string(&settings_path).context("Failed to read settings.json")?;+ if content.trim().is_empty() {+ serde_json::Map::new()+ } else {+ serde_json::from_str(&content).context("Failed to parse settings.json")?+ }+ } else {+ serde_json::Map::new()+ };++ // Merge in the statusLine config+ settings.insert(+ "statusLine".to_string(),+ serde_json::json!({+ "type": "command",+ "command": "wt list statusline --format=claude-code"+ }),+ );++ let json = serde_json::to_string_pretty(&settings).context("Failed to serialize settings")?;+ std::fs::write(&settings_path, json + "\n").context("Failed to write settings.json")?;++ eprintln!("{}", success_message("Statusline configured"));++ Ok(())+}++/// Get the path to `~/.claude/settings.json`, or bail if home dir is unavailable+fn require_settings_path() -> anyhow::Result<PathBuf> {+ let Some(home) = home_dir() else {+ bail!("Could not determine home directory");+ };+ Ok(home.join(".claude/settings.json"))+}+/// Bail if `claude` CLI is not availablefn require_claude_cli() -> anyhow::Result<()> {if is_claude_available() {diff --git a/src/commands/config/show.rs b/src/commands/config/show.rsindex 77cc4f87d..1e51ef2a0 100644--- a/src/commands/config/show.rs+++ b/src/commands/config/show.rs@@ -90,7 +90,7 @@ pub(super) fn is_claude_available() -> bool {}/// Get the home directory for Claude Code config detection-fn home_dir() -> Option<PathBuf> {+pub(super) fn home_dir() -> Option<PathBuf> {// Try HOME/USERPROFILE env vars first (for tests and explicit overrides), then fall back to dirsstd::env::var("HOME").or_else(|_| std::env::var("USERPROFILE"))@@ -115,7 +115,7 @@ pub(super) fn is_plugin_installed() -> bool {}/// Check if the statusline is configured in Claude Code settings-fn is_statusline_configured() -> bool {+pub(super) fn is_statusline_configured() -> bool {let Some(home) = home_dir() else {return false;};@@ -210,9 +210,9 @@ fn render_claude_code_status(out: &mut String) -> anyhow::Result<()> {writeln!(out,"{}",- hint_message(- "Statusline not configured. See https://worktrunk.dev/claude-code/#statusline"- )+ hint_message(cformat!(+ "Statusline not configured. To configure, run <underline>wt config plugins claude install-statusline</>"+ )))?;}diff --git a/src/commands/mod.rs b/src/commands/mod.rsindex 7111620fa..49a0ba0c3 100644--- a/src/commands/mod.rs+++ b/src/commands/mod.rs@@ -27,10 +27,11 @@ pub(crate) mod worktree;pub(crate) use alias::{AliasOptions, step_alias};pub(crate) use config::{- handle_claude_install, handle_claude_uninstall, handle_config_create, handle_config_show,- handle_config_update, handle_hints_clear, handle_hints_get, handle_logs_get,- handle_state_clear, handle_state_clear_all, handle_state_get, handle_state_set,- handle_state_show, handle_vars_clear, handle_vars_get, handle_vars_list, handle_vars_set,+ handle_claude_install, handle_claude_install_statusline, handle_claude_uninstall,+ handle_config_create, handle_config_show, handle_config_update, handle_hints_clear,+ handle_hints_get, handle_logs_get, handle_state_clear, handle_state_clear_all,+ handle_state_get, handle_state_set, handle_state_show, handle_vars_clear, handle_vars_get,+ handle_vars_list, handle_vars_set,};pub(crate) use configure_shell::{handle_configure_shell, handle_show_theme, handle_unconfigure_shell,diff --git a/src/main.rs b/src/main.rsindex b0b00414e..9725a5cb9 100644--- a/src/main.rs+++ b/src/main.rs@@ -47,14 +47,15 @@ use commands::repository_ext::RepositoryCliExt;use commands::worktree::{BranchDeletionMode, handle_no_ff_merge, handle_push};use commands::{MergeOptions, OperationMode, RebaseResult, RemoveTarget, SquashResult, SwitchOptions,- add_approvals, clear_approvals, handle_claude_install, handle_claude_uninstall,- handle_completions, handle_config_create, handle_config_show, handle_config_update,- handle_configure_shell, handle_hints_clear, handle_hints_get, handle_hook_show, handle_init,- handle_list, handle_logs_get, handle_merge, handle_promote, handle_rebase, handle_show_theme,- handle_squash, handle_state_clear, handle_state_clear_all, handle_state_get, handle_state_set,- handle_state_show, handle_switch, handle_unconfigure_shell, handle_vars_clear, handle_vars_get,- handle_vars_list, handle_vars_set, resolve_worktree_arg, run_hook, step_commit,- step_copy_ignored, step_diff, step_eval, step_for_each, step_prune, step_relocate,+ add_approvals, clear_approvals, handle_claude_install, handle_claude_install_statusline,+ handle_claude_uninstall, handle_completions, handle_config_create, handle_config_show,+ handle_config_update, handle_configure_shell, handle_hints_clear, handle_hints_get,+ handle_hook_show, handle_init, handle_list, handle_logs_get, handle_merge, handle_promote,+ handle_rebase, handle_show_theme, handle_squash, handle_state_clear, handle_state_clear_all,+ handle_state_get, handle_state_set, handle_state_show, handle_switch, handle_unconfigure_shell,+ handle_vars_clear, handle_vars_get, handle_vars_list, handle_vars_set, resolve_worktree_arg,+ run_hook, step_commit, step_copy_ignored, step_diff, step_eval, step_for_each, step_prune,+ step_relocate,};use output::handle_remove_output;@@ -479,6 +480,9 @@ fn handle_plugins_command(action: ConfigPluginsCommand) -> anyhow::Result<()> {ConfigPluginsCommand::Claude { action } => match action {ConfigPluginsClaudeCommand::Install { yes } => handle_claude_install(yes),ConfigPluginsClaudeCommand::Uninstall { yes } => handle_claude_uninstall(yes),+ ConfigPluginsClaudeCommand::InstallStatusline { yes } => {+ handle_claude_install_statusline(yes)+ }},}}diff --git a/tests/integration_tests/config_show.rs b/tests/integration_tests/config_show.rsindex 9f5c7875a..4ab1c8fd5 100644--- a/tests/integration_tests/config_show.rs+++ b/tests/integration_tests/config_show.rs@@ -2809,6 +2809,110 @@ fn test_plugins_claude_uninstall_not_installed(mut repo: TestRepo, temp_home: Te});}+// ==================== Plugin Install-Statusline Tests ====================++#[rstest]+fn test_plugins_claude_install_statusline(repo: TestRepo, temp_home: TempDir) {+ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);+ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.args(["config", "plugins", "claude", "install-statusline", "--yes"])+ .current_dir(repo.root_path());+ set_temp_home_env(&mut cmd, temp_home.path());++ assert_cmd_snapshot!(cmd);++ // Verify the file was written correctly+ let settings_path = temp_home.path().join(".claude/settings.json");+ let content = fs::read_to_string(&settings_path).unwrap();+ let parsed: serde_json::Value = serde_json::from_str(&content).unwrap();+ assert_eq!(+ parsed["statusLine"]["command"],+ "wt list statusline --format=claude-code"+ );+ });+}++#[rstest]+fn test_plugins_claude_install_statusline_already_configured(repo: TestRepo, temp_home: TempDir) {+ TestRepo::setup_statusline_configured(temp_home.path());++ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);+ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.args(["config", "plugins", "claude", "install-statusline", "--yes"])+ .current_dir(repo.root_path());+ set_temp_home_env(&mut cmd, temp_home.path());++ assert_cmd_snapshot!(cmd);+ });+}++#[rstest]+fn test_plugins_claude_install_statusline_preserves_existing(repo: TestRepo, temp_home: TempDir) {+ // Write existing settings with other keys+ let claude_dir = temp_home.path().join(".claude");+ fs::create_dir_all(&claude_dir).unwrap();+ fs::write(+ claude_dir.join("settings.json"),+ r#"{"existingKey":"existingValue"}"#,+ )+ .unwrap();++ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);+ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.args(["config", "plugins", "claude", "install-statusline", "--yes"])+ .current_dir(repo.root_path());+ set_temp_home_env(&mut cmd, temp_home.path());++ assert_cmd_snapshot!(cmd);++ // Verify existing keys are preserved+ let settings_path = temp_home.path().join(".claude/settings.json");+ let content = fs::read_to_string(&settings_path).unwrap();+ let parsed: serde_json::Value = serde_json::from_str(&content).unwrap();+ assert_eq!(parsed["existingKey"], "existingValue");+ assert_eq!(+ parsed["statusLine"]["command"],+ "wt list statusline --format=claude-code"+ );+ });+}++#[rstest]+fn test_plugins_claude_install_statusline_empty_file(repo: TestRepo, temp_home: TempDir) {+ // Write an empty settings.json (edge case: file exists but is empty)+ let claude_dir = temp_home.path().join(".claude");+ fs::create_dir_all(&claude_dir).unwrap();+ fs::write(claude_dir.join("settings.json"), "").unwrap();++ let settings = setup_snapshot_settings_with_home(&repo, &temp_home);+ settings.bind(|| {+ let mut cmd = wt_command();+ repo.configure_wt_cmd(&mut cmd);+ cmd.args(["config", "plugins", "claude", "install-statusline", "--yes"])+ .current_dir(repo.root_path());+ set_temp_home_env(&mut cmd, temp_home.path());++ assert_cmd_snapshot!(cmd);++ // Verify the file was written correctly despite starting empty+ let settings_path = temp_home.path().join(".claude/settings.json");+ let content = fs::read_to_string(&settings_path).unwrap();+ let parsed: serde_json::Value = serde_json::from_str(&content).unwrap();+ assert_eq!(+ parsed["statusLine"]["command"],+ "wt list statusline --format=claude-code"+ );+ });+}++// ==================== Plugin Command Failure Tests ====================+#[rstest]fn test_plugins_claude_install_command_fails(mut repo: TestRepo, temp_home: TempDir) {repo.setup_mock_ci_tools_unauthenticated();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 a975b5504..cd37b6d95 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@@ -60,7 +60,7 @@ exit_code: 0[36mCLAUDE CODE[39m[2m↳[22m [2mPlugin not installed. To install, run [4mwt config plugins claude install[24m[22m-[2m↳[22m [2mStatusline not configured. See https://worktrunk.dev/claude-code/#statusline[22m+[2m↳[22m [2mStatusline not configured. To configure, run [4mwt config plugins claude install-statusline[24m[22m[36mOTHER[39m[2m○[22m wt: [1m[VERSION][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 5a065bc98..11fb084ea 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@@ -60,7 +60,7 @@ exit_code: 0[36mCLAUDE CODE[39m[32m✓[39m [32mPlugin installed[39m-[2m↳[22m [2mStatusline not configured. See https://worktrunk.dev/claude-code/#statusline[22m+[2m↳[22m [2mStatusline not configured. To configure, run [4mwt config plugins claude install-statusline[24m[22m[36mOTHER[39m[2m○[22m wt: [1m[VERSION][22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline.snap b/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline.snapnew file mode 100644index 000000000..c44e8d682--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline.snap@@ -0,0 +1,48 @@+---+source: tests/integration_tests/config_show.rs+info:+ program: wt+ args:+ - config+ - plugins+ - claude+ - install-statusline+ - "--yes"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ NO_COLOR: ""+ PATH: "[PATH]"+ PSModulePath: ""+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"+ WORKTRUNK_TEST_EPOCH: "1735776000"+ WORKTRUNK_TEST_NUSHELL_ENV: "0"+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+[32m✓[39m [32mStatusline configured[39mdiff --git a/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_already_configured.snap b/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_already_configured.snapnew file mode 100644index 000000000..494323589--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_already_configured.snap@@ -0,0 +1,48 @@+---+source: tests/integration_tests/config_show.rs+info:+ program: wt+ args:+ - config+ - plugins+ - claude+ - install-statusline+ - "--yes"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ NO_COLOR: ""+ PATH: "[PATH]"+ PSModulePath: ""+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"+ WORKTRUNK_TEST_EPOCH: "1735776000"+ WORKTRUNK_TEST_NUSHELL_ENV: "0"+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+[2m○[22m Statusline already configureddiff --git a/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_empty_file.snap b/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_empty_file.snapnew file mode 100644index 000000000..c44e8d682--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_empty_file.snap@@ -0,0 +1,48 @@+---+source: tests/integration_tests/config_show.rs+info:+ program: wt+ args:+ - config+ - plugins+ - claude+ - install-statusline+ - "--yes"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ NO_COLOR: ""+ PATH: "[PATH]"+ PSModulePath: ""+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"+ WORKTRUNK_TEST_EPOCH: "1735776000"+ WORKTRUNK_TEST_NUSHELL_ENV: "0"+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+[32m✓[39m [32mStatusline configured[39mdiff --git a/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_preserves_existing.snap b/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_preserves_existing.snapnew file mode 100644index 000000000..c44e8d682--- /dev/null+++ b/tests/snapshots/integration__integration_tests__config_show__plugins_claude_install_statusline_preserves_existing.snap@@ -0,0 +1,48 @@+---+source: tests/integration_tests/config_show.rs+info:+ program: wt+ args:+ - config+ - plugins+ - claude+ - install-statusline+ - "--yes"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "500"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ GIT_TERMINAL_PROMPT: "0"+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"+ NO_COLOR: ""+ PATH: "[PATH]"+ PSModulePath: ""+ RUST_LOG: warn+ SHELL: ""+ TERM: alacritty+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"+ WORKTRUNK_TEST_EPOCH: "1735776000"+ WORKTRUNK_TEST_NUSHELL_ENV: "0"+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+[32m✓[39m [32mStatusline configured[39m