Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

feat(config): add [remove] delete-branch config option (#2589)

Worktrunk Bot1d97bb7a2069
diff --git a/dev/config.example.toml b/dev/config.example.toml
index 545e23b2a..2072c7969 100644
--- a/dev/config.example.toml
+++ b/dev/config.example.toml
@@ -110,6 +110,13 @@
# verify = true # Run project hooks (--no-hooks to skip)
# ff = true # Fast-forward merge (--no-ff to create a merge commit instead)
#
+# ### Remove
+#
+# Persistent flag values for `wt remove`. Override on command line as needed.
+#
+# [remove]
+# delete-branch = true # Delete branch after removal (--no-delete-branch to keep)
+#
# ### Switch
#
# [switch]
@@ -149,6 +156,7 @@
# worktree-path = ".worktrees/{{ branch | sanitize }}"
# list.full = true
# merge.squash = false
+# remove.delete-branch = false
# pre-start.env = "cp .env.example .env"
# step.copy-ignored.exclude = [".repo-local-cache/"]
# aliases.deploy = "make deploy BRANCH={{ branch }}"
diff --git a/docs/content/config.md b/docs/content/config.md
index f1a796850..353869042 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -198,6 +198,15 @@ verify = true # Run project hooks (--no-hooks to skip)
ff = true # Fast-forward merge (--no-ff to create a merge commit instead)
```
+### Remove
+
+Persistent flag values for `wt remove`. Override on command line as needed.
+
+```toml
+[remove]
+delete-branch = true # Delete branch after removal (--no-delete-branch to keep)
+```
+
### Switch
```toml
@@ -244,6 +253,7 @@ Entries are keyed by project identifier (e.g., `github.com/user/repo`). Scalar v
worktree-path = ".worktrees/{{ branch | sanitize }}"
list.full = true
merge.squash = false
+remove.delete-branch = false
pre-start.env = "cp .env.example .env"
step.copy-ignored.exclude = [".repo-local-cache/"]
aliases.deploy = "make deploy BRANCH={{ branch }}"
diff --git a/skills/worktrunk/reference/config.md b/skills/worktrunk/reference/config.md
index 4bd070cba..1b42b446c 100644
--- a/skills/worktrunk/reference/config.md
+++ b/skills/worktrunk/reference/config.md
@@ -197,6 +197,15 @@ verify = true # Run project hooks (--no-hooks to skip)
ff = true # Fast-forward merge (--no-ff to create a merge commit instead)
```
+### Remove
+
+Persistent flag values for `wt remove`. Override on command line as needed.
+
+```toml
+[remove]
+delete-branch = true # Delete branch after removal (--no-delete-branch to keep)
+```
+
### Switch
```toml
@@ -243,6 +252,7 @@ Entries are keyed by project identifier (e.g., `github.com/user/repo`). Scalar v
worktree-path = ".worktrees/{{ branch | sanitize }}"
list.full = true
merge.squash = false
+remove.delete-branch = false
pre-start.env = "cp .env.example .env"
step.copy-ignored.exclude = [".repo-local-cache/"]
aliases.deploy = "make deploy BRANCH={{ branch }}"
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index ba50bfde1..42d99b82c 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -404,7 +404,15 @@ pub(crate) struct RemoveArgs {
pub(crate) branches: Vec<String>,
/// Keep branch after removal
- #[arg(long = "no-delete-branch", action = clap::ArgAction::SetFalse, default_value_t = true)]
+ #[arg(long = "no-delete-branch", overrides_with = "delete_branch")]
+ pub(crate) no_delete_branch: bool,
+
+ /// Delete branch after removal (overrides config `[remove] delete-branch = false`)
+ #[arg(
+ long = "delete-branch",
+ overrides_with = "no_delete_branch",
+ hide = true
+ )]
pub(crate) delete_branch: bool,
/// Delete unmerged branches
@@ -1699,6 +1707,15 @@ verify = true # Run project hooks (--no-hooks to skip)
ff = true # Fast-forward merge (--no-ff to create a merge commit instead)
```
+### Remove
+
+Persistent flag values for `wt remove`. Override on command line as needed.
+
+```toml
+[remove]
+delete-branch = true # Delete branch after removal (--no-delete-branch to keep)
+```
+
### Switch
```toml
@@ -1745,6 +1762,7 @@ Entries are keyed by project identifier (e.g., `github.com/user/repo`). Scalar v
worktree-path = ".worktrees/{{ branch | sanitize }}"
list.full = true
merge.squash = false
+remove.delete-branch = false
pre-start.env = "cp .env.example .env"
step.copy-ignored.exclude = [".repo-local-cache/"]
aliases.deploy = "make deploy BRANCH={{ branch }}"
diff --git a/src/config/mod.rs b/src/config/mod.rs
index a33a7bf61..35d3f777c 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -134,7 +134,7 @@ pub use unknown_tree::{
};
pub(crate) use user::LoadError;
pub use user::{
- CommitConfig, CommitGenerationConfig, CopyIgnoredConfig, ListConfig, MergeConfig,
+ CommitConfig, CommitGenerationConfig, CopyIgnoredConfig, ListConfig, MergeConfig, RemoveConfig,
ResolvedConfig, StageMode, StepConfig, SwitchConfig, SwitchPickerConfig, UserConfig,
UserProjectOverrides, config_path, default_config_path, default_system_config_path,
set_config_path, system_config_path, valid_user_config_keys,
diff --git a/src/config/user/accessors.rs b/src/config/user/accessors.rs
index 04b832dbc..f4182d071 100644
--- a/src/config/user/accessors.rs
+++ b/src/config/user/accessors.rs
@@ -12,8 +12,8 @@ use crate::config::expansion::expand_template;
use super::UserConfig;
use super::merge::Merge;
use super::sections::{
- CommitConfig, CommitGenerationConfig, CopyIgnoredConfig, ListConfig, MergeConfig, StepConfig,
- SwitchConfig, SwitchPickerConfig,
+ CommitConfig, CommitGenerationConfig, CopyIgnoredConfig, ListConfig, MergeConfig, RemoveConfig,
+ StepConfig, SwitchConfig, SwitchPickerConfig,
};
/// Default worktree path template
@@ -113,6 +113,14 @@ impl UserConfig {
self.merged_project_config(project, &self.merge, |config| &config.merge)
}
+ /// Returns the remove config for a specific project.
+ ///
+ /// Merges project-specific settings with global settings, where project
+ /// settings take precedence for fields that are set.
+ pub fn remove(&self, project: Option<&str>) -> RemoveConfig {
+ self.merged_project_config(project, &self.remove, |config| &config.remove)
+ }
+
/// Returns the switch config for a specific project.
///
/// Merges project-specific settings with global settings, where project
diff --git a/src/config/user/mod.rs b/src/config/user/mod.rs
index 624e05f7b..06a0234d4 100644
--- a/src/config/user/mod.rs
+++ b/src/config/user/mod.rs
@@ -28,8 +28,8 @@ pub use path::{
pub use resolved::ResolvedConfig;
pub use schema::valid_user_config_keys;
pub use sections::{
- CommitConfig, CommitGenerationConfig, CopyIgnoredConfig, ListConfig, MergeConfig, StageMode,
- StepConfig, SwitchConfig, SwitchPickerConfig, UserProjectOverrides,
+ CommitConfig, CommitGenerationConfig, CopyIgnoredConfig, ListConfig, MergeConfig, RemoveConfig,
+ StageMode, StepConfig, SwitchConfig, SwitchPickerConfig, UserProjectOverrides,
};
/// Describes a problem encountered during config loading. Each variant
@@ -314,6 +314,10 @@ pub struct UserConfig {
#[serde(default, skip_serializing_if = "super::is_default")]
pub merge: sections::MergeConfig,
+ /// Configuration for the `wt remove` command
+ #[serde(default, skip_serializing_if = "super::is_default")]
+ pub remove: sections::RemoveConfig,
+
/// Configuration for the `wt switch` command
#[serde(default, skip_serializing_if = "super::is_default")]
pub switch: sections::SwitchConfig,
diff --git a/src/config/user/resolved.rs b/src/config/user/resolved.rs
index 16f1c0d8c..620efac95 100644
--- a/src/config/user/resolved.rs
+++ b/src/config/user/resolved.rs
@@ -6,8 +6,8 @@
use super::UserConfig;
use super::sections::{
- CommitConfig, CommitGenerationConfig, ListConfig, MergeConfig, StepConfig, SwitchConfig,
- SwitchPickerConfig,
+ CommitConfig, CommitGenerationConfig, ListConfig, MergeConfig, RemoveConfig, StepConfig,
+ SwitchConfig, SwitchPickerConfig,
};
/// All resolved configuration for a specific project context.
@@ -28,6 +28,7 @@ use super::sections::{
pub struct ResolvedConfig {
pub list: ListConfig,
pub merge: MergeConfig,
+ pub remove: RemoveConfig,
pub commit: CommitConfig,
/// Resolved commit generation config
pub commit_generation: CommitGenerationConfig,
@@ -45,6 +46,7 @@ impl ResolvedConfig {
Self {
list: config.list(project),
merge: config.merge(project),
+ remove: config.remove(project),
commit: config.commit(project),
commit_generation: config.commit_generation(project),
switch_picker: config.switch_picker(project),
diff --git a/src/config/user/sections.rs b/src/config/user/sections.rs
index 2b2c5bf76..1c805f2b1 100644
--- a/src/config/user/sections.rs
+++ b/src/config/user/sections.rs
@@ -310,6 +310,29 @@ impl Merge for MergeConfig {
}
}
+/// Configuration for the `wt remove` command
+#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Default, JsonSchema)]
+pub struct RemoveConfig {
+ /// Delete the branch after removing the worktree (default: true)
+ #[serde(rename = "delete-branch", skip_serializing_if = "Option::is_none")]
+ pub delete_branch: Option<bool>,
+}
+
+impl RemoveConfig {
+ /// Delete the branch after removing the worktree (default: true)
+ pub fn delete_branch(&self) -> bool {
+ self.delete_branch.unwrap_or(true)
+ }
+}
+
+impl Merge for RemoveConfig {
+ fn merge_with(&self, other: &Self) -> Self {
+ Self {
+ delete_branch: other.delete_branch.or(self.delete_branch),
+ }
+ }
+}
+
/// Configuration for the `wt switch` interactive picker.
///
/// New format under `[switch.picker]`. Replaces the deprecated `[select]` section.
@@ -477,6 +500,9 @@ pub struct UserProjectOverrides {
#[serde(default, skip_serializing_if = "is_default")]
pub merge: MergeConfig,
+ #[serde(default, skip_serializing_if = "is_default")]
+ pub remove: RemoveConfig,
+
#[serde(default, skip_serializing_if = "is_default")]
pub switch: SwitchConfig,
diff --git a/src/config/user/tests.rs b/src/config/user/tests.rs
index a9b3b8fb3..3971d427e 100644
--- a/src/config/user/tests.rs
+++ b/src/config/user/tests.rs
@@ -472,6 +472,56 @@ fn test_merge_config_serde() {
assert_eq!(parsed.rebase, Some(false));
}
+#[test]
+fn test_remove_config_default_delete_branch_true() {
+ let config = RemoveConfig::default();
+ assert!(config.delete_branch());
+ assert_eq!(config.delete_branch, None);
+}
+
+#[test]
+fn test_remove_config_parse_delete_branch_false() {
+ let toml = r#"
+[remove]
+delete-branch = false
+"#;
+ let parsed = UserConfig::load_from_str(toml).unwrap();
+ assert_eq!(parsed.remove.delete_branch, Some(false));
+ assert!(!parsed.remove(None).delete_branch());
+}
+
+#[test]
+fn test_remove_config_project_override() {
+ let toml = r#"
+[remove]
+delete-branch = true
+
+[projects."github.com/user/repo".remove]
+delete-branch = false
+"#;
+ let parsed = UserConfig::load_from_str(toml).unwrap();
+ // Global default is preserved
+ assert!(parsed.remove(None).delete_branch());
+ // Project override wins
+ assert!(!parsed.remove(Some("github.com/user/repo")).delete_branch());
+}
+
+#[test]
+fn test_remove_config_merge() {
+ let base = RemoveConfig {
+ delete_branch: Some(true),
+ };
+ let override_config = RemoveConfig {
+ delete_branch: Some(false),
+ };
+ let merged = base.merge_with(&override_config);
+ assert_eq!(merged.delete_branch, Some(false));
+
+ // Empty override falls back to base
+ let merged = base.merge_with(&RemoveConfig::default());
+ assert_eq!(merged.delete_branch, Some(true));
+}
+
#[test]
fn test_skip_shell_integration_prompt_default_false() {
let config = UserConfig::default();
@@ -1956,8 +2006,8 @@ fn test_valid_user_config_keys_all_deserialize() {
"worktree-path" => {
scalar_lines.push(format!("{key} = \"test-value\""));
}
- "list" | "commit" | "merge" | "switch" | "step" | "select" | "commit-generation"
- | "aliases" => {
+ "list" | "commit" | "merge" | "remove" | "switch" | "step" | "select"
+ | "commit-generation" | "aliases" => {
// Table sections with minimal content
table_lines.push(format!("[{key}]"));
}
diff --git a/src/main.rs b/src/main.rs
index 60a4f8272..6de9be5c6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -869,16 +869,23 @@ fn handle_remove_command(args: RemoveArgs, yes: bool) -> anyhow::Result<()> {
UserConfig::load()
.context("Failed to load config")
.and_then(|config| {
+ let repo = Repository::current().context("Failed to remove worktree")?;
+
+ // CLI flags override config; otherwise fall through to [remove] delete-branch
+ // (defaults to true).
+ let project = repo.project_identifier().ok();
+ let cli_override = flag_pair(args.delete_branch, args.no_delete_branch);
+ let delete_branch =
+ cli_override.unwrap_or_else(|| config.remove(project.as_deref()).delete_branch());
+
// Validate conflicting flags
- if !args.delete_branch && args.force_delete {
+ if !delete_branch && args.force_delete {
return Err(worktrunk::git::GitError::Other {
- message: "Cannot use --force-delete with --no-delete-branch".into(),
+ message: "Cannot use --force-delete with delete-branch=false (set via --no-delete-branch or [remove] delete-branch = false)".into(),
}
.into());
}
- let repo = Repository::current().context("Failed to remove worktree")?;
-
// Resolve current worktree context for hook approval
let current_wt = repo.current_worktree();
let approve_worktree_path = current_wt.root()?;
@@ -914,7 +921,7 @@ fn handle_remove_command(args: RemoveArgs, yes: bool) -> anyhow::Result<()> {
let result = repo
.prepare_worktree_removal(
RemoveTarget::Current,
- BranchDeletionMode::from_flags(!args.delete_branch, args.force_delete),
+ BranchDeletionMode::from_flags(!delete_branch, args.force_delete),
args.force,
&config,
None,
@@ -949,7 +956,7 @@ fn handle_remove_command(args: RemoveArgs, yes: bool) -> anyhow::Result<()> {
&repo,
branches,
&config,
- !args.delete_branch,
+ !delete_branch,
args.force_delete,
args.force,
);
diff --git a/tests/integration_tests/remove.rs b/tests/integration_tests/remove.rs
index bee597cd3..0a514d58e 100644
--- a/tests/integration_tests/remove.rs
+++ b/tests/integration_tests/remove.rs
@@ -686,6 +686,82 @@ fn test_remove_no_delete_branch(mut repo: TestRepo) {
));
}
+/// `[remove] delete-branch = false` in user config makes `wt remove` keep the
+/// branch by default — equivalent to passing `--no-delete-branch` every time.
+#[rstest]
+fn test_remove_config_delete_branch_false_keeps_branch(mut repo: TestRepo) {
+ repo.write_test_config(
+ r#"[remove]
+delete-branch = false
+"#,
+ );
+ let _worktree_path = repo.add_worktree("feature-config-keep");
+
+ let output = repo
+ .wt_command()
+ .args(["remove", "--foreground", "feature-config-keep"])
+ .output()
+ .expect("wt remove should run");
+ assert!(
+ output.status.success(),
+ "wt remove failed: {}",
+ String::from_utf8_lossy(&output.stderr)
+ );
+
+ // Branch should still exist because config kept it.
+ let branches = repo
+ .git_command()
+ .args(["branch", "--list", "feature-config-keep"])
+ .run()
+ .unwrap()
+ .stdout;
+ assert!(
+ String::from_utf8_lossy(&branches).contains("feature-config-keep"),
+ "branch should be retained when [remove] delete-branch = false; got: {}",
+ String::from_utf8_lossy(&branches),
+ );
+}
+
+/// `--delete-branch` on the command line overrides
+/// `[remove] delete-branch = false` from config.
+#[rstest]
+fn test_remove_cli_delete_branch_overrides_config(mut repo: TestRepo) {
+ repo.write_test_config(
+ r#"[remove]
+delete-branch = false
+"#,
+ );
+ let _worktree_path = repo.add_worktree("feature-cli-override");
+
+ let output = repo
+ .wt_command()
+ .args([
+ "remove",
+ "--foreground",
+ "--delete-branch",
+ "feature-cli-override",
+ ])
+ .output()
+ .expect("wt remove should run");
+ assert!(
+ output.status.success(),
+ "wt remove failed: {}",
+ String::from_utf8_lossy(&output.stderr)
+ );
+
+ let branches = repo
+ .git_command()
+ .args(["branch", "--list", "feature-cli-override"])
+ .run()
+ .unwrap()
+ .stdout;
+ assert!(
+ !String::from_utf8_lossy(&branches).contains("feature-cli-override"),
+ "branch should be deleted when --delete-branch overrides config; got: {}",
+ String::from_utf8_lossy(&branches),
+ );
+}
+
#[rstest]
fn test_remove_no_delete_branch_unmerged(mut repo: TestRepo) {
// Create a worktree with an unmerged commit
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_create.snap b/tests/snapshots/integration__integration_tests__help__help_config_create.snap
index 0d2de7525..e78a14951 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_create.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_create.snap
@@ -20,13 +20,17 @@ info:
WORKTRUNK_APPROVALS_PATH: /nonexistent/wt/approvals.toml
WORKTRUNK_CONFIG_PATH: /nonexistent/wt/config.toml
WORKTRUNK_SYSTEM_CONFIG_PATH: /etc/xdg/worktrunk/config.toml
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
WORKTRUNK_TEST_NUSHELL_ENV: "0"
WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
---
success: true
exit_code: 0
@@ -171,6 +175,13 @@ Creates ~/.config/worktrunk/config.toml with the following content:
  # verify = true # Run project hooks (--no-hooks to skip)
  # ff = true # Fast-forward merge (--no-ff to create a merge commit instead)
  #
+  # ### Remove
+  #
+  # Persistent flag values for `wt remove`. Override on command line as needed.
+  #
+  # [remove]
+  # delete-branch = true # Delete branch after removal (--no-delete-branch to keep)
+  #
  # ### Switch
  #
  # [switch]
@@ -210,6 +221,7 @@ Creates ~/.config/worktrunk/config.toml with the following content:
  # worktree-path = ".worktrees/{{ branch | sanitize }}"
  # list.full = true
  # merge.squash = false
+  # remove.delete-branch = false
  # pre-start.env = "cp .env.example .env"
  # step.copy-ignored.exclude = [".repo-local-cache/"]
  # aliases.deploy = "make deploy BRANCH={{ branch }}"
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_long.snap b/tests/snapshots/integration__integration_tests__help__help_config_long.snap
index 779dd2a90..9a0516336 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_long.snap
@@ -19,13 +19,17 @@ info:
WORKTRUNK_APPROVALS_PATH: /nonexistent/wt/approvals.toml
WORKTRUNK_CONFIG_PATH: /nonexistent/wt/config.toml
WORKTRUNK_SYSTEM_CONFIG_PATH: /etc/xdg/worktrunk/config.toml
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
WORKTRUNK_TEST_NUSHELL_ENV: "0"
WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
---
success: true
exit_code: 0
@@ -219,6 +223,13 @@ Most flags are on by default. Set to false to change default behavior.
  verify = true # Run project hooks (--no-hooks to skip)
  ff = true # Fast-forward merge (--no-ff to create a merge commit instead)
+Remove
+
+Persistent flag values for wt remove. Override on command line as needed.
+
+  [remove]
+  delete-branch = true # Delete branch after removal (--no-delete-branch to keep)
+
Switch
  [switch]
@@ -258,6 +269,7 @@ Entries are keyed by project identifier (e.g., github.com/user/repo). Sc
  worktree-path = ".worktrees/{{ branch | sanitize }}"
  list.full = true
  merge.squash = false
+  remove.delete-branch = false
  pre-start.env = "cp .env.example .env"
  step.copy-ignored.exclude = [".repo-local-cache/"]
  aliases.deploy = "make deploy BRANCH={{ branch }}"
diff --git a/tests/snapshots/integration__integration_tests__remove__remove_conflicting_branch_flags.snap b/tests/snapshots/integration__integration_tests__remove__remove_conflicting_branch_flags.snap
index 60df40110..9cbc5d980 100644
--- a/tests/snapshots/integration__integration_tests__remove__remove_conflicting_branch_flags.snap
+++ b/tests/snapshots/integration__integration_tests__remove__remove_conflicting_branch_flags.snap
@@ -13,10 +13,15 @@ info:
COLUMNS: "500"
GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMON_DIR: ""
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
+ GIT_DIR: ""
GIT_EDITOR: ""
+ GIT_INDEX_FILE: ""
+ GIT_OBJECT_DIRECTORY: ""
GIT_TERMINAL_PROMPT: "0"
+ GIT_WORK_TREE: ""
HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
@@ -32,13 +37,17 @@ info:
WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
WORKTRUNK_TEST_NUSHELL_ENV: "0"
WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: false
@@ -46,4 +55,4 @@ exit_code: 1
----- stdout -----
----- stderr -----
-✗ Cannot use --force-delete with --no-delete-branch
+✗ Cannot use --force-delete with delete-branch=false (set via --no-delete-branch or [remove] delete-branch = false)