Skip to content

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

feat: add Summary column to wt list --full (#1100)

Maximilian Roos91a505603a23
diff --git a/dev/config.example.toml b/dev/config.example.toml
index 35d976a1f..7c204721c 100644
--- a/dev/config.example.toml
+++ b/dev/config.example.toml
@@ -48,10 +48,11 @@
# Persistent flag values for `wt list`. Override on command line as needed.
#
# [list]
-# full = false # Show CI status and main…± diffstat columns (--full)
+# summary = false # Enable LLM branch summaries (requires [commit.generation])
+#
+# full = false # Show CI, main…± diffstat, and LLM summaries (--full)
# branches = false # Include branches without worktrees (--branches)
# remotes = false # Include remote-only branches (--remotes)
-# summary = false # AI branch summaries in picker tab 5 (requires [commit.generation])
#
# ### Commit
#
diff --git a/docs/content/claude-code.md b/docs/content/claude-code.md
index 0f5bfb5dc..8405fbf4d 100644
--- a/docs/content/claude-code.md
+++ b/docs/content/claude-code.md
@@ -37,11 +37,11 @@ The plugin tracks Claude sessions with status markers in `wt list`:
{% terminal(cmd="wt list") %}
<span class="cmd">wt list</span>
- <b>Branch</b> <b>Status</b> <b>HEAD±</b> <b>main↕</b> <b>Path</b> <b>Remote⇅</b> <b>Commit</b> <b>Age</b> <b>Message</b>
-@ main <span class=d>^</span><span class=d>⇡</span> . <span class=g>⇡1</span> <span class=d>33323bc1</span> <span class=d>1d</span> <span class=d>Initial commit</span>
-+ feature-api <span class=d>↑</span> 🤖 <span class=g>↑1</span> ../repo.feature-api <span class=d>70343f03</span> <span class=d>1d</span> <span class=d>Add REST API endpoints</span>
-+ review-ui <span class=c>?</span> <span class=d>↑</span> 💬 <span class=g>↑1</span> ../repo.review-ui <span class=d>a585d6ed</span> <span class=d>1d</span> <span class=d>Add dashboard component</span>
-+ wip-docs <span class=c>?</span> <span class=d>–</span> ../repo.wip-docs <span class=d>33323bc1</span> <span class=d>1d</span> <span class=d>Initial commit</span>
+ <b>Branch</b> <b>Status</b> <b>HEAD±</b> <b>main↕</b> <b>Remote⇅</b> <b>Path</b> <b>Commit</b> <b>Age</b> <b>Message</b>
+@ main <span class=d>^</span><span class=d>⇡</span> <span class=g>⇡1</span> . <span class=d>33323bc1</span> <span class=d>1d</span> <span class=d>Initial commit</span>
++ feature-api <span class=d>↑</span> 🤖 <span class=g>↑1</span> ../repo.feature-api <span class=d>70343f03</span> <span class=d>1d</span> <span class=d>Add REST API endpoints</span>
++ review-ui <span class=c>?</span> <span class=d>↑</span> 💬 <span class=g>↑1</span> ../repo.review-ui <span class=d>a585d6ed</span> <span class=d>1d</span> <span class=d>Add dashboard component</span>
++ wip-docs <span class=c>?</span> <span class=d>–</span> ../repo.wip-docs <span class=d>33323bc1</span> <span class=d>1d</span> <span class=d>Initial commit</span>
<span class=d>○</span> <span class=d>Showing 4 worktrees, 2 with changes, 2 ahead</span>
{% end %}
diff --git a/docs/content/config.md b/docs/content/config.md
index ef1dc6227..485bfc173 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -120,10 +120,11 @@ Persistent flag values for `wt list`. Override on command line as needed.
```toml
[list]
-full = false # Show CI status and main…± diffstat columns (--full)
+summary = false # Enable LLM branch summaries (requires [commit.generation])
+
+full = false # Show CI, main…± diffstat, and LLM summaries (--full)
branches = false # Include branches without worktrees (--branches)
remotes = false # Include remote-only branches (--remotes)
-summary = false # AI branch summaries in picker tab 5 (requires [commit.generation])
```
### Commit
diff --git a/docs/content/list.md b/docs/content/list.md
index edae48a5f..9f3bcb86e 100644
--- a/docs/content/list.md
+++ b/docs/content/list.md
@@ -10,7 +10,7 @@ group = "Commands"
List worktrees and their status.
-Shows uncommitted changes, divergence from the default branch and remote, and optional CI status.
+Shows uncommitted changes, divergence from the default branch and remote, and optional CI status and LLM summaries.
<figure class="demo">
<picture>
@@ -19,7 +19,7 @@ Shows uncommitted changes, divergence from the default branch and remote, and op
</picture>
</figure>
-The table renders progressively: branch names, paths, and commit hashes appear immediately, then status, divergence, and other columns fill in as background git operations complete. With `--full`, CI status fetches from the network — the table displays instantly and CI fills in as results arrive.
+The table renders progressively: branch names, paths, and commit hashes appear immediately, then status, divergence, and other columns fill in as background git operations complete. With `--full`, CI status fetches from the network and LLM summaries are generated — the table displays instantly and columns fill in as results arrive.
## Examples
@@ -38,7 +38,7 @@ List all worktrees:
<!-- END AUTO-GENERATED -->
-Include CI status and line diffs:
+Include CI status, line diffs, and LLM summaries:
<!-- ⚠️ AUTO-GENERATED from tests/snapshots/integration__integration_tests__list__readme_example_list_full.snap — edit source to update -->
@@ -85,10 +85,11 @@ $ wt list --format=json
| HEAD± | Uncommitted changes: +added -deleted lines |
| main↕ | Commits ahead/behind default branch |
| main…± | Line diffs since the merge-base with the default branch (`--full`) |
-| Path | Worktree directory |
+| Summary | LLM-generated branch summary (`--full` + `summary = true`, requires [`commit.generation`](@/config.md#commit)) (experimental) |
| Remote⇅ | Commits ahead/behind tracking branch |
-| URL | Dev server URL from project config (dimmed if port not listening) |
| CI | Pipeline status (`--full`) |
+| Path | Worktree directory |
+| URL | Dev server URL from project config (dimmed if port not listening) |
| Commit | Short hash (8 chars) |
| Age | Time since last commit |
| Message | Last commit message (truncated) |
@@ -111,6 +112,13 @@ The CI column shows GitHub/GitLab pipeline status:
CI indicators are clickable links to the PR or pipeline page. Any CI dot appears dimmed when there are unpushed local changes (stale status). PRs/MRs are checked first, then branch workflows/pipelines for branches with an upstream. Local-only branches show blank; remote-only branches (visible with `--remotes`) get CI status detection. Results are cached for 30-60 seconds; use `wt config state` to view or clear.
+### LLM summaries (experimental)
+
+With `--full`, `summary = true`, and a [`commit.generation`](@/config.md#commit) command configured, the Summary column shows an LLM-generated one-line description of each branch's changes relative to the default branch.
+
+Disabled by default — when enabled, each branch's diff is sent to the configured LLM for summarization. Results are cached until the diff changes.
+<!-- TODO: promote this feature more prominently once it's been tested in the wild -->
+
## Status symbols
The Status column has multiple subcolumns. Within each, only the first matching symbol is shown (listed in priority order):
@@ -297,7 +305,7 @@ Usage: <b><span class=c>wt list</span></b> <span class=c>[OPTIONS]</span>
Include remote branches
<b><span class=c>--full</span></b>
- Include CI status and diff analysis (slower)
+ Show CI, diff analysis, and LLM summaries
<b><span class=c>--progressive</span></b>
Show fast info immediately, update with slow info
diff --git a/docs/content/llm-commits.md b/docs/content/llm-commits.md
index 963f2f716..c5ed5b12b 100644
--- a/docs/content/llm-commits.md
+++ b/docs/content/llm-commits.md
@@ -93,9 +93,14 @@ $ wt step squash
See [`wt merge`](@/merge.md) and [`wt step`](@/step.md) for full documentation.
-## Picker summaries
+## Branch summaries (experimental)
-The `wt switch` [interactive picker](@/switch.md#interactive-picker) can show AI-generated branch summaries in preview tab 5. Summaries use the same `[commit.generation] command` and describe each branch's changes in a few sentences.
+With `summary = true` and a `[commit.generation] command` configured, Worktrunk generates LLM branch summaries — one-line descriptions of each branch's changes since the default branch.
+
+Summaries appear in:
+
+- **`wt switch`** [interactive picker](@/switch.md#interactive-picker) — preview tab 5
+- **`wt list --full`** — the Summary column (see [`wt list`](@/list.md#llm-summaries-experimental))
Enable in user config:
@@ -104,7 +109,7 @@ Enable in user config:
summary = true
```
-Summaries are generated in parallel across all worktrees when the picker opens, cached in `.git/wt-cache/summaries/`, and invalidated when the branch's diff changes.
+Disabled by default — when enabled, each branch's diff is sent to the configured LLM for summarization. Results are cached until the diff changes.
## Prompt templates
diff --git a/docs/content/switch.md b/docs/content/switch.md
index 088dab3f1..ddde8885a 100644
--- a/docs/content/switch.md
+++ b/docs/content/switch.md
@@ -103,7 +103,7 @@ When called without arguments, `wt switch` opens an interactive picker to browse
2. **log** — Recent commits; commits already on the default branch have dimmed hashes
3. **main…±** — Diff of changes since the merge-base with the default branch
4. **remote⇅** — Diff vs upstream tracking branch (ahead/behind)
-5. **summary** — AI-generated branch summary (requires `[list] summary = true` and `[commit.generation]`)
+5. **summary** — LLM-generated branch summary (requires `[list] summary = true` and `[commit.generation]`)
**Pager configuration:** The preview panel pipes diff output through git's pager. Override in user config:
diff --git a/docs/content/tips-patterns.md b/docs/content/tips-patterns.md
index b2b3cc31b..db0297528 100644
--- a/docs/content/tips-patterns.md
+++ b/docs/content/tips-patterns.md
@@ -143,6 +143,18 @@ wt list --full --branches
Shows PR/CI status for all branches, including those without worktrees. CI indicators are clickable links to the PR page.
+## LLM branch summaries
+
+With `summary = true` and [`commit.generation`](@/config.md#commit) configured, `wt list --full` shows an LLM-generated one-line summary for each branch. The same summaries appear in the `wt switch` picker (tab 5).
+
+```toml
+# ~/.config/worktrunk/config.toml
+[list]
+summary = true
+```
+
+Disabled by default — when enabled, each branch's diff is sent to the configured LLM for summarization. See [LLM Commits](@/llm-commits.md#branch-summaries-experimental) for details.
+
## JSON API
```bash
diff --git a/skills/worktrunk/reference/claude-code.md b/skills/worktrunk/reference/claude-code.md
index 54924d2e8..fd3ab6562 100644
--- a/skills/worktrunk/reference/claude-code.md
+++ b/skills/worktrunk/reference/claude-code.md
@@ -29,11 +29,11 @@ The plugin tracks Claude sessions with status markers in `wt list`:
{% terminal(cmd="wt list") %}
<span class="cmd">wt list</span>
- <b>Branch</b> <b>Status</b> <b>HEAD±</b> <b>main↕</b> <b>Path</b> <b>Remote⇅</b> <b>Commit</b> <b>Age</b> <b>Message</b>
-@ main <span class=d>^</span><span class=d>⇡</span> . <span class=g>⇡1</span> <span class=d>33323bc1</span> <span class=d>1d</span> <span class=d>Initial commit</span>
-+ feature-api <span class=d>↑</span> 🤖 <span class=g>↑1</span> ../repo.feature-api <span class=d>70343f03</span> <span class=d>1d</span> <span class=d>Add REST API endpoints</span>
-+ review-ui <span class=c>?</span> <span class=d>↑</span> 💬 <span class=g>↑1</span> ../repo.review-ui <span class=d>a585d6ed</span> <span class=d>1d</span> <span class=d>Add dashboard component</span>
-+ wip-docs <span class=c>?</span> <span class=d>–</span> ../repo.wip-docs <span class=d>33323bc1</span> <span class=d>1d</span> <span class=d>Initial commit</span>
+ <b>Branch</b> <b>Status</b> <b>HEAD±</b> <b>main↕</b> <b>Remote⇅</b> <b>Path</b> <b>Commit</b> <b>Age</b> <b>Message</b>
+@ main <span class=d>^</span><span class=d>⇡</span> <span class=g>⇡1</span> . <span class=d>33323bc1</span> <span class=d>1d</span> <span class=d>Initial commit</span>
++ feature-api <span class=d>↑</span> 🤖 <span class=g>↑1</span> ../repo.feature-api <span class=d>70343f03</span> <span class=d>1d</span> <span class=d>Add REST API endpoints</span>
++ review-ui <span class=c>?</span> <span class=d>↑</span> 💬 <span class=g>↑1</span> ../repo.review-ui <span class=d>a585d6ed</span> <span class=d>1d</span> <span class=d>Add dashboard component</span>
++ wip-docs <span class=c>?</span> <span class=d>–</span> ../repo.wip-docs <span class=d>33323bc1</span> <span class=d>1d</span> <span class=d>Initial commit</span>
<span class=d>○</span> <span class=d>Showing 4 worktrees, 2 with changes, 2 ahead</span>
{% end %}
diff --git a/skills/worktrunk/reference/config.md b/skills/worktrunk/reference/config.md
index 792dc7e97..83b4afb42 100644
--- a/skills/worktrunk/reference/config.md
+++ b/skills/worktrunk/reference/config.md
@@ -112,10 +112,11 @@ Persistent flag values for `wt list`. Override on command line as needed.
```toml
[list]
-full = false # Show CI status and main…± diffstat columns (--full)
+summary = false # Enable LLM branch summaries (requires [commit.generation])
+
+full = false # Show CI, main…± diffstat, and LLM summaries (--full)
branches = false # Include branches without worktrees (--branches)
remotes = false # Include remote-only branches (--remotes)
-summary = false # AI branch summaries in picker tab 5 (requires [commit.generation])
```
### Commit
diff --git a/skills/worktrunk/reference/list.md b/skills/worktrunk/reference/list.md
index e5212c68f..9e11e602f 100644
--- a/skills/worktrunk/reference/list.md
+++ b/skills/worktrunk/reference/list.md
@@ -2,9 +2,9 @@
List worktrees and their status.
-Shows uncommitted changes, divergence from the default branch and remote, and optional CI status.
+Shows uncommitted changes, divergence from the default branch and remote, and optional CI status and LLM summaries.
-The table renders progressively: branch names, paths, and commit hashes appear immediately, then status, divergence, and other columns fill in as background git operations complete. With `--full`, CI status fetches from the network — the table displays instantly and CI fills in as results arrive.
+The table renders progressively: branch names, paths, and commit hashes appear immediately, then status, divergence, and other columns fill in as background git operations complete. With `--full`, CI status fetches from the network and LLM summaries are generated — the table displays instantly and columns fill in as results arrive.
## Examples
@@ -19,7 +19,7 @@ List all worktrees:
<span class=d>○</span> <span class=d>Showing 3 worktrees, 1 with changes, 2 ahead, 1 column hidden</span>
{% end %}
-Include CI status and line diffs:
+Include CI status, line diffs, and LLM summaries:
{% terminal(cmd="wt list --full") %}
<b>Branch</b> <b>Status</b> <b>HEAD±</b> <b>main↕</b> <b>main…±</b> <b>Remote⇅</b> <b>CI</b> <b>Commit</b> <b>Age</b> <b>Message</b>
@@ -58,10 +58,11 @@ $ wt list --format=json
| HEAD± | Uncommitted changes: +added -deleted lines |
| main↕ | Commits ahead/behind default branch |
| main…± | Line diffs since the merge-base with the default branch (`--full`) |
-| Path | Worktree directory |
+| Summary | LLM-generated branch summary (`--full` + `summary = true`, requires [`commit.generation`](https://worktrunk.dev/config/#commit)) (experimental) |
| Remote⇅ | Commits ahead/behind tracking branch |
-| URL | Dev server URL from project config (dimmed if port not listening) |
| CI | Pipeline status (`--full`) |
+| Path | Worktree directory |
+| URL | Dev server URL from project config (dimmed if port not listening) |
| Commit | Short hash (8 chars) |
| Age | Time since last commit |
| Message | Last commit message (truncated) |
@@ -84,6 +85,13 @@ The CI column shows GitHub/GitLab pipeline status:
CI indicators are clickable links to the PR or pipeline page. Any CI dot appears dimmed when there are unpushed local changes (stale status). PRs/MRs are checked first, then branch workflows/pipelines for branches with an upstream. Local-only branches show blank; remote-only branches (visible with `--remotes`) get CI status detection. Results are cached for 30-60 seconds; use `wt config state` to view or clear.
+### LLM summaries (experimental)
+
+With `--full`, `summary = true`, and a [`commit.generation`](https://worktrunk.dev/config/#commit) command configured, the Summary column shows an LLM-generated one-line description of each branch's changes relative to the default branch.
+
+Disabled by default — when enabled, each branch's diff is sent to the configured LLM for summarization. Results are cached until the diff changes.
+<!-- TODO: promote this feature more prominently once it's been tested in the wild -->
+
## Status symbols
The Status column has multiple subcolumns. Within each, only the first matching symbol is shown (listed in priority order):
@@ -265,7 +273,7 @@ Usage: <b><span class=c>wt list</span></b> <span class=c>[OPTIONS]</span>
Include remote branches
<b><span class=c>--full</span></b>
- Include CI status and diff analysis (slower)
+ Show CI, diff analysis, and LLM summaries
<b><span class=c>--progressive</span></b>
Show fast info immediately, update with slow info
diff --git a/skills/worktrunk/reference/llm-commits.md b/skills/worktrunk/reference/llm-commits.md
index 1ea27da52..84c4f68b4 100644
--- a/skills/worktrunk/reference/llm-commits.md
+++ b/skills/worktrunk/reference/llm-commits.md
@@ -80,9 +80,14 @@ $ wt step squash
See [`wt merge`](https://worktrunk.dev/merge/) and [`wt step`](https://worktrunk.dev/step/) for full documentation.
-## Picker summaries
+## Branch summaries (experimental)
-The `wt switch` [interactive picker](https://worktrunk.dev/switch/#interactive-picker) can show AI-generated branch summaries in preview tab 5. Summaries use the same `[commit.generation] command` and describe each branch's changes in a few sentences.
+With `summary = true` and a `[commit.generation] command` configured, Worktrunk generates LLM branch summaries — one-line descriptions of each branch's changes since the default branch.
+
+Summaries appear in:
+
+- **`wt switch`** [interactive picker](https://worktrunk.dev/switch/#interactive-picker) — preview tab 5
+- **`wt list --full`** — the Summary column (see [`wt list`](https://worktrunk.dev/list/#llm-summaries-experimental))
Enable in user config:
@@ -91,7 +96,7 @@ Enable in user config:
summary = true
```
-Summaries are generated in parallel across all worktrees when the picker opens, cached in `.git/wt-cache/summaries/`, and invalidated when the branch's diff changes.
+Disabled by default — when enabled, each branch's diff is sent to the configured LLM for summarization. Results are cached until the diff changes.
## Prompt templates
diff --git a/skills/worktrunk/reference/switch.md b/skills/worktrunk/reference/switch.md
index ad4e738c8..5904e9556 100644
--- a/skills/worktrunk/reference/switch.md
+++ b/skills/worktrunk/reference/switch.md
@@ -81,7 +81,7 @@ When called without arguments, `wt switch` opens an interactive picker to browse
2. **log** — Recent commits; commits already on the default branch have dimmed hashes
3. **main…±** — Diff of changes since the merge-base with the default branch
4. **remote⇅** — Diff vs upstream tracking branch (ahead/behind)
-5. **summary** — AI-generated branch summary (requires `[list] summary = true` and `[commit.generation]`)
+5. **summary** — LLM-generated branch summary (requires `[list] summary = true` and `[commit.generation]`)
**Pager configuration:** The preview panel pipes diff output through git's pager. Override in user config:
diff --git a/skills/worktrunk/reference/tips-patterns.md b/skills/worktrunk/reference/tips-patterns.md
index 7d0a48643..9e73ff42a 100644
--- a/skills/worktrunk/reference/tips-patterns.md
+++ b/skills/worktrunk/reference/tips-patterns.md
@@ -133,6 +133,18 @@ wt list --full --branches
Shows PR/CI status for all branches, including those without worktrees. CI indicators are clickable links to the PR page.
+## LLM branch summaries
+
+With `summary = true` and [`commit.generation`](https://worktrunk.dev/config/#commit) configured, `wt list --full` shows an LLM-generated one-line summary for each branch. The same summaries appear in the `wt switch` picker (tab 5).
+
+```toml
+# ~/.config/worktrunk/config.toml
+[list]
+summary = true
+```
+
+Disabled by default — when enabled, each branch's diff is sent to the configured LLM for summarization. See [LLM Commits](https://worktrunk.dev/llm-commits/#branch-summaries-experimental) for details.
+
## JSON API
```bash
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index 04a0801bb..27ca3459e 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -330,7 +330,7 @@ When called without arguments, `wt switch` opens an interactive picker to browse
2. **log** — Recent commits; commits already on the default branch have dimmed hashes
3. **main…±** — Diff of changes since the merge-base with the default branch
4. **remote⇅** — Diff vs upstream tracking branch (ahead/behind)
-5. **summary** — AI-generated branch summary (requires `[list] summary = true` and `[commit.generation]`)
+5. **summary** — LLM-generated branch summary (requires `[list] summary = true` and `[commit.generation]`)
**Pager configuration:** The preview panel pipes diff output through git's pager. Override in user config:
@@ -463,10 +463,10 @@ To change which branch a worktree is on, use `git switch` inside that worktree.
/// List worktrees and their status
#[command(
- after_long_help = r#"Shows uncommitted changes, divergence from the default branch and remote, and optional CI status.
+ after_long_help = r#"Shows uncommitted changes, divergence from the default branch and remote, and optional CI status and LLM summaries.
<!-- demo: wt-list.gif 1600x900 -->
-The table renders progressively: branch names, paths, and commit hashes appear immediately, then status, divergence, and other columns fill in as background git operations complete. With `--full`, CI status fetches from the network — the table displays instantly and CI fills in as results arrive.
+The table renders progressively: branch names, paths, and commit hashes appear immediately, then status, divergence, and other columns fill in as background git operations complete. With `--full`, CI status fetches from the network and LLM summaries are generated — the table displays instantly and columns fill in as results arrive.
## Examples
@@ -477,7 +477,7 @@ List all worktrees:
$ wt list
```
-Include CI status and line diffs:
+Include CI status, line diffs, and LLM summaries:
<!-- wt list --full -->
```console
@@ -506,10 +506,11 @@ $ wt list --format=json
| HEAD± | Uncommitted changes: +added -deleted lines |
| main↕ | Commits ahead/behind default branch |
| main…± | Line diffs since the merge-base with the default branch (`--full`) |
-| Path | Worktree directory |
+| Summary | LLM-generated branch summary (`--full` + `summary = true`, requires [`commit.generation`](@/config.md#commit)) (experimental) |
| Remote⇅ | Commits ahead/behind tracking branch |
-| URL | Dev server URL from project config (dimmed if port not listening) |
| CI | Pipeline status (`--full`) |
+| Path | Worktree directory |
+| URL | Dev server URL from project config (dimmed if port not listening) |
| Commit | Short hash (8 chars) |
| Age | Time since last commit |
| Message | Last commit message (truncated) |
@@ -532,6 +533,13 @@ The CI column shows GitHub/GitLab pipeline status:
CI indicators are clickable links to the PR or pipeline page. Any CI dot appears dimmed when there are unpushed local changes (stale status). PRs/MRs are checked first, then branch workflows/pipelines for branches with an upstream. Local-only branches show blank; remote-only branches (visible with `--remotes`) get CI status detection. Results are cached for 30-60 seconds; use `wt config state` to view or clear.
+### LLM summaries (experimental)
+
+With `--full`, `summary = true`, and a [`commit.generation`](@/config.md#commit) command configured, the Summary column shows an LLM-generated one-line description of each branch's changes relative to the default branch.
+
+Disabled by default — when enabled, each branch's diff is sent to the configured LLM for summarization. Results are cached until the diff changes.
+<!-- TODO: promote this feature more prominently once it's been tested in the wild -->
+
## Status symbols
The Status column has multiple subcolumns. Within each, only the first matching symbol is shown (listed in priority order):
@@ -716,7 +724,7 @@ Missing a field that would be generally useful? Open an issue at https://github.
#[arg(long)]
remotes: bool,
- /// Include CI status and diff analysis (slower)
+ /// Show CI, diff analysis, and LLM summaries
#[arg(long)]
full: bool,
@@ -1581,10 +1589,11 @@ Persistent flag values for `wt list`. Override on command line as needed.
```toml
[list]
-full = false # Show CI status and main…± diffstat columns (--full)
+summary = false # Enable LLM branch summaries (requires [commit.generation])
+
+full = false # Show CI, main…± diffstat, and LLM summaries (--full)
branches = false # Include branches without worktrees (--branches)
remotes = false # Include remote-only branches (--remotes)
-summary = false # AI branch summaries in picker tab 5 (requires [commit.generation])
```
### Commit
diff --git a/src/commands/list/collect/execution.rs b/src/commands/list/collect/execution.rs
index e7b176077..5262a4fb0 100644
--- a/src/commands/list/collect/execution.rs
+++ b/src/commands/list/collect/execution.rs
@@ -14,9 +14,9 @@ use worktrunk::git::{BranchRef, Repository, WorktreeInfo};
use super::CollectOptions;
use super::tasks::{
AheadBehindTask, BranchDiffTask, CiStatusTask, CommitDetailsTask, CommittedTreesMatchTask,
- GitOperationTask, HasFileChangesTask, IsAncestorTask, MergeTreeConflictsTask, Task,
- TaskContext, UpstreamTask, UrlStatusTask, UserMarkerTask, WorkingTreeConflictsTask,
- WorkingTreeDiffTask, WouldMergeAddTask,
+ GitOperationTask, HasFileChangesTask, IsAncestorTask, MergeTreeConflictsTask,
+ SummaryGenerateTask, Task, TaskContext, UpstreamTask, UrlStatusTask, UserMarkerTask,
+ WorkingTreeConflictsTask, WorkingTreeDiffTask, WouldMergeAddTask,
};
use super::types::{TaskError, TaskKind, TaskResult};
@@ -91,6 +91,7 @@ fn dispatch_task(kind: TaskKind, ctx: TaskContext) -> Result<TaskResult, TaskErr
TaskKind::Upstream => UpstreamTask::compute(ctx),
TaskKind::CiStatus => CiStatusTask::compute(ctx),
TaskKind::UrlStatus => UrlStatusTask::compute(ctx),
+ TaskKind::SummaryGenerate => SummaryGenerateTask::compute(ctx),
}
}
@@ -192,6 +193,7 @@ pub fn work_items_for_worktree(
branch_ref: BranchRef::from(wt),
item_idx,
item_url,
+ llm_command: options.llm_command.clone(),
};
// Check if this branch is stale and should skip expensive tasks.
@@ -228,6 +230,7 @@ pub fn work_items_for_worktree(
TaskKind::MergeTreeConflicts,
TaskKind::CiStatus,
TaskKind::WouldMergeAdd,
+ TaskKind::SummaryGenerate,
] {
if skip.contains(&kind) {
continue;
@@ -287,6 +290,7 @@ pub fn work_items_for_branch(
branch_ref,
item_idx,
item_url: None, // Branches without worktrees don't have URLs
+ llm_command: options.llm_command.clone(),
};
// Check if this branch is stale and should skip expensive tasks.
@@ -314,6 +318,7 @@ pub fn work_items_for_branch(
TaskKind::MergeTreeConflicts,
TaskKind::CiStatus,
TaskKind::WouldMergeAdd,
+ TaskKind::SummaryGenerate,
] {
if skip.contains(&kind) {
continue;
@@ -358,6 +363,7 @@ mod tests {
let options = CollectOptions {
skip_tasks,
url_template: Some("http://localhost/{{ branch }}".to_string()),
+ llm_command: None,
stale_branches: HashSet::new(),
};
diff --git a/src/commands/list/collect/mod.rs b/src/commands/list/collect/mod.rs
index cb4993305..417478ddf 100644
--- a/src/commands/list/collect/mod.rs
+++ b/src/commands/list/collect/mod.rs
@@ -145,6 +145,10 @@ pub struct CollectOptions {
/// Expanded per-item in task spawning (post-skeleton) to minimize time-to-skeleton.
pub url_template: Option<String>,
+ /// LLM command for summary generation (from commit.generation config).
+ /// None if not configured — SummaryGenerate task will be skipped.
+ pub llm_command: Option<String>,
+
/// Branches to skip expensive tasks for (behind > threshold).
///
/// Presence in set = skip expensive tasks for this branch (HasFileChanges,
@@ -344,6 +348,7 @@ pub fn collect(
TaskKind::BranchDiff,
TaskKind::CiStatus,
TaskKind::WorkingTreeConflicts,
+ TaskKind::SummaryGenerate,
]
.into_iter()
.collect()
@@ -502,6 +507,7 @@ pub fn collect(
pr_status: None,
url: None,
url_active: None,
+ summary: None,
status_symbols: None,
display: DisplayFields::default(),
kind: ItemKind::Worktree(Box::new(worktree_data)),
@@ -530,6 +536,13 @@ pub fn collect(
effective_skip_tasks.insert(TaskKind::UrlStatus);
}
+ // Skip SummaryGenerate unless summary is enabled and an LLM command is configured
+ let config = repo.config();
+ let llm_command = config.commit_generation.command.clone();
+ if !config.list.summary() || llm_command.is_none() {
+ effective_skip_tasks.insert(TaskKind::SummaryGenerate);
+ }
+
// Calculate layout from items (worktrees, local branches, and remote branches)
let layout = super::layout::calculate_layout_from_basics(
&all_items,
@@ -542,9 +555,11 @@ pub fn collect(
let max_width = crate::display::get_terminal_width();
// Create collection options from skip set
+ let returned_skip_tasks = effective_skip_tasks.clone();
let mut options = CollectOptions {
skip_tasks: effective_skip_tasks,
url_template: url_template.clone(),
+ llm_command,
..Default::default()
};
@@ -1011,6 +1026,7 @@ pub fn collect(
Ok(Some(super::model::ListData {
items,
main_worktree_path: main_worktree.path.clone(),
+ skip_tasks: returned_skip_tasks,
}))
}
@@ -1096,6 +1112,7 @@ pub fn build_worktree_item(
pr_status: None,
url: None,
url_active: None,
+ summary: None,
status_symbols: None,
display: DisplayFields::default(),
kind: ItemKind::Worktree(Box::new(WorktreeData::from_worktree(
diff --git a/src/commands/list/collect/results.rs b/src/commands/list/collect/results.rs
index ecb8eb638..5e9a81b5e 100644
--- a/src/commands/list/collect/results.rs
+++ b/src/commands/list/collect/results.rs
@@ -87,6 +87,9 @@ pub(super) fn apply_default(
// URL is set at item creation, only default url_active
items[idx].url_active = None;
}
+ TaskKind::SummaryGenerate => {
+ // Leave as None — no summary available
+ }
}
}
@@ -290,6 +293,9 @@ pub(super) fn drain_results(
item.url_active = active;
}
}
+ TaskResult::SummaryGenerate { summary, .. } => {
+ item.summary = Some(summary);
+ }
}
// Invoke callback (progressive mode re-renders rows, buffered mode does nothing)
@@ -298,3 +304,46 @@ pub(super) fn drain_results(
DrainOutcome::Complete
}
+
+#[cfg(test)]
+mod tests {
+ use super::super::types::ErrorCause;
+ use super::*;
+
+ #[test]
+ fn test_apply_default_summary_generate() {
+ let mut items = vec![ListItem::new_branch("abc123".into(), "feat".into())];
+ let mut status_contexts = vec![StatusContext::default()];
+
+ let error = TaskError::new(
+ 0,
+ TaskKind::SummaryGenerate,
+ "llm failed",
+ ErrorCause::Other,
+ );
+ apply_default(&mut items, &mut status_contexts, &error);
+
+ // SummaryGenerate default leaves summary as None
+ assert!(items[0].summary.is_none());
+ }
+
+ #[test]
+ fn test_drain_results_summary_generate() {
+ let (tx, rx) = crossbeam_channel::unbounded();
+ let mut items = vec![ListItem::new_branch("abc123".into(), "feat".into())];
+ let mut errors = Vec::new();
+ let expected = ExpectedResults::default();
+
+ // Send a SummaryGenerate result
+ tx.send(Ok(TaskResult::SummaryGenerate {
+ item_idx: 0,
+ summary: Some("Add feature".into()),
+ }))
+ .unwrap();
+ drop(tx);
+
+ let outcome = drain_results(rx, &mut items, &mut errors, &expected, |_, _, _| {});
+ assert!(matches!(outcome, DrainOutcome::Complete));
+ assert_eq!(items[0].summary, Some(Some("Add feature".into())));
+ }
+}
diff --git a/src/commands/list/collect/tasks.rs b/src/commands/list/collect/tasks.rs
index 403a5df35..5d46ccc8a 100644
--- a/src/commands/list/collect/tasks.rs
+++ b/src/commands/list/collect/tasks.rs
@@ -1,6 +1,6 @@
//! Task trait and implementations.
//!
-//! Contains the `Task` trait interface and all 15 task implementations that
+//! Contains the `Task` trait interface and all 16 task implementations that
//! compute various git operations for worktrees and branches.
use std::net::{SocketAddr, TcpStream};
@@ -39,6 +39,8 @@ pub struct TaskContext {
/// Expanded URL for this item (from project config template).
/// UrlStatusTask uses this to check if the port is listening.
pub item_url: Option<String>,
+ /// LLM command for summary generation (from commit.generation config).
+ pub llm_command: Option<String>,
}
impl TaskContext {
@@ -655,10 +657,55 @@ impl Task for UrlStatusTask {
}
}
+/// Task 14: LLM-generated branch summary (--full only, requires LLM command)
+pub struct SummaryGenerateTask;
+
+impl Task for SummaryGenerateTask {
+ const KIND: TaskKind = TaskKind::SummaryGenerate;
+
+ fn compute(ctx: TaskContext) -> Result<TaskResult, TaskError> {
+ let llm_command = ctx
+ .llm_command
+ .as_deref()
+ .expect("SummaryGenerateTask requires llm_command");
+
+ let branch = ctx.branch_ref.branch.as_deref().unwrap_or("(detached)");
+ let worktree_path = ctx.branch_ref.worktree_path.as_deref();
+
+ // Acquire semaphore before any LLM call (cache hits return before calling LLM)
+ let _permit = crate::summary::LLM_SEMAPHORE.acquire();
+
+ let summary = crate::summary::generate_summary_core(
+ branch,
+ &ctx.branch_ref.commit_sha,
+ worktree_path,
+ llm_command,
+ &ctx.repo,
+ )
+ .map_err(|e| ctx.error(Self::KIND, &e))?;
+
+ // Extract subject line (first line) for the table column
+ let subject = summary.as_deref().map(first_line);
+
+ Ok(TaskResult::SummaryGenerate {
+ item_idx: ctx.item_idx,
+ summary: subject,
+ })
+ }
+}
+
// ============================================================================
// Helper Functions
// ============================================================================
+/// Extract the first non-empty line from a string (the subject line of a summary).
+fn first_line(s: &str) -> String {
+ s.lines()
+ .find(|l| !l.trim().is_empty())
+ .unwrap_or(s)
+ .to_string()
+}
+
/// Detect if a worktree is in the middle of a git operation (rebase/merge).
pub(crate) fn detect_active_git_operation(
wt: &worktrunk::git::WorkingTree<'_>,
@@ -749,3 +796,28 @@ pub(super) fn parse_working_tree_status(status_output: &str) -> (WorkingTreeStat
(working_tree_status, is_dirty, has_conflicts)
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn test_first_line_simple() {
+ assert_eq!(first_line("Add feature\n\nDetails here"), "Add feature");
+ }
+
+ #[test]
+ fn test_first_line_skips_empty() {
+ assert_eq!(first_line("\n\nAdd feature\nMore"), "Add feature");
+ }
+
+ #[test]
+ fn test_first_line_single_line() {
+ assert_eq!(first_line("Single line"), "Single line");
+ }
+
+ #[test]
+ fn test_first_line_empty_string() {
+ assert_eq!(first_line(""), "");
+ }
+}
diff --git a/src/commands/list/collect/types.rs b/src/commands/list/collect/types.rs
index 58884c945..009a2dbe7 100644
--- a/src/commands/list/collect/types.rs
+++ b/src/commands/list/collect/types.rs
@@ -154,6 +154,11 @@ pub(crate) enum TaskResult {
/// Whether the port is listening (None if no URL or couldn't parse port)
active: Option<bool>,
},
+ /// LLM-generated branch summary (--full only, requires LLM command configured)
+ SummaryGenerate {
+ item_idx: usize,
+ summary: Option<String>,
+ },
}
impl TaskResult {
@@ -174,7 +179,8 @@ impl TaskResult {
| TaskResult::UserMarker { item_idx, .. }
| TaskResult::Upstream { item_idx, .. }
| TaskResult::CiStatus { item_idx, .. }
- | TaskResult::UrlStatus { item_idx, .. } => *item_idx,
+ | TaskResult::UrlStatus { item_idx, .. }
+ | TaskResult::SummaryGenerate { item_idx, .. } => *item_idx,
}
}
}
@@ -184,7 +190,10 @@ impl TaskKind {
///
/// Network tasks are sorted to run last to avoid blocking local tasks.
pub fn is_network(self) -> bool {
- matches!(self, TaskKind::CiStatus | TaskKind::UrlStatus)
+ matches!(
+ self,
+ TaskKind::CiStatus | TaskKind::UrlStatus | TaskKind::SummaryGenerate
+ )
}
}
diff --git a/src/commands/list/columns.rs b/src/commands/list/columns.rs
index 3539aa8f2..6e797e9b6 100644
--- a/src/commands/list/columns.rs
+++ b/src/commands/list/columns.rs
@@ -9,10 +9,11 @@ pub enum ColumnKind {
WorkingDiff,
AheadBehind,
BranchDiff,
- Path,
+ Summary,
Upstream,
- Url, // Dev server URL from project config template
CiStatus,
+ Path,
+ Url, // Dev server URL from project config template
Commit,
Time,
Message,
@@ -33,6 +34,7 @@ impl ColumnKind {
ColumnKind::Time => "Age",
ColumnKind::CiStatus => "CI",
ColumnKind::Commit => "Commit",
+ ColumnKind::Summary => "Summary",
ColumnKind::Message => "Message",
}
}
@@ -90,13 +92,14 @@ pub const COLUMN_SPECS: &[ColumnSpec] = &[
ColumnSpec::new(ColumnKind::WorkingDiff, 3, None),
ColumnSpec::new(ColumnKind::AheadBehind, 4, None),
ColumnSpec::new(ColumnKind::BranchDiff, 6, Some(TaskKind::BranchDiff)),
- ColumnSpec::new(ColumnKind::Path, 7, None),
+ ColumnSpec::new(ColumnKind::Summary, 10, Some(TaskKind::SummaryGenerate)),
ColumnSpec::new(ColumnKind::Upstream, 8, None),
- ColumnSpec::new(ColumnKind::Url, 9, Some(TaskKind::UrlStatus)),
ColumnSpec::new(ColumnKind::CiStatus, 5, Some(TaskKind::CiStatus)),
- ColumnSpec::new(ColumnKind::Commit, 10, None),
- ColumnSpec::new(ColumnKind::Time, 11, None),
- ColumnSpec::new(ColumnKind::Message, 12, None),
+ ColumnSpec::new(ColumnKind::Path, 7, None),
+ ColumnSpec::new(ColumnKind::Url, 9, Some(TaskKind::UrlStatus)),
+ ColumnSpec::new(ColumnKind::Commit, 11, None),
+ ColumnSpec::new(ColumnKind::Time, 12, None),
+ ColumnSpec::new(ColumnKind::Message, 13, None),
];
pub fn column_display_index(kind: ColumnKind) -> usize {
@@ -121,10 +124,11 @@ mod tests {
ColumnKind::WorkingDiff,
ColumnKind::AheadBehind,
ColumnKind::BranchDiff,
- ColumnKind::Path,
+ ColumnKind::Summary,
ColumnKind::Upstream,
- ColumnKind::Url,
ColumnKind::CiStatus,
+ ColumnKind::Path,
+ ColumnKind::Url,
ColumnKind::Commit,
ColumnKind::Time,
ColumnKind::Message,
@@ -152,11 +156,18 @@ mod tests {
.unwrap();
assert_eq!(ci_status.requires_task, Some(TaskKind::CiStatus));
+ let summary = COLUMN_SPECS
+ .iter()
+ .find(|c| c.kind == ColumnKind::Summary)
+ .unwrap();
+ assert_eq!(summary.requires_task, Some(TaskKind::SummaryGenerate));
+
// All other columns should not require a background task to render
for spec in COLUMN_SPECS {
if spec.kind != ColumnKind::BranchDiff
&& spec.kind != ColumnKind::Url
&& spec.kind != ColumnKind::CiStatus
+ && spec.kind != ColumnKind::Summary
{
assert!(
spec.requires_task.is_none(),
@@ -225,6 +236,7 @@ mod tests {
ColumnKind::CiStatus,
ColumnKind::Commit,
ColumnKind::Time,
+ ColumnKind::Summary,
ColumnKind::Message,
];
diff --git a/src/commands/list/layout.rs b/src/commands/list/layout.rs
index 59050f317..b839692a6 100644
--- a/src/commands/list/layout.rs
+++ b/src/commands/list/layout.rs
@@ -112,10 +112,14 @@
//! - Within the visibility gate, follows normal two-tier priority
//! (BranchDiff: 6/16, CiStatus: 5/15)
//!
-//! 2. **Message** - Flexible sizing with post-allocation expansion
-//! - Allocated at priority 12 with flexible width (min 20, preferred 50)
-//! - After all columns allocated (including empty ones), expands up to max 100 using leftover space
-//! - Two-step process ensures critical columns get space before message grows
+//! 2. **Summary** - Flexible sizing with post-allocation expansion
+//! - Allocated at priority 10 with minimum width 10
+//! - After all columns allocated, expands up to 70 using leftover space
+//! - Expands BEFORE Message, so Summary gets priority for space
+//!
+//! 3. **Message** - Flexible sizing with post-allocation expansion
+//! - Allocated at priority 13 with minimum width 10
+//! - After Summary expansion, expands up to max 100 using remaining leftover space
//!
//! ## Implementation
//!
@@ -150,7 +154,10 @@
//! }
//! }
//!
-//! // Message post-allocation expansion (uses truly leftover space)
+//! // Post-allocation expansion: Summary first, then Message with leftovers
+//! if let Some(summary_col) = pending.iter_mut().find(|col| col.spec.kind == ColumnKind::Summary) {
+//! summary_col.width += remaining.min(MAX_SUMMARY - summary_col.width);
+//! }
//! if let Some(message_col) = pending.iter_mut().find(|col| col.spec.kind == ColumnKind::Message) {
//! message_col.width += remaining.min(MAX_MESSAGE - message_col.width);
//! }
@@ -240,7 +247,6 @@ pub struct ColumnWidths {
pub time: usize,
pub url: usize,
pub ci_status: usize,
- pub message: usize,
pub ahead_behind: DiffWidths,
pub working_diff: DiffWidths,
pub branch_diff: DiffWidths,
@@ -410,6 +416,7 @@ impl ColumnKind {
ColumnKind::Time => true,
ColumnKind::CiStatus => flags.ci_status,
ColumnKind::Commit => true,
+ ColumnKind::Summary => true, // Placeholder shown until data arrives
ColumnKind::Message => true,
}
}
@@ -447,6 +454,7 @@ impl ColumnKind {
ColumnKind::Url => text(widths.url),
ColumnKind::CiStatus => text(widths.ci_status),
ColumnKind::Commit => text(commit_width),
+ ColumnKind::Summary => None, // Flexible: handled specially in allocation loop
ColumnKind::Message => None,
ColumnKind::WorkingDiff => diff(widths.working_diff),
ColumnKind::AheadBehind => diff(widths.ahead_behind),
@@ -483,6 +491,7 @@ pub struct LayoutConfig {
pub columns: Vec<ColumnLayout>,
pub main_worktree_path: PathBuf,
pub max_message_len: usize,
+ pub max_summary_len: usize,
pub hidden_column_count: usize,
pub status_position_mask: super::model::PositionMask,
}
@@ -585,7 +594,6 @@ fn build_estimated_widths(
time: age_estimate,
url: url_estimate,
ci_status: ci_estimate,
- message: 50, // Will be flexible during allocation
// Commit counts (Arrows): compact notation, 2 digits covers up to 99
ahead_behind: DiffWidths {
total: ahead_behind_fixed,
@@ -659,6 +667,8 @@ fn allocate_columns_with_priority(
.map(|c| (c.spec.kind, c.spec.kind.has_data(&metadata.data_flags)))
.collect();
+ const MIN_SUMMARY: usize = 10;
+ const MAX_SUMMARY: usize = 70;
const MIN_MESSAGE: usize = 10;
const MAX_MESSAGE: usize = 100;
@@ -680,33 +690,24 @@ fn allocate_columns_with_priority(
for candidate in candidates {
let spec = candidate.spec;
- // Special handling for Message column
- if spec.kind == ColumnKind::Message {
+ // Flexible columns: allocate at minimum, expand post-loop
+ if matches!(spec.kind, ColumnKind::Summary | ColumnKind::Message) {
+ let min_width = match spec.kind {
+ ColumnKind::Summary => MIN_SUMMARY,
+ _ => MIN_MESSAGE,
+ };
let spacing_cost = if needs_spacing(&pending) { spacing } else { 0 };
-
- if remaining <= spacing_cost {
- continue;
+ if remaining > spacing_cost {
+ let available = remaining - spacing_cost;
+ if available >= min_width {
+ remaining = remaining.saturating_sub(min_width + spacing_cost);
+ pending.push(PendingColumn {
+ spec,
+ width: min_width,
+ format: ColumnFormat::Text,
+ });
+ }
}
-
- let available = remaining - spacing_cost;
- let mut message_width = 0;
-
- // Allocate at minimum width initially. Post-allocation expansion will
- // bring it up to preferred/max width after empty columns have a chance
- // to be allocated.
- if available >= MIN_MESSAGE {
- message_width = MIN_MESSAGE.min(metadata.widths.message);
- }
-
- if message_width > 0 {
- remaining = remaining.saturating_sub(message_width + spacing_cost);
- pending.push(PendingColumn {
- spec,
- width: message_width,
- format: ColumnFormat::Text,
- });
- }
-
continue;
}
@@ -729,7 +730,20 @@ fn allocate_columns_with_priority(
}
}
- // Expand message column with leftover space
+ // Post-allocation expansion: Summary first, then Message with leftovers.
+ let mut max_summary_len = 0;
+ if let Some(summary_col) = pending
+ .iter_mut()
+ .find(|col| col.spec.kind == ColumnKind::Summary)
+ {
+ if summary_col.width < MAX_SUMMARY && remaining > 0 {
+ let expansion = remaining.min(MAX_SUMMARY - summary_col.width);
+ summary_col.width += expansion;
+ remaining -= expansion;
+ }
+ max_summary_len = summary_col.width;
+ }
+
let mut max_message_len = 0;
if let Some(message_col) = pending
.iter_mut()
@@ -789,6 +803,7 @@ fn allocate_columns_with_priority(
columns,
main_worktree_path,
max_message_len,
+ max_summary_len,
hidden_column_count,
status_position_mask: metadata.status_position_mask,
}
@@ -1014,7 +1029,6 @@ mod tests {
time: 4,
url: 0,
ci_status: 2,
- message: 50,
ahead_behind: DiffWidths {
total: 7,
positive_digits: 2,
@@ -1062,7 +1076,8 @@ mod tests {
assert_eq!(w, 8);
assert!(matches!(fmt, ColumnFormat::Text));
- // Message returns None (handled specially)
+ // Flexible columns return None (handled specially in allocation loop)
+ assert!(ColumnKind::Summary.ideal(&widths, 20, 8).is_none());
assert!(ColumnKind::Message.ideal(&widths, 20, 8).is_none());
// Diff columns return (width, ColumnFormat::Diff(_))
@@ -1081,7 +1096,6 @@ mod tests {
time: 0,
url: 0,
ci_status: 0,
- message: 0,
ahead_behind: DiffWidths {
total: 0,
positive_digits: 0,
@@ -1212,6 +1226,7 @@ mod tests {
pr_status: None,
url: None,
url_active: None,
+ summary: None,
status_symbols: Some(StatusSymbols::default()),
display: DisplayFields::default(),
kind: ItemKind::Worktree(Box::new(WorktreeData {
@@ -1310,6 +1325,7 @@ mod tests {
pr_status: None,
url: None,
url_active: None,
+ summary: None,
status_symbols: Some(StatusSymbols::default()),
display: DisplayFields::default(),
kind: ItemKind::Worktree(Box::new(WorktreeData {
@@ -1399,4 +1415,236 @@ mod tests {
// With hyperlinks: has ":{{" pattern, compact display = 6
assert_eq!(estimate_url_width(Some(template), true), 6);
}
+
+ // --- Flexible column (Summary/Message) allocation tests ---
+
+ /// Helper: create a minimal ListItem for layout tests.
+ fn make_test_item(branch: &str) -> super::super::model::ListItem {
+ use crate::commands::list::model::{
+ ActiveGitOperation, DisplayFields, ItemKind, WorktreeData,
+ };
+ super::super::model::ListItem {
+ head: "abc12345".to_string(),
+ branch: Some(branch.to_string()),
+ commit: None,
+ counts: None,
+ branch_diff: None,
+ committed_trees_match: None,
+ has_file_changes: None,
+ would_merge_add: None,
+ is_ancestor: None,
+ is_orphan: None,
+ upstream: None,
+ pr_status: None,
+ url: None,
+ url_active: None,
+ summary: None,
+ status_symbols: None,
+ display: DisplayFields::default(),
+ kind: ItemKind::Worktree(Box::new(WorktreeData {
+ path: PathBuf::from("/test/wt"),
+ detached: false,
+ locked: None,
+ prunable: None,
+ working_tree_diff: None,
+ git_operation: ActiveGitOperation::None,
+ is_main: false,
+ is_current: false,
+ is_previous: false,
+ branch_worktree_mismatch: false,
+ working_diff_display: None,
+ })),
+ }
+ }
+
+ /// Helper: compute layout with explicit terminal width and skip_tasks.
+ fn layout_at_width(width: usize, skip_tasks: &HashSet<TaskKind>) -> LayoutConfig {
+ let items = vec![make_test_item("feature-branch")];
+ calculate_layout_with_width(&items, skip_tasks, width, Path::new("/test"), None)
+ }
+
+ /// Default skip_tasks for non-full mode (Summary, BranchDiff, CI, WorkingTreeConflicts skipped).
+ fn non_full_skip_tasks() -> HashSet<TaskKind> {
+ [
+ TaskKind::BranchDiff,
+ TaskKind::CiStatus,
+ TaskKind::WorkingTreeConflicts,
+ TaskKind::SummaryGenerate,
+ ]
+ .into_iter()
+ .collect()
+ }
+
+ /// Full mode skip_tasks (nothing skipped).
+ fn full_skip_tasks() -> HashSet<TaskKind> {
+ HashSet::new()
+ }
+
+ fn find_column(layout: &LayoutConfig, kind: ColumnKind) -> Option<&ColumnLayout> {
+ layout.columns.iter().find(|c| c.kind == kind)
+ }
+
+ #[test]
+ fn test_summary_absent_when_skipped() {
+ // Non-full mode: SummaryGenerate in skip_tasks → no Summary column
+ let layout = layout_at_width(200, &non_full_skip_tasks());
+
+ assert!(
+ find_column(&layout, ColumnKind::Summary).is_none(),
+ "Summary should not appear when SummaryGenerate is skipped"
+ );
+ assert_eq!(layout.max_summary_len, 0);
+
+ // Message should still be present and get leftover space
+ assert!(find_column(&layout, ColumnKind::Message).is_some());
+ assert!(layout.max_message_len > 0);
+ }
+
+ #[test]
+ fn test_summary_present_in_full_mode() {
+ let layout = layout_at_width(200, &full_skip_tasks());
+
+ assert!(
+ find_column(&layout, ColumnKind::Summary).is_some(),
+ "Summary should appear in full mode"
+ );
+ assert!(layout.max_summary_len > 0);
+ }
+
+ #[test]
+ fn test_summary_expands_before_message() {
+ // At a moderate width, Summary should expand toward its max (70)
+ // before Message gets leftover space.
+ let layout = layout_at_width(200, &full_skip_tasks());
+
+ let summary = find_column(&layout, ColumnKind::Summary);
+ let message = find_column(&layout, ColumnKind::Message);
+
+ assert!(summary.is_some(), "Summary should be allocated");
+ assert!(message.is_some(), "Message should be allocated");
+
+ let summary_width = summary.unwrap().width;
+ let message_width = message.unwrap().width;
+
+ // Summary should have expanded beyond its minimum of 10
+ assert!(
+ summary_width > 10,
+ "Summary should expand beyond minimum: got {summary_width}"
+ );
+ assert_eq!(layout.max_summary_len, summary_width);
+ assert_eq!(layout.max_message_len, message_width);
+ }
+
+ #[test]
+ fn test_summary_capped_at_max() {
+ // Very wide terminal: Summary should cap at MAX_SUMMARY (70)
+ let layout = layout_at_width(500, &full_skip_tasks());
+
+ let summary = find_column(&layout, ColumnKind::Summary).unwrap();
+ assert_eq!(summary.width, 70, "Summary should cap at MAX_SUMMARY (70)");
+ assert_eq!(layout.max_summary_len, 70);
+ }
+
+ #[test]
+ fn test_message_capped_at_max() {
+ // Very wide terminal: Message should cap at MAX_MESSAGE (100)
+ let layout = layout_at_width(500, &full_skip_tasks());
+
+ let message = find_column(&layout, ColumnKind::Message).unwrap();
+ assert_eq!(
+ message.width, 100,
+ "Message should cap at MAX_MESSAGE (100)"
+ );
+ assert_eq!(layout.max_message_len, 100);
+ }
+
+ #[test]
+ fn test_message_gets_more_space_when_summary_skipped() {
+ // Compare Message width with and without Summary
+ let with_summary = layout_at_width(200, &full_skip_tasks());
+ let without_summary = layout_at_width(200, &non_full_skip_tasks());
+
+ let msg_with = find_column(&with_summary, ColumnKind::Message)
+ .unwrap()
+ .width;
+ let msg_without = find_column(&without_summary, ColumnKind::Message)
+ .unwrap()
+ .width;
+
+ // Without Summary, Message should get more space (or equal if both maxed)
+ assert!(
+ msg_without >= msg_with,
+ "Message should get at least as much space without Summary: \
+ with={msg_with}, without={msg_without}"
+ );
+ }
+
+ #[test]
+ fn test_summary_display_order() {
+ // Summary should appear between BranchDiff and Upstream in display order
+ let layout = layout_at_width(500, &full_skip_tasks());
+
+ let kinds: Vec<ColumnKind> = layout.columns.iter().map(|c| c.kind).collect();
+
+ if let Some(summary_pos) = kinds.iter().position(|k| *k == ColumnKind::Summary) {
+ // Summary should come after BranchDiff (if present) and before Upstream (if present)
+ if let Some(branch_diff_pos) = kinds.iter().position(|k| *k == ColumnKind::BranchDiff) {
+ assert!(
+ summary_pos > branch_diff_pos,
+ "Summary should appear after BranchDiff"
+ );
+ }
+ if let Some(upstream_pos) = kinds.iter().position(|k| *k == ColumnKind::Upstream) {
+ assert!(
+ summary_pos < upstream_pos,
+ "Summary should appear before Upstream"
+ );
+ }
+ } else {
+ panic!("Summary column should be present at width 500");
+ }
+ }
+
+ #[test]
+ fn test_narrow_terminal_drops_flexible_columns() {
+ // At a very narrow width, neither Summary nor Message should fit
+ // after the critical fixed columns are allocated.
+ let layout = layout_at_width(40, &full_skip_tasks());
+
+ // At 40 chars, only Gutter (2) + Branch (~14) can fit
+ assert!(
+ find_column(&layout, ColumnKind::Summary).is_none(),
+ "Summary should not fit at 40 chars"
+ );
+ assert!(
+ find_column(&layout, ColumnKind::Message).is_none(),
+ "Message should not fit at 40 chars"
+ );
+ }
+
+ #[test]
+ fn test_summary_skipped_preserves_other_full_columns() {
+ // Even with SummaryGenerate skipped, other full-mode columns should still appear
+ let mut skip_only_summary: HashSet<TaskKind> = HashSet::new();
+ skip_only_summary.insert(TaskKind::SummaryGenerate);
+
+ let layout = layout_at_width(300, &skip_only_summary);
+
+ assert!(
+ find_column(&layout, ColumnKind::Summary).is_none(),
+ "Summary should be skipped"
+ );
+ assert!(
+ find_column(&layout, ColumnKind::BranchDiff).is_some(),
+ "BranchDiff should still appear"
+ );
+ assert!(
+ find_column(&layout, ColumnKind::CiStatus).is_some(),
+ "CiStatus should still appear"
+ );
+ assert!(
+ find_column(&layout, ColumnKind::Message).is_some(),
+ "Message should still appear"
+ );
+ }
}
diff --git a/src/commands/list/model/item.rs b/src/commands/list/model/item.rs
index a5a822cb7..852db72fd 100644
--- a/src/commands/list/model/item.rs
+++ b/src/commands/list/model/item.rs
@@ -195,6 +195,10 @@ pub struct ListItem {
#[serde(skip_serializing_if = "Option::is_none")]
pub url_active: Option<bool>,
+ /// LLM-generated branch summary: None = not loaded, Some(None) = no summary, Some(Some) = has summary
+ #[serde(skip)]
+ pub summary: Option<Option<String>>,
+
/// Git status symbols - None until all dependencies are ready.
/// Note: This field is not serialized directly. JSON output converts to JsonItem first.
#[serde(skip)]
@@ -215,6 +219,11 @@ pub struct ListData {
/// Path to the main worktree, used for computing relative paths in display.
#[cfg_attr(windows, allow(dead_code))] // Used only by select module (unix-only)
pub main_worktree_path: std::path::PathBuf,
+ /// Tasks that were skipped during collection (includes runtime gating like
+ /// SummaryGenerate disabled when no LLM configured). Callers that recalculate
+ /// layout (e.g., the picker at a different width) should use this set.
+ #[cfg_attr(windows, allow(dead_code))] // Used only by select module (unix-only)
+ pub skip_tasks: std::collections::HashSet<super::super::collect::TaskKind>,
}
impl ListItem {
@@ -235,6 +244,7 @@ impl ListItem {
pr_status: None,
url: None,
url_active: None,
+ summary: None,
status_symbols: None,
display: DisplayFields::default(),
kind: ItemKind::Branch,
diff --git a/src/commands/list/render.rs b/src/commands/list/render.rs
index f1ee7023a..6959ead57 100644
--- a/src/commands/list/render.rs
+++ b/src/commands/list/render.rs
@@ -243,6 +243,7 @@ impl LayoutConfig {
&self.status_position_mask,
&self.main_worktree_path,
self.max_message_len,
+ self.max_summary_len,
)
})
}
@@ -345,6 +346,7 @@ impl ColumnLayout {
status_mask: &PositionMask,
main_worktree_path: &Path,
max_message_len: usize,
+ max_summary_len: usize,
) -> StyledLine {
// Compute derived values inline (avoids separate context struct)
let worktree_data = item.worktree_data();
@@ -497,6 +499,22 @@ impl ColumnLayout {
self.render_text_cell(short_head, Some(Style::new().dimmed()))
}
}
+ ColumnKind::Summary => {
+ // summary is Option<Option<String>>:
+ // - None = not loaded yet (show spinner)
+ // - Some(None) = no summary (blank)
+ // - Some(Some(text)) = has summary
+ match &item.summary {
+ None => self.placeholder_cell("⋯"),
+ Some(None) => StyledLine::new(),
+ Some(Some(summary)) => {
+ let mut cell = StyledLine::new();
+ let msg = truncate_to_width(summary, max_summary_len);
+ cell.push_styled(msg, Style::new());
+ cell
+ }
+ }
+ }
ColumnKind::Message => {
let Some(ref commit) = item.commit else {
return self.placeholder_cell("⋯");
@@ -1275,4 +1293,39 @@ mod tests {
assert!(arrow_rendered2.contains("50"));
assert!(arrow_rendered2.contains("↓1") && arrow_rendered2.contains('K'));
}
+
+ #[test]
+ fn test_summary_column_rendering() {
+ use super::super::layout::ColumnLayout;
+ use super::super::model::{ListItem, PositionMask};
+ use std::path::PathBuf;
+
+ let summary_col = ColumnLayout {
+ kind: ColumnKind::Summary,
+ header: "Summary",
+ start: 0,
+ width: 40,
+ format: ColumnFormat::Text,
+ };
+
+ let mask = PositionMask::FULL;
+ let main_path = PathBuf::from("/tmp");
+
+ // Case 1: summary = None (not loaded yet → placeholder)
+ let mut item = ListItem::new_branch("abc123".into(), "feat".into());
+ item.summary = None;
+ let cell = summary_col.render_cell(&item, &mask, &main_path, 50, 40);
+ assert!(cell.render().contains('⋯'));
+
+ // Case 2: summary = Some(None) (loaded, no summary → blank)
+ item.summary = Some(None);
+ let cell = summary_col.render_cell(&item, &mask, &main_path, 50, 40);
+ assert!(cell.render().is_empty());
+
+ // Case 3: summary = Some(Some(text)) (has summary)
+ item.summary = Some(Some("Add user authentication".into()));
+ let cell = summary_col.render_cell(&item, &mask, &main_path, 50, 40);
+ let rendered = cell.render();
+ assert!(rendered.contains("Add user authentication"));
+ }
}
diff --git a/src/commands/select/items.rs b/src/commands/select/items.rs
index b38ef2d0b..33b677acd 100644
--- a/src/commands/select/items.rs
+++ b/src/commands/select/items.rs
@@ -400,7 +400,7 @@ impl WorktreeSkimItem {
output
}
- /// Compute Tab 5: Summary preview (AI-generated branch summary)
+ /// Compute Tab 5: Summary preview (LLM-generated branch summary)
///
/// Returns a synchronous placeholder when the background summary generation
/// hasn't completed yet. The actual summary is generated by background threads
diff --git a/src/commands/select/mod.rs b/src/commands/select/mod.rs
index b370dfc3a..92f265867 100644
--- a/src/commands/select/mod.rs
+++ b/src/commands/select/mod.rs
@@ -85,7 +85,7 @@ pub fn handle_select(cli_branches: bool, cli_remotes: bool) -> anyhow::Result<()
};
let layout = super::list::layout::calculate_layout_with_width(
&list_data.items,
- &skip_tasks,
+ &list_data.skip_tasks,
skim_list_width,
&list_data.main_worktree_path,
None, // URL column not shown in select
@@ -264,7 +264,7 @@ pub fn handle_select(cli_branches: bool, cli_remotes: bool) -> anyhow::Result<()
// No LLM configured or summaries disabled — insert config hint so the
// tab shows a useful message instead of a perpetual "Generating..." placeholder.
let hint = if !config.commit_generation.is_configured() {
- "Configure [commit.generation] command to enable AI summaries.\n\n\
+ "Configure [commit.generation] command to enable LLM summaries.\n\n\
Example in ~/.config/worktrunk/config.toml:\n\n\
[commit.generation]\n\
command = \"llm -m haiku\"\n\n\
diff --git a/src/commands/select/preview.rs b/src/commands/select/preview.rs
index 9443c3f2d..bc476388e 100644
--- a/src/commands/select/preview.rs
+++ b/src/commands/select/preview.rs
@@ -12,7 +12,7 @@ use std::path::PathBuf;
/// 2. Log: Commit history since diverging from the default branch (git log with merge-base)
/// 3. BranchDiff: Line diffs since the merge-base with the default branch (git diff --stat DEFAULT…)
/// 4. UpstreamDiff: Diff vs upstream tracking branch (ahead/behind)
-/// 5. Summary: AI-generated branch summary (requires [commit.generation] config)
+/// 5. Summary: LLM-generated branch summary (requires [commit.generation] config)
///
/// Loosely aligned with `wt list` columns, though not a perfect match:
/// - Tab 1 corresponds to "HEAD±" column
diff --git a/src/commands/select/summary.rs b/src/commands/select/summary.rs
index 167b77774..f1eb0c2b4 100644
--- a/src/commands/select/summary.rs
+++ b/src/commands/select/summary.rs
@@ -1,69 +1,15 @@
-//! AI summary generation for the interactive selector.
+//! LLM summary generation for the interactive selector.
//!
-//! Generates branch summaries using the configured LLM command, with caching
-//! in `.git/wt-cache/summaries/`. Summaries are invalidated when the combined
-//! diff (branch diff + working tree diff) changes.
+//! Thin adapter over `crate::summary` that adds TUI-specific rendering
+//! and integrates with the selector's preview cache.
-use std::collections::hash_map::DefaultHasher;
-use std::fs;
-use std::hash::{Hash, Hasher};
-use std::path::PathBuf;
-use std::sync::LazyLock;
-
-use color_print::cformat;
use dashmap::DashMap;
-use minijinja::Environment;
-use serde::{Deserialize, Serialize};
use worktrunk::git::Repository;
-use worktrunk::path::sanitize_for_filename;
-use worktrunk::sync::Semaphore;
use super::super::list::model::ListItem;
use super::items::PreviewCacheKey;
use super::preview::PreviewMode;
-use crate::llm::{execute_llm_command, prepare_diff};
-
-/// Limits concurrent LLM calls to avoid overwhelming the network / LLM
-/// provider. 8 permits balances parallelism with resource usage — LLM calls
-/// are I/O-bound (1-5s network waits), so more permits than the CPU-bound
-/// `HEAVY_OPS_SEMAPHORE` (4) but still bounded.
-static LLM_SEMAPHORE: LazyLock<Semaphore> = LazyLock::new(|| Semaphore::new(8));
-
-/// Cached summary stored in `.git/wt-cache/summaries/<branch>.json`
-#[derive(Serialize, Deserialize)]
-struct CachedSummary {
- summary: String,
- diff_hash: u64,
- /// Original branch name (useful for humans inspecting cache files)
- branch: String,
-}
-
-/// Combined diff output for a branch (branch diff + working tree diff)
-struct CombinedDiff {
- diff: String,
- stat: String,
-}
-
-/// Template for summary generation.
-///
-/// Uses commit-message format (subject + body) which naturally produces
-/// imperative-mood summaries without "This branch..." preamble.
-const SUMMARY_TEMPLATE: &str = r#"Write a summary of this branch's changes as a commit message.
-
-<format>
-- Subject line under 50 chars, imperative mood ("Add feature" not "Adds feature")
-- Blank line, then a body paragraph or bullet list explaining the key changes
-- Output only the message — no quotes, code blocks, or labels
-</format>
-
-<diffstat>
-{{ git_diff_stat }}
-</diffstat>
-
-<diff>
-{{ git_diff }}
-</diff>
-"#;
+use crate::summary::LLM_SEMAPHORE;
/// Render LLM summary for terminal display using the project's markdown theme.
///
@@ -89,171 +35,6 @@ pub(super) fn render_summary(text: &str, width: usize) -> String {
crate::md_help::render_markdown_in_help_with_width(&markdown, Some(width))
}
-/// Get the cache directory for summaries
-fn cache_dir(repo: &Repository) -> PathBuf {
- repo.git_common_dir().join("wt-cache").join("summaries")
-}
-
-/// Get the cache file path for a branch
-fn cache_file(repo: &Repository, branch: &str) -> PathBuf {
- let safe_branch = sanitize_for_filename(branch);
- cache_dir(repo).join(format!("{safe_branch}.json"))
-}
-
-/// Read cached summary from file
-fn read_cache(repo: &Repository, branch: &str) -> Option<CachedSummary> {
- let path = cache_file(repo, branch);
- let json = fs::read_to_string(&path).ok()?;
- serde_json::from_str(&json).ok()
-}
-
-/// Write summary to cache file (atomic write via temp file + rename)
-fn write_cache(repo: &Repository, branch: &str, cached: &CachedSummary) {
- let path = cache_file(repo, branch);
-
- if let Some(parent) = path.parent()
- && let Err(e) = fs::create_dir_all(parent)
- {
- log::debug!("Failed to create summary cache dir for {}: {}", branch, e);
- return;
- }
-
- let Ok(json) = serde_json::to_string(cached) else {
- log::debug!("Failed to serialize summary cache for {}", branch);
- return;
- };
-
- let temp_path = path.with_extension("json.tmp");
- if let Err(e) = fs::write(&temp_path, &json) {
- log::debug!(
- "Failed to write summary cache temp file for {}: {}",
- branch,
- e
- );
- return;
- }
-
- #[cfg(windows)]
- let _ = fs::remove_file(&path);
-
- if let Err(e) = fs::rename(&temp_path, &path) {
- log::debug!("Failed to rename summary cache file for {}: {}", branch, e);
- let _ = fs::remove_file(&temp_path);
- }
-}
-
-/// Hash a string to produce a cache invalidation key
-fn hash_diff(diff: &str) -> u64 {
- let mut hasher = DefaultHasher::new();
- diff.hash(&mut hasher);
- hasher.finish()
-}
-
-/// Compute the combined diff for a branch (branch diff + working tree diff).
-///
-/// Returns None if there's nothing to summarize (default branch with no changes,
-/// or no default branch known and no working tree diff available).
-fn compute_combined_diff(item: &ListItem, repo: &Repository) -> Option<CombinedDiff> {
- let branch = item.branch_name();
- let default_branch = repo.default_branch();
-
- let mut diff = String::new();
- let mut stat = String::new();
-
- // Branch diff: what's ahead of default branch (skipped if default branch unknown)
- if let Some(ref default_branch) = default_branch {
- let is_default_branch = branch == *default_branch;
- if !is_default_branch {
- let merge_base = format!("{}...{}", default_branch, item.head());
- if let Ok(branch_stat) = repo.run_command(&["diff", &merge_base, "--stat"]) {
- stat.push_str(&branch_stat);
- }
- if let Ok(branch_diff) = repo.run_command(&["diff", &merge_base]) {
- diff.push_str(&branch_diff);
- }
- }
- }
-
- // Working tree diff: uncommitted changes
- if let Some(wt_data) = item.worktree_data() {
- let path = wt_data.path.display().to_string();
- if let Ok(wt_stat) = repo.run_command(&["-C", &path, "diff", "HEAD", "--stat"])
- && !wt_stat.trim().is_empty()
- {
- stat.push_str(&wt_stat);
- }
- if let Ok(wt_diff) = repo.run_command(&["-C", &path, "diff", "HEAD"])
- && !wt_diff.trim().is_empty()
- {
- diff.push_str(&wt_diff);
- }
- }
-
- if diff.trim().is_empty() {
- return None;
- }
-
- Some(CombinedDiff { diff, stat })
-}
-
-/// Render the summary prompt template
-fn render_prompt(diff: &str, stat: &str) -> anyhow::Result<String> {
- let env = Environment::new();
- let tmpl = env.template_from_str(SUMMARY_TEMPLATE)?;
- let rendered = tmpl.render(minijinja::context! {
- git_diff => diff,
- git_diff_stat => stat,
- })?;
- Ok(rendered)
-}
-
-/// Generate a summary for a single item, using cache when available.
-fn generate_summary(item: &ListItem, llm_command: &str, repo: &Repository) -> String {
- let branch = item.branch_name();
-
- // Compute combined diff
- let Some(combined) = compute_combined_diff(item, repo) else {
- return cformat!("<dim>No changes to summarize on {branch}.</>");
- };
-
- let diff_hash = hash_diff(&combined.diff);
-
- // Check cache
- if let Some(cached) = read_cache(repo, branch)
- && cached.diff_hash == diff_hash
- {
- return cached.summary;
- }
-
- // Prepare diff (filter large diffs)
- let prepared = prepare_diff(combined.diff, combined.stat);
-
- // Render template
- let prompt = match render_prompt(&prepared.diff, &prepared.stat) {
- Ok(p) => p,
- Err(e) => return format!("Template error: {e}"),
- };
-
- // Call LLM
- let summary = match execute_llm_command(llm_command, &prompt) {
- Ok(s) => s,
- Err(e) => return format!("LLM error: {e}"),
- };
-
- // Write cache
- write_cache(
- repo,
- branch,
- &CachedSummary {
- summary: summary.clone(),
- diff_hash,
- branch: branch.to_string(),
- },
- );
-
- summary
-}
-
/// Generate a summary for one item and insert it into the preview cache.
/// Acquires the LLM semaphore to limit concurrent calls across rayon tasks.
pub(super) fn generate_and_cache_summary(
@@ -263,15 +44,18 @@ pub(super) fn generate_and_cache_summary(
repo: &Repository,
) {
let _permit = LLM_SEMAPHORE.acquire();
- let branch = item.branch_name().to_string();
- let summary = generate_summary(item, llm_command, repo);
- preview_cache.insert((branch, PreviewMode::Summary), summary);
+ let branch = item.branch_name();
+ let worktree_path = item.worktree_data().map(|d| d.path.as_path());
+ let summary =
+ crate::summary::generate_summary(branch, item.head(), worktree_path, llm_command, repo);
+ preview_cache.insert((branch.to_string(), PreviewMode::Summary), summary);
}
#[cfg(test)]
mod tests {
use super::*;
use crate::commands::list::model::{ItemKind, WorktreeData};
+ use std::fs;
fn git_command(dir: &std::path::Path) -> std::process::Command {
let mut cmd = std::process::Command::new("git");
@@ -345,6 +129,7 @@ mod tests {
#[test]
fn test_cache_roundtrip() {
+ use crate::summary::{CachedSummary, read_cache, write_cache};
let (_dir, repo) = temp_repo();
let branch = "feature/test-branch";
let cached = CachedSummary {
@@ -364,6 +149,7 @@ mod tests {
#[test]
fn test_write_cache_handles_unwritable_path() {
+ use crate::summary::{CachedSummary, read_cache, write_cache};
let (_dir, repo) = temp_repo();
// Block cache directory creation by placing a file where the directory should be
let cache_parent = repo.git_common_dir().join("wt-cache");
@@ -385,6 +171,7 @@ mod tests {
#[cfg(unix)]
#[test]
fn test_write_cache_handles_write_failure() {
+ use crate::summary::{CachedSummary, cache_dir, read_cache, write_cache};
use std::os::unix::fs::PermissionsExt;
let (_dir, repo) = temp_repo();
@@ -408,6 +195,7 @@ mod tests {
#[test]
fn test_cache_invalidation_by_hash() {
+ use crate::summary::{CachedSummary, read_cache, write_cache};
let (_dir, repo) = temp_repo();
let branch = "main";
let cached = CachedSummary {
@@ -423,6 +211,7 @@ mod tests {
#[test]
fn test_cache_file_uses_sanitized_branch() {
+ use crate::summary::cache_file;
let (_dir, repo) = temp_repo();
let path = cache_file(&repo, "feature/my-branch");
let filename = path.file_name().unwrap().to_str().unwrap();
@@ -432,6 +221,7 @@ mod tests {
#[test]
fn test_cache_dir_under_git() {
+ use crate::summary::cache_dir;
let (_dir, repo) = temp_repo();
let dir = cache_dir(&repo);
assert!(dir.to_str().unwrap().contains("wt-cache"));
@@ -440,6 +230,7 @@ mod tests {
#[test]
fn test_hash_diff_deterministic() {
+ use crate::summary::hash_diff;
let hash1 = hash_diff("some diff content");
let hash2 = hash_diff("some diff content");
assert_eq!(hash1, hash2);
@@ -447,6 +238,7 @@ mod tests {
#[test]
fn test_hash_diff_different_inputs() {
+ use crate::summary::hash_diff;
let hash1 = hash_diff("diff A");
let hash2 = hash_diff("diff B");
assert_ne!(hash1, hash2);
@@ -454,6 +246,7 @@ mod tests {
#[test]
fn test_render_prompt() {
+ use crate::summary::render_prompt;
let result = render_prompt("diff content", "1 file changed");
assert!(result.is_ok());
let prompt = result.unwrap();
@@ -463,6 +256,7 @@ mod tests {
#[test]
fn test_render_prompt_commit_message_format() {
+ use crate::summary::render_prompt;
let result = render_prompt("", "").unwrap();
assert!(result.contains("commit message"));
assert!(result.contains("imperative mood"));
@@ -509,10 +303,10 @@ mod tests {
#[test]
fn test_compute_combined_diff_with_branch_changes() {
+ use crate::summary::compute_combined_diff;
let (dir, repo, head) = temp_repo_with_feature();
- let item = feature_item(&head, dir.path());
- let result = compute_combined_diff(&item, &repo);
+ let result = compute_combined_diff("feature", &head, Some(dir.path()), &repo);
assert!(result.is_some());
let combined = result.unwrap();
assert!(combined.diff.contains("new.txt"));
@@ -521,27 +315,22 @@ mod tests {
#[test]
fn test_compute_combined_diff_default_branch_no_changes() {
+ use crate::summary::compute_combined_diff;
let (dir, repo, head) = temp_repo_configured();
- let mut item = ListItem::new_branch(head, "main".to_string());
- item.kind = ItemKind::Worktree(Box::new(WorktreeData {
- path: dir.path().to_path_buf(),
- ..Default::default()
- }));
-
- let result = compute_combined_diff(&item, &repo);
+ let result = compute_combined_diff("main", &head, Some(dir.path()), &repo);
assert!(result.is_none());
}
#[test]
fn test_compute_combined_diff_with_uncommitted_changes() {
+ use crate::summary::compute_combined_diff;
let (dir, repo, head) = temp_repo_with_feature();
// Add uncommitted changes
fs::write(dir.path().join("uncommitted.txt"), "wip\n").unwrap();
git(dir.path(), &["add", "uncommitted.txt"]);
- let item = feature_item(&head, dir.path());
- let result = compute_combined_diff(&item, &repo);
+ let result = compute_combined_diff("feature", &head, Some(dir.path()), &repo);
assert!(result.is_some());
let combined = result.unwrap();
// Should contain both the branch diff and the working tree diff
@@ -551,11 +340,10 @@ mod tests {
#[test]
fn test_compute_combined_diff_branch_only_no_worktree() {
+ use crate::summary::compute_combined_diff;
let (_dir, repo, head) = temp_repo_with_feature();
// Branch-only item (no worktree data) — only branch diff included
- let item = ListItem::new_branch(head, "feature".to_string());
-
- let result = compute_combined_diff(&item, &repo);
+ let result = compute_combined_diff("feature", &head, None, &repo);
assert!(result.is_some());
let combined = result.unwrap();
assert!(combined.diff.contains("new.txt"));
@@ -563,6 +351,7 @@ mod tests {
#[test]
fn test_compute_combined_diff_no_default_branch_with_worktree_changes() {
+ use crate::summary::compute_combined_diff;
// Repo without default-branch config and exotic branch names that
// infer_default_branch_locally() won't detect (it checks "main",
// "master", "develop", "trunk"). This ensures default_branch() returns
@@ -591,8 +380,7 @@ mod tests {
"expected no default branch with exotic branch names"
);
- let item = feature_item(&head, dir.path());
- let result = compute_combined_diff(&item, &repo);
+ let result = compute_combined_diff("feature", &head, Some(dir.path()), &repo);
assert!(
result.is_some(),
"should include working tree diff even without default branch"
@@ -604,22 +392,38 @@ mod tests {
#[test]
fn test_generate_summary_calls_llm() {
let (dir, repo, head) = temp_repo_with_feature();
- let item = feature_item(&head, dir.path());
- let summary = generate_summary(&item, "cat >/dev/null && echo 'Add new file'", &repo);
+ let summary = crate::summary::generate_summary(
+ "feature",
+ &head,
+ Some(dir.path()),
+ "cat >/dev/null && echo 'Add new file'",
+ &repo,
+ );
assert_eq!(summary, "Add new file");
}
#[test]
fn test_generate_summary_caches_result() {
let (dir, repo, head) = temp_repo_with_feature();
- let item = feature_item(&head, dir.path());
- let summary1 = generate_summary(&item, "cat >/dev/null && echo 'Add new file'", &repo);
+ let summary1 = crate::summary::generate_summary(
+ "feature",
+ &head,
+ Some(dir.path()),
+ "cat >/dev/null && echo 'Add new file'",
+ &repo,
+ );
assert_eq!(summary1, "Add new file");
// Second call with different command should return cached value
- let summary2 = generate_summary(&item, "cat >/dev/null && echo 'Different output'", &repo);
+ let summary2 = crate::summary::generate_summary(
+ "feature",
+ &head,
+ Some(dir.path()),
+ "cat >/dev/null && echo 'Different output'",
+ &repo,
+ );
assert_eq!(summary2, "Add new file");
}
@@ -627,23 +431,28 @@ mod tests {
fn test_generate_summary_no_changes() {
let (dir, repo, head) = temp_repo_configured();
- let mut item = ListItem::new_branch(head, "main".to_string());
- item.kind = ItemKind::Worktree(Box::new(WorktreeData {
- path: dir.path().to_path_buf(),
- ..Default::default()
- }));
-
- let summary = generate_summary(&item, "echo 'should not run'", &repo);
+ let summary = crate::summary::generate_summary(
+ "main",
+ &head,
+ Some(dir.path()),
+ "echo 'should not run'",
+ &repo,
+ );
assert!(summary.contains("No changes to summarize"));
}
#[test]
fn test_generate_summary_llm_error() {
let (dir, repo, head) = temp_repo_with_feature();
- let item = feature_item(&head, dir.path());
- let summary = generate_summary(&item, "cat >/dev/null && echo 'fail' >&2 && exit 1", &repo);
- assert!(summary.starts_with("LLM error:"));
+ let summary = crate::summary::generate_summary(
+ "feature",
+ &head,
+ Some(dir.path()),
+ "cat >/dev/null && echo 'fail' >&2 && exit 1",
+ &repo,
+ );
+ assert!(summary.starts_with("Error:"));
}
#[test]
diff --git a/src/config/user/sections.rs b/src/config/user/sections.rs
index 07ca85d33..29e6dfd24 100644
--- a/src/config/user/sections.rs
+++ b/src/config/user/sections.rs
@@ -128,7 +128,7 @@ pub struct ListConfig {
#[serde(skip_serializing_if = "Option::is_none")]
pub remotes: Option<bool>,
- /// Show AI-generated branch summaries in the interactive picker (tab 5).
+ /// Enable LLM-generated branch summaries (picker tab 5 + list Summary column).
/// Requires `[commit.generation] command` to be configured.
#[serde(skip_serializing_if = "Option::is_none")]
pub summary: Option<bool>,
@@ -157,7 +157,7 @@ impl ListConfig {
self.remotes.unwrap_or(false)
}
- /// Show AI-generated branch summaries in picker (default: false)
+ /// Enable LLM-generated branch summaries (default: false)
pub fn summary(&self) -> bool {
self.summary.unwrap_or(false)
}
diff --git a/src/main.rs b/src/main.rs
index 73bdf07a4..434cdae7b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -32,6 +32,7 @@ mod llm;
mod md_help;
mod output;
mod pager;
+mod summary;
mod verbose_log;
// Re-export invocation utilities at crate level for use by other modules
diff --git a/src/summary.rs b/src/summary.rs
new file mode 100644
index 000000000..361ff55ac
--- /dev/null
+++ b/src/summary.rs
@@ -0,0 +1,278 @@
+//! Shared LLM summary generation for branches.
+//!
+//! Generates branch summaries using the configured LLM command, with caching
+//! in `.git/wt-cache/summaries/`. Summaries are invalidated when the combined
+//! diff (branch diff + working tree diff) changes.
+//!
+//! Used by both `wt list --full` (Summary column) and `wt switch` (preview tab).
+
+use std::collections::hash_map::DefaultHasher;
+use std::fs;
+use std::hash::{Hash, Hasher};
+use std::path::{Path, PathBuf};
+use std::sync::LazyLock;
+
+use color_print::cformat;
+use minijinja::Environment;
+use serde::{Deserialize, Serialize};
+use worktrunk::git::Repository;
+use worktrunk::path::sanitize_for_filename;
+use worktrunk::sync::Semaphore;
+
+use crate::llm::{execute_llm_command, prepare_diff};
+
+/// Limits concurrent LLM calls to avoid overwhelming the network / LLM
+/// provider. 8 permits balances parallelism with resource usage — LLM calls
+/// are I/O-bound (1-5s network waits), so more permits than the CPU-bound
+/// `HEAVY_OPS_SEMAPHORE` (4) but still bounded.
+pub(crate) static LLM_SEMAPHORE: LazyLock<Semaphore> = LazyLock::new(|| Semaphore::new(8));
+
+/// Cached summary stored in `.git/wt-cache/summaries/<branch>.json`
+#[derive(Serialize, Deserialize)]
+pub(crate) struct CachedSummary {
+ pub summary: String,
+ pub diff_hash: u64,
+ /// Original branch name (useful for humans inspecting cache files)
+ pub branch: String,
+}
+
+/// Combined diff output for a branch (branch diff + working tree diff)
+pub(crate) struct CombinedDiff {
+ pub diff: String,
+ pub stat: String,
+}
+
+/// Template for summary generation.
+///
+/// Uses commit-message format (subject + body) which naturally produces
+/// imperative-mood summaries without "This branch..." preamble.
+const SUMMARY_TEMPLATE: &str = r#"Write a summary of this branch's changes as a commit message.
+
+<format>
+- Subject line under 50 chars, imperative mood ("Add feature" not "Adds feature")
+- Blank line, then a body paragraph or bullet list explaining the key changes
+- Output only the message — no quotes, code blocks, or labels
+</format>
+
+<diffstat>
+{{ git_diff_stat }}
+</diffstat>
+
+<diff>
+{{ git_diff }}
+</diff>
+"#;
+
+/// Get the cache directory for summaries
+pub(crate) fn cache_dir(repo: &Repository) -> PathBuf {
+ repo.git_common_dir().join("wt-cache").join("summaries")
+}
+
+/// Get the cache file path for a branch
+pub(crate) fn cache_file(repo: &Repository, branch: &str) -> PathBuf {
+ let safe_branch = sanitize_for_filename(branch);
+ cache_dir(repo).join(format!("{safe_branch}.json"))
+}
+
+/// Read cached summary from file
+pub(crate) fn read_cache(repo: &Repository, branch: &str) -> Option<CachedSummary> {
+ let path = cache_file(repo, branch);
+ let json = fs::read_to_string(&path).ok()?;
+ serde_json::from_str(&json).ok()
+}
+
+/// Write summary to cache file (atomic write via temp file + rename)
+pub(crate) fn write_cache(repo: &Repository, branch: &str, cached: &CachedSummary) {
+ let path = cache_file(repo, branch);
+
+ if let Some(parent) = path.parent()
+ && let Err(e) = fs::create_dir_all(parent)
+ {
+ log::debug!("Failed to create summary cache dir for {}: {}", branch, e);
+ return;
+ }
+
+ let Ok(json) = serde_json::to_string(cached) else {
+ log::debug!("Failed to serialize summary cache for {}", branch);
+ return;
+ };
+
+ let temp_path = path.with_extension("json.tmp");
+ if let Err(e) = fs::write(&temp_path, &json) {
+ log::debug!(
+ "Failed to write summary cache temp file for {}: {}",
+ branch,
+ e
+ );
+ return;
+ }
+
+ #[cfg(windows)]
+ let _ = fs::remove_file(&path);
+
+ if let Err(e) = fs::rename(&temp_path, &path) {
+ log::debug!("Failed to rename summary cache file for {}: {}", branch, e);
+ let _ = fs::remove_file(&temp_path);
+ }
+}
+
+/// Hash a string to produce a cache invalidation key
+pub(crate) fn hash_diff(diff: &str) -> u64 {
+ let mut hasher = DefaultHasher::new();
+ diff.hash(&mut hasher);
+ hasher.finish()
+}
+
+/// Compute the combined diff for a branch (branch diff + working tree diff).
+///
+/// Returns None if there's nothing to summarize (default branch with no changes,
+/// or no default branch known and no working tree diff available).
+pub(crate) fn compute_combined_diff(
+ branch: &str,
+ head: &str,
+ worktree_path: Option<&Path>,
+ repo: &Repository,
+) -> Option<CombinedDiff> {
+ let default_branch = repo.default_branch();
+
+ let mut diff = String::new();
+ let mut stat = String::new();
+
+ // Branch diff: what's ahead of default branch (skipped if default branch unknown)
+ if let Some(ref default_branch) = default_branch {
+ let is_default_branch = branch == *default_branch;
+ if !is_default_branch {
+ let merge_base = format!("{}...{}", default_branch, head);
+ if let Ok(branch_stat) = repo.run_command(&["diff", &merge_base, "--stat"]) {
+ stat.push_str(&branch_stat);
+ }
+ if let Ok(branch_diff) = repo.run_command(&["diff", &merge_base]) {
+ diff.push_str(&branch_diff);
+ }
+ }
+ }
+
+ // Working tree diff: uncommitted changes
+ if let Some(wt_path) = worktree_path {
+ let path = wt_path.display().to_string();
+ if let Ok(wt_stat) = repo.run_command(&["-C", &path, "diff", "HEAD", "--stat"])
+ && !wt_stat.trim().is_empty()
+ {
+ stat.push_str(&wt_stat);
+ }
+ if let Ok(wt_diff) = repo.run_command(&["-C", &path, "diff", "HEAD"])
+ && !wt_diff.trim().is_empty()
+ {
+ diff.push_str(&wt_diff);
+ }
+ }
+
+ if diff.trim().is_empty() {
+ return None;
+ }
+
+ Some(CombinedDiff { diff, stat })
+}
+
+/// Render the summary prompt template
+pub(crate) fn render_prompt(diff: &str, stat: &str) -> anyhow::Result<String> {
+ let env = Environment::new();
+ let tmpl = env.template_from_str(SUMMARY_TEMPLATE)?;
+ let rendered = tmpl.render(minijinja::context! {
+ git_diff => diff,
+ git_diff_stat => stat,
+ })?;
+ Ok(rendered)
+}
+
+/// Core summary generation pipeline: diff → cache check → LLM → cache write.
+///
+/// Returns `Ok(None)` when there are no changes to summarize (e.g., default branch
+/// with clean worktree). Returns `Ok(Some(full_summary))` on success. Errors
+/// propagate from template rendering or LLM execution.
+///
+/// Both `generate_summary` (TUI) and `SummaryGenerateTask` (list column) delegate
+/// to this function, wrapping its result with their own error formatting.
+pub(crate) fn generate_summary_core(
+ branch: &str,
+ head: &str,
+ worktree_path: Option<&Path>,
+ llm_command: &str,
+ repo: &Repository,
+) -> anyhow::Result<Option<String>> {
+ let Some(combined) = compute_combined_diff(branch, head, worktree_path, repo) else {
+ return Ok(None);
+ };
+
+ let diff_hash = hash_diff(&combined.diff);
+
+ // Check cache
+ if let Some(cached) = read_cache(repo, branch)
+ && cached.diff_hash == diff_hash
+ {
+ return Ok(Some(cached.summary));
+ }
+
+ // Prepare diff (filter large diffs)
+ let prepared = prepare_diff(combined.diff, combined.stat);
+ let prompt = render_prompt(&prepared.diff, &prepared.stat)?;
+ let summary = execute_llm_command(llm_command, &prompt)?;
+
+ // Write cache
+ write_cache(
+ repo,
+ branch,
+ &CachedSummary {
+ summary: summary.clone(),
+ diff_hash,
+ branch: branch.to_string(),
+ },
+ );
+
+ Ok(Some(summary))
+}
+
+/// Generate a summary for a single branch, using cache when available.
+///
+/// This is the TUI-friendly wrapper that returns a formatted string for all cases,
+/// including errors and "no changes" — suitable for `wt switch` preview pane.
+#[cfg_attr(windows, allow(dead_code))] // Called from select module (unix-only)
+pub(crate) fn generate_summary(
+ branch: &str,
+ head: &str,
+ worktree_path: Option<&Path>,
+ llm_command: &str,
+ repo: &Repository,
+) -> String {
+ match generate_summary_core(branch, head, worktree_path, llm_command, repo) {
+ Ok(Some(summary)) => summary,
+ Ok(None) => cformat!("<dim>No changes to summarize on {branch}.</>"),
+ Err(e) => format!("Error: {e}"),
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn test_render_prompt_includes_diff_and_stat() {
+ let result = render_prompt("diff content here", "stat content here").unwrap();
+ assert!(result.contains("diff content here"));
+ assert!(result.contains("stat content here"));
+ }
+
+ #[test]
+ fn test_hash_diff_deterministic() {
+ let h1 = hash_diff("hello world");
+ let h2 = hash_diff("hello world");
+ assert_eq!(h1, h2);
+ }
+
+ #[test]
+ fn test_hash_diff_different_inputs() {
+ let h1 = hash_diff("hello");
+ let h2 = hash_diff("world");
+ assert_ne!(h1, h2);
+ }
+}
diff --git a/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_commands_from_bare_directory.snap b/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_commands_from_bare_directory.snap
index f1a222651..3dfc24bbe 100644
--- a/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_commands_from_bare_directory.snap
+++ b/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_commands_from_bare_directory.snap
@@ -20,18 +20,21 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ 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"
---
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-^ main ^ . b834638e 1d Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+^ main ^ . b834638e 1d Initial commit
○ Showing 1 worktree
diff --git a/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_identifies_primary_correctly.snap b/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_identifies_primary_correctly.snap
index 9092b2c32..b30f85f47 100644
--- a/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_identifies_primary_correctly.snap
+++ b/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_identifies_primary_correctly.snap
@@ -20,20 +20,23 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ 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"
---
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ . b37a293c 1d Main commit
-+ feature1 _ ../feature1 b37a293c 1d Main commit
-+ feature2 _ ../feature2 b37a293c 1d Main commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^ . b37a293c 1d Main commit
++ feature1 _ ../feature1 b37a293c 1d Main commit
++ feature2 _ ../feature2 b37a293c 1d Main commit
○ Showing 3 worktrees
diff --git a/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_shows_no_bare_entry.snap b/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_shows_no_bare_entry.snap
index c2c414be4..e7d8497fa 100644
--- a/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_shows_no_bare_entry.snap
+++ b/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_shows_no_bare_entry.snap
@@ -20,18 +20,21 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ 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"
---
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ . b834638e 1d Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^ . b834638e 1d Initial commit
○ Showing 1 worktree
diff --git a/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_worktrees.snap b/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_worktrees.snap
index a5adf6802..3a8d932f5 100644
--- a/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_worktrees.snap
+++ b/tests/snapshots/integration__integration_tests__bare_repository__bare_repo_list_worktrees.snap
@@ -20,19 +20,22 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ 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"
---
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ . 6c3da842 1d Initial commit on main
-+ feature ↑ ↑1 ../feature 72413a3b 1d Work on feature
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^ . 6c3da842 1d Initial commit on main
++ feature ↑ ↑1 ../feature 72413a3b 1d Work on feature
○ Showing 2 worktrees, 1 ahead
diff --git a/tests/snapshots/integration__integration_tests__bare_repository__nested_bare_repo_list_snapshot.snap b/tests/snapshots/integration__integration_tests__bare_repository__nested_bare_repo_list_snapshot.snap
index a2b7ff11d..563392cc0 100644
--- a/tests/snapshots/integration__integration_tests__bare_repository__nested_bare_repo_list_snapshot.snap
+++ b/tests/snapshots/integration__integration_tests__bare_repository__nested_bare_repo_list_snapshot.snap
@@ -20,19 +20,22 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ 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"
---
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ . a6c13b13 1d Initial
-+ feature _ ../feature a6c13b13 1d Initial
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^ . a6c13b13 1d Initial
++ feature _ ../feature a6c13b13 1d Initial
○ Showing 2 worktrees
diff --git a/tests/snapshots/integration__integration_tests__ci_status__filters_by_repo_owner.snap b/tests/snapshots/integration__integration_tests__ci_status__filters_by_repo_owner.snap
index aeb91c44b..c3136c075 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__filters_by_repo_owner.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__filters_by_repo_owner.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__github_pr_conflicts.snap b/tests/snapshots/integration__integration_tests__ci_status__github_pr_conflicts.snap
index b1faa0a50..fc5fd5ebc 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__github_pr_conflicts.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__github_pr_conflicts.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__github_pr_failed.snap b/tests/snapshots/integration__integration_tests__ci_status__github_pr_failed.snap
index 71ce2a2c8..7eb2d45e6 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__github_pr_failed.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__github_pr_failed.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__github_pr_passed.snap b/tests/snapshots/integration__integration_tests__ci_status__github_pr_passed.snap
index aeb91c44b..c3136c075 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__github_pr_passed.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__github_pr_passed.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__github_pr_running.snap b/tests/snapshots/integration__integration_tests__ci_status__github_pr_running.snap
index a040acdd7..7735925b5 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__github_pr_running.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__github_pr_running.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__github_workflow_run.snap b/tests/snapshots/integration__integration_tests__ci_status__github_workflow_run.snap
index c1eb63544..2fd2e8076 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__github_workflow_run.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__github_workflow_run.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature _| | ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__github_workflow_running.snap b/tests/snapshots/integration__integration_tests__ci_status__github_workflow_running.snap
index c1eb63544..2fd2e8076 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__github_workflow_running.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__github_workflow_running.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature _| | ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_ci_rate_limit.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_ci_rate_limit.snap
index 3a06e5e84..e592b7dce 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_ci_rate_limit.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_ci_rate_limit.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ⚠ 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ⚠ 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ⚠ 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ⚠ f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ⚠ 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ⚠ . 05a4a45d 16h Initial commit
++ feature _| | ⚠ ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ⚠ ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ⚠ ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ⚠ ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_empty_mr_list_no_project_id.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_empty_mr_list_no_project_id.snap
index c1eb63544..2fd2e8076 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_empty_mr_list_no_project_id.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_empty_mr_list_no_project_id.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature _| | ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_filters_by_project_id.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_filters_by_project_id.snap
index aeb91c44b..c3136c075 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_filters_by_project_id.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_filters_by_project_id.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_conflicts.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_conflicts.snap
index b1faa0a50..fc5fd5ebc 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_conflicts.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_conflicts.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_failed.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_failed.snap
index 71ce2a2c8..7eb2d45e6 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_failed.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_failed.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_passed.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_passed.snap
index aeb91c44b..c3136c075 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_passed.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_passed.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_pending.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_pending.snap
index a040acdd7..7735925b5 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_pending.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_pending.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_running.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_running.snap
index a040acdd7..7735925b5 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_running.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_running.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_view_failure.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_view_failure.snap
index 3a06e5e84..e592b7dce 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_view_failure.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_mr_view_failure.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ⚠ 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ⚠ 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ⚠ 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ⚠ f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ⚠ 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ⚠ . 05a4a45d 16h Initial commit
++ feature _| | ⚠ ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ⚠ ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ⚠ ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ⚠ ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_multiple_mrs_no_project_id.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_multiple_mrs_no_project_id.snap
index c1eb63544..2fd2e8076 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_multiple_mrs_no_project_id.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_multiple_mrs_no_project_id.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature _| | ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_no_ci.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_no_ci.snap
index a0db5c4a8..102689f00 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_no_ci.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_no_ci.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_single_mr_no_project_id.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_single_mr_no_project_id.snap
index aeb91c44b..c3136c075 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_single_mr_no_project_id.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_single_mr_no_project_id.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__gitlab_stale_mr.snap b/tests/snapshots/integration__integration_tests__ci_status__gitlab_stale_mr.snap
index c9c3e2e8f..282a9c677 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__gitlab_stale_mr.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__gitlab_stale_mr.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
-+ feature ↑⇡ ↑1 +1 ../repo.feature ⇡1 ● da7d235a 1d Local commit
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature ↑⇡ ↑1 +1 ⇡1 ● ../repo.feature da7d235a 1d Local commit
○ Showing 5 worktrees, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_gitlab_remote.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_gitlab_remote.snap
index 287ee6cb6..b7f3a1c63 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_gitlab_remote.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_gitlab_remote.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature _ ../repo.feature 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature _ ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_invalid_platform_override.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_invalid_platform_override.snap
index 7888d14bd..443842b1f 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_invalid_platform_override.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_invalid_platform_override.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ? ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ? ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_platform_override_github.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_platform_override_github.snap
index 14d9eb4e6..dcb8d4913 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_platform_override_github.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_platform_override_github.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ? ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ? ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__mixed_check_types.snap b/tests/snapshots/integration__integration_tests__ci_status__mixed_check_types.snap
index a040acdd7..7735925b5 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__mixed_check_types.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__mixed_check_types.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__no_ci_checks.snap b/tests/snapshots/integration__integration_tests__ci_status__no_ci_checks.snap
index a0db5c4a8..102689f00 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__no_ci_checks.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__no_ci_checks.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__stale_pr.snap b/tests/snapshots/integration__integration_tests__ci_status__stale_pr.snap
index c9c3e2e8f..282a9c677 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__stale_pr.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__stale_pr.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
-+ feature ↑⇡ ↑1 +1 ../repo.feature ⇡1 ● da7d235a 1d Local commit
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature ↑⇡ ↑1 +1 ⇡1 ● ../repo.feature da7d235a 1d Local commit
○ Showing 5 worktrees, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__status_context_failure.snap b/tests/snapshots/integration__integration_tests__ci_status__status_context_failure.snap
index 71ce2a2c8..7eb2d45e6 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__status_context_failure.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__status_context_failure.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__status_context_pending.snap b/tests/snapshots/integration__integration_tests__ci_status__status_context_pending.snap
index a040acdd7..7735925b5 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__status_context_pending.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__status_context_pending.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | ● 05a4a45d 16h Initial commit
-+ feature _| ../repo.feature | ● 05a4a45d 16h Initial commit
-+ feature-a ↑| ↑1 +1 ../repo.feature-a | ● 1b87d473 16h Add feature-a file
-+ feature-b ↑| ↑1 +1 ../repo.feature-b | ● f62940fc 16h Add feature-b file
-+ feature-c ↑| ↑1 +1 ../repo.feature-c | ● 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | ● . 05a4a45d 16h Initial commit
++ feature _| | ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑| ↑1 +1 | ● ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑| ↑1 +1 | ● ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑| ↑1 +1 | ● ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__ci_status__url_based_pushremote.snap b/tests/snapshots/integration__integration_tests__ci_status__url_based_pushremote.snap
index 74a5490a1..4aa36bd6a 100644
--- a/tests/snapshots/integration__integration_tests__ci_status__url_based_pushremote.snap
+++ b/tests/snapshots/integration__integration_tests__ci_status__url_based_pushremote.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature _ ../repo.feature ● 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature _ ● ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_approved_commands_copies_to_approvals_file.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_approved_commands_copies_to_approvals_file.snap
index f9fee5bc8..586c9c14c 100644
--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_approved_commands_copies_to_approvals_file.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_approved_commands_copies_to_approvals_file.snap
@@ -38,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_project_level_shows_warning.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_project_level_shows_warning.snap
index 5422ccc66..e8105aee1 100644
--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_project_level_shows_warning.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_project_level_shows_warning.snap
@@ -38,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_section_shows_warning.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_section_shows_warning.snap
index 5422ccc66..e8105aee1 100644
--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_section_shows_warning.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_commit_generation_section_shows_warning.snap
@@ -38,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap
index 5422ccc66..e8105aee1 100644
--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_show_warning.snap
@@ -38,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap
index d4555b5a3..41183f0e5 100644
--- a/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__deprecated_template_variables_verbose_shows_content.snap
@@ -39,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__config_show__explicit_config_path_not_found_shows_warning.snap b/tests/snapshots/integration__integration_tests__config_show__explicit_config_path_not_found_shows_warning.snap
index 03f034e6b..a0f51638d 100644
--- a/tests/snapshots/integration__integration_tests__config_show__explicit_config_path_not_found_shows_warning.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__explicit_config_path_not_found_shows_warning.snap
@@ -26,10 +26,13 @@ info:
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]"
@@ -37,11 +40,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__config_show__wt_list_skips_migration_file_after_first_write.snap b/tests/snapshots/integration__integration_tests__config_show__wt_list_skips_migration_file_after_first_write.snap
index 728b611b7..7dbc64a9a 100644
--- a/tests/snapshots/integration__integration_tests__config_show__wt_list_skips_migration_file_after_first_write.snap
+++ b/tests/snapshots/integration__integration_tests__config_show__wt_list_skips_migration_file_after_first_write.snap
@@ -38,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ? ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ? ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 1 with changes, 3 ahead
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 2ff14c801..feb2376bc 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_create.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_create.snap
@@ -106,10 +106,11 @@ Creates ~/.config/worktrunk/config.toml with the following content:
# Persistent flag values for `wt list`. Override on command line as needed.
#
# [list]
- # full = false # Show CI status and main…± diffstat columns (--full)
+ # summary = false # Enable LLM branch summaries (requires [commit.generation])
+ #
+ # full = false # Show CI, main…± diffstat, and LLM summaries (--full)
# branches = false # Include branches without worktrees (--branches)
# remotes = false # Include remote-only branches (--remotes)
- # summary = false # AI branch summaries in picker tab 5 (requires [commit.generation])
#
# ### Commit
#
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 e3f40be7b..edbab82d1 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_long.snap
@@ -151,10 +151,11 @@ See LLM commits docs for setup and Custom prompt templates for template customiz
Persistent flag values for wt list. Override on command line as needed.
[list]
- full = false # Show CI status and main…± diffstat columns (--full)
+ summary = false # Enable LLM branch summaries (requires [commit.generation])
+ 
+ full = false # Show CI, main…± diffstat, and LLM summaries (--full)
branches = false # Include branches without worktrees (--branches)
remotes = false # Include remote-only branches (--remotes)
- summary = false # AI branch summaries in picker tab 5 (requires [commit.generation])
Commit
diff --git a/tests/snapshots/integration__integration_tests__help__help_list_long.snap b/tests/snapshots/integration__integration_tests__help__help_list_long.snap
index a00d65110..686bca0a7 100644
--- a/tests/snapshots/integration__integration_tests__help__help_list_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_list_long.snap
@@ -15,10 +15,13 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ WORKTRUNK_APPROVALS_PATH: /nonexistent/test/approvals.toml
WORKTRUNK_CONFIG_PATH: /nonexistent/test/config.toml
+ WORKTRUNK_SYSTEM_CONFIG_PATH: /etc/xdg/worktrunk/config.toml
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"
---
@@ -48,7 +51,7 @@ Usage: wt list [OPTIONS]
Include remote branches
--full
- Include CI status and diff analysis (slower)
+ Show CI, diff analysis, and LLM summaries
--progressive
Show fast info immediately, update with slow info
@@ -68,9 +71,9 @@ Usage: wt list [OPTIONS]
-v, --verbose...
Verbose output (-v: hooks, templates; -vv: debug report)
-Shows uncommitted changes, divergence from the default branch and remote, and optional CI status.
+Shows uncommitted changes, divergence from the default branch and remote, and optional CI status and LLM summaries.
-The table renders progressively: branch names, paths, and commit hashes appear immediately, then status, divergence, and other columns fill in as background git operations complete. With --full, CI status fetches from the network — the table displays instantly and CI fills in as results arrive.
+The table renders progressively: branch names, paths, and commit hashes appear immediately, then status, divergence, and other columns fill in as background git operations complete. With --full, CI status fetches from the network and LLM summaries are generated — the table displays instantly and columns fill in as results arrive.
Examples
@@ -78,7 +81,7 @@ List all worktrees:
$ wt list
-Include CI status and line diffs:
+Include CI status, line diffs, and LLM summaries:
$ wt list --full
@@ -92,20 +95,21 @@ Output as JSON for scripting:
Columns
- Column Shows
- ─────── ─────────────────────────────────────────────────────────────────
- Branch Branch name
- Status Compact symbols (see below)
- HEAD± Uncommitted changes: +added -deleted lines
- main↕ Commits ahead/behind default branch
- main…± Line diffs since the merge-base with the default branch (--full)
- Path Worktree directory
- Remote⇅ Commits ahead/behind tracking branch
- URL Dev server URL from project config (dimmed if port not listening)
- CI Pipeline status (--full)
- Commit Short hash (8 chars)
- Age Time since last commit
- Message Last commit message (truncated)
+ Column Shows
+ ─────── ─────────────────────────────────────────────────────────────────────────────────────────────────
+ Branch Branch name
+ Status Compact symbols (see below)
+ HEAD± Uncommitted changes: +added -deleted lines
+ main↕ Commits ahead/behind default branch
+ main…± Line diffs since the merge-base with the default branch (--full)
+ Summary LLM-generated branch summary (--full + summary = true, requires commit.generation) (experimental)
+ Remote⇅ Commits ahead/behind tracking branch
+ CI Pipeline status (--full)
+ Path Worktree directory
+ URL Dev server URL from project config (dimmed if port not listening)
+ Commit Short hash (8 chars)
+ Age Time since last commit
+ Message Last commit message (truncated)
Note: main↕ and main…± refer to the default branch (header label stays main for compactness). main…± uses a merge-base (three-dot) diff.
@@ -125,6 +129,12 @@ The CI column shows GitHub/GitLab pipeline status:
CI indicators are clickable links to the PR or pipeline page. Any CI dot appears dimmed when there are unpushed local changes (stale status). PRs/MRs are checked first, then branch workflows/pipelines for branches with an upstream. Local-only branches show blank; remote-only branches (visible with --remotes) get CI status detection. Results are cached for 30-60 seconds; use wt config state to view or clear.
+LLM summaries (experimental)
+
+With --full, summary = true, and a commit.generation command configured, the Summary column shows an LLM-generated one-line description of each branch's changes relative to the default branch.
+
+Disabled by default — when enabled, each branch's diff is sent to the configured LLM for summarization. Results are cached until the diff changes.
+
Status symbols
The Status column has multiple subcolumns. Within each, only the first matching symbol is shown (listed in priority order):
diff --git a/tests/snapshots/integration__integration_tests__help__help_list_narrow_80.snap b/tests/snapshots/integration__integration_tests__help__help_list_narrow_80.snap
index 961be202b..cdeaa8349 100644
--- a/tests/snapshots/integration__integration_tests__help__help_list_narrow_80.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_list_narrow_80.snap
@@ -15,10 +15,13 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ WORKTRUNK_APPROVALS_PATH: /nonexistent/test/approvals.toml
WORKTRUNK_CONFIG_PATH: /nonexistent/test/config.toml
+ WORKTRUNK_SYSTEM_CONFIG_PATH: /etc/xdg/worktrunk/config.toml
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"
---
@@ -48,7 +51,7 @@ Usage: wt list [OPTIONS]
Include remote branches
--full
- Include CI status and diff analysis (slower)
+ Show CI, diff analysis, and LLM summaries
--progressive
Show fast info immediately, update with slow info
@@ -70,12 +73,13 @@ Usage: wt list [OPTIONS]
Verbose output (-v: hooks, templates; -vv: debug report)
Shows uncommitted changes, divergence from the default branch and remote, and
-optional CI status.
+optional CI status and LLM summaries.
The table renders progressively: branch names, paths, and commit hashes appear
immediately, then status, divergence, and other columns fill in as background
-git operations complete. With --full, CI status fetches from the network — the
-table displays instantly and CI fills in as results arrive.
+git operations complete. With --full, CI status fetches from the network and LLM
+ summaries are generated — the table displays instantly and columns fill in as
+results arrive.
Examples
@@ -83,7 +87,7 @@ List all worktrees:
$ wt list
-Include CI status and line diffs:
+Include CI status, line diffs, and LLM summaries:
$ wt list --full
@@ -97,20 +101,22 @@ Output as JSON for scripting:
Columns
- Column Shows
- ─────── ─────────────────────────────────────────────────────────────────
- Branch Branch name
- Status Compact symbols (see below)
- HEAD± Uncommitted changes: +added -deleted lines
- main↕ Commits ahead/behind default branch
- main…± Line diffs since the merge-base with the default branch (--full)
- Path Worktree directory
- Remote⇅ Commits ahead/behind tracking branch
- URL Dev server URL from project config (dimmed if port not listening)
- CI Pipeline status (--full)
- Commit Short hash (8 chars)
- Age Time since last commit
- Message Last commit message (truncated)
+ Column Shows
+ ─────── ────────────────────────────────────────────────────────────────────
+ Branch Branch name
+ Status Compact symbols (see below)
+ HEAD± Uncommitted changes: +added -deleted lines
+ main↕ Commits ahead/behind default branch
+ main…± Line diffs since the merge-base with the default branch (--full)
+ Summary LLM-generated branch summary (--full + summary = true, requires
+ commit.generation) (experimental)
+ Remote⇅ Commits ahead/behind tracking branch
+ CI Pipeline status (--full)
+ Path Worktree directory
+ URL Dev server URL from project config (dimmed if port not listening)
+ Commit Short hash (8 chars)
+ Age Time since last commit
+ Message Last commit message (truncated)
Note: main↕ and main…± refer to the default branch (header label stays main for
compactness). main…± uses a merge-base (three-dot) diff.
@@ -136,6 +142,15 @@ Local-only branches show blank; remote-only branches (visible with --remotes
get CI status detection. Results are cached for 30-60 seconds; use wt config
state to view or clear.
+LLM summaries (experimental)
+
+With --full, summary = true, and a commit.generation command configured, the
+Summary column shows an LLM-generated one-line description of each branch's
+changes relative to the default branch.
+
+Disabled by default — when enabled, each branch's diff is sent to the configured
+ LLM for summarization. Results are cached until the diff changes.
+
Status symbols
The Status column has multiple subcolumns. Within each, only the first matching
diff --git a/tests/snapshots/integration__integration_tests__help__help_list_short.snap b/tests/snapshots/integration__integration_tests__help__help_list_short.snap
index 9a33e6e4e..55b0b9a29 100644
--- a/tests/snapshots/integration__integration_tests__help__help_list_short.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_list_short.snap
@@ -15,10 +15,13 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ WORKTRUNK_APPROVALS_PATH: /nonexistent/test/approvals.toml
WORKTRUNK_CONFIG_PATH: /nonexistent/test/config.toml
+ WORKTRUNK_SYSTEM_CONFIG_PATH: /etc/xdg/worktrunk/config.toml
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"
---
@@ -39,7 +42,7 @@ Usage: wt list [OPTIONS]
--format <FORMAT> Output format (table, json) [default: table]
--branches Include branches without worktrees
--remotes Include remote branches
- --full Include CI status and diff analysis (slower)
+ --full Show CI, diff analysis, and LLM summaries
--progressive Show fast info immediately, update with slow info
-h, --help Print help (see more with '--help')
diff --git a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
index 41cc3c618..b5483c165 100644
--- a/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_switch_long.snap
@@ -176,7 +176,7 @@ When called without arguments, wt switch opens an interactive picker to
2. log — Recent commits; commits already on the default branch have dimmed hashes
3. main…± — Diff of changes since the merge-base with the default branch
4. remote⇅ — Diff vs upstream tracking branch (ahead/behind)
-5. summary — AI-generated branch summary (requires [list] summary = true and [commit.generation])
+5. summary — LLM-generated branch summary (requires [list] summary = true and [commit.generation])
Pager configuration: The preview panel pipes diff output through git's pager. Override in user config:
diff --git a/tests/snapshots/integration__integration_tests__list__commit_conflicts_with_full.snap b/tests/snapshots/integration__integration_tests__list__commit_conflicts_with_full.snap
index 07ddce8a3..40eca65a7 100644
--- a/tests/snapshots/integration__integration_tests__list__commit_conflicts_with_full.snap
+++ b/tests/snapshots/integration__integration_tests__list__commit_conflicts_with_full.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^⇡ . ⇡2 1edd043e 1d Main changes shared.txt
-+ feature-a ↕ ↑1 ↓2 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature ✗ ↑1 ↓1 +1 -1 ../repo.feature dee7183a 1d Feature changes shared.txt
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^⇡ ⇡2 . 1edd043e 1d Main changes shared.txt
++ feature-a ↕ ↑1 ↓2 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature ✗ ↑1 ↓1 +1 -1 ../repo.feature dee7183a 1d Feature changes shared.txt
○ Showing 5 worktrees, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__commit_conflicts_without_full.snap b/tests/snapshots/integration__integration_tests__list__commit_conflicts_without_full.snap
index b7a3776ba..a4efac1a5 100644
--- a/tests/snapshots/integration__integration_tests__list__commit_conflicts_without_full.snap
+++ b/tests/snapshots/integration__integration_tests__list__commit_conflicts_without_full.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^⇡ . ⇡2 1edd043e 1d Main changes shared.txt
-+ feature-a ↕ ↑1 ↓2 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature ✗ ↑1 ↓1 ../repo.feature dee7183a 1d Feature changes shared.txt
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^⇡ ⇡2 . 1edd043e 1d Main changes shared.txt
++ feature-a ↕ ↑1 ↓2 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature ✗ ↑1 ↓1 ../repo.feature dee7183a 1d Feature changes shared.txt
○ Showing 5 worktrees, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_branch_only_with_status.snap b/tests/snapshots/integration__integration_tests__list__list_branch_only_with_status.snap
index 73999e15c..1f183d641 100644
--- a/tests/snapshots/integration__integration_tests__list__list_branch_only_with_status.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_branch_only_with_status.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
branch-only /_ 05a4a45d 16h Initial commit
○ Showing 4 worktrees, 1 branches, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_detached_head.snap b/tests/snapshots/integration__integration_tests__list__list_detached_head.snap
index 3ee469967..c289c84ac 100644
--- a/tests/snapshots/integration__integration_tests__list__list_detached_head.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_detached_head.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ - ⚑^ . 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ - ⚑^ . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_detached_head_in_worktree.snap b/tests/snapshots/integration__integration_tests__list__list_detached_head_in_worktree.snap
index 2964c992f..e12af92ff 100644
--- a/tests/snapshots/integration__integration_tests__list__list_detached_head_in_worktree.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_detached_head_in_worktree.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ - ⚑_ ../repo.feature 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ - ⚑_ ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_empty_repo.snap b/tests/snapshots/integration__integration_tests__list__list_empty_repo.snap
index 91e2ad01f..8d7817352 100644
--- a/tests/snapshots/integration__integration_tests__list__list_empty_repo.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_empty_repo.snap
@@ -22,7 +22,9 @@ info:
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"
@@ -34,8 +36,8 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^ . ⋯ ⋯
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^ . ⋯ ⋯
○ Showing 1 worktree
diff --git a/tests/snapshots/integration__integration_tests__list__list_full_with_nonexistent_default_branch.snap b/tests/snapshots/integration__integration_tests__list__list_full_with_nonexistent_default_branch.snap
index bcf093298..f6617ef31 100644
--- a/tests/snapshots/integration__integration_tests__list__list_full_with_nonexistent_default_branch.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_full_with_nonexistent_default_branch.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ⋯ . | 05a4a45d 16h Initial commit
-+ feature-a ⋯ ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ⋯ ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ⋯ ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ⋯ | . 05a4a45d 16h Initial commit
++ feature-a ⋯ ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ⋯ ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ⋯ ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees
diff --git a/tests/snapshots/integration__integration_tests__list__list_handles_orphan_branch.snap b/tests/snapshots/integration__integration_tests__list__list_handles_orphan_branch.snap
index 9848b3283..478a494ac 100644
--- a/tests/snapshots/integration__integration_tests__list__list_handles_orphan_branch.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_handles_orphan_branch.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
assets /∅ 50209039 1d Add asset
○ Showing 4 worktrees, 1 branches, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_large_diffs_alignment.snap b/tests/snapshots/integration__integration_tests__list__list_large_diffs_alignment.snap
index b75940add..1405a2ced 100644
--- a/tests/snapshots/integration__integration_tests__list__list_large_diffs_alignment.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_large_diffs_alignment.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,14 +38,14 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ fix ? – 💬 ../repo.fix 05a4a45d 16h Initial commit
-+ diverged ! ↑ 💬 +40 -60 ↑1 ../repo.diverged 96d1fd92 1d Diverged commit
-+ feature-changes !? ↑ 🤖 +50 -100 ↑1 ../repo.feature-changes f5306ded 1d Add 100 lines
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ fix ? – 💬 ../repo.fix 05a4a45d 16h Initial commit
++ diverged ! ↑ 💬 +40 -60 ↑1 ../repo.diverged 96d1fd92 1d Diverged commit
++ feature-changes !? ↑ 🤖 +50 -100 ↑1 ../repo.feature-changes f5306ded 1d Add 100 lines
○ Showing 7 worktrees, 3 with changes, 5 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_locked_no_reason.snap b/tests/snapshots/integration__integration_tests__list__list_locked_no_reason.snap
index 5bc5da572..bfcf56688 100644
--- a/tests/snapshots/integration__integration_tests__list__list_locked_no_reason.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_locked_no_reason.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ locked-no-reason ⊞_ ../repo.locked-no-reason 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ locked-no-reason ⊞_ ../repo.locked-no-reason 05a4a45d 16h Initial commit
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_locked_worktree.snap b/tests/snapshots/integration__integration_tests__list__list_locked_worktree.snap
index 4406dc808..7e9b9b5ff 100644
--- a/tests/snapshots/integration__integration_tests__list__list_locked_worktree.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_locked_worktree.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ locked-feature ⊞_ ../repo.locked-feature 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ locked-feature ⊞_ ../repo.locked-feature 05a4a45d 16h Initial commit
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_long_commit_message.snap b/tests/snapshots/integration__integration_tests__list__list_long_commit_message.snap
index 6c989c3a8..6fac9c7ff 100644
--- a/tests/snapshots/integration__integration_tests__list__list_long_commit_message.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_long_commit_message.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^⇡ . ⇡2 8cf0f3d3 1d Short message
-+ feature-a ↕ ↑1 ↓2 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^⇡ ⇡2 . 8cf0f3d3 1d Short message
++ feature-a ↕ ↑1 ↓2 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_many_worktrees_with_varied_stats.snap b/tests/snapshots/integration__integration_tests__list__list_many_worktrees_with_varied_stats.snap
index b3efa4256..15ca7624f 100644
--- a/tests/snapshots/integration__integration_tests__list__list_many_worktrees_with_varied_stats.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_many_worktrees_with_varied_stats.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,15 +38,15 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ medium-name _ ../repo.medium-name 05a4a45d 16h Initial commit
-+ short _ ../repo.short 05a4a45d 16h Initial commit
-+ very-long-branch-name-here _ ../repo.very-long-branch-name-here 05a4a45d 16h Initial commit
-+ with-changes _ ../repo.with-changes 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ medium-name _ ../repo.medium-name 05a4a45d 16h Initial commit
++ short _ ../repo.short 05a4a45d 16h Initial commit
++ very-long-branch-name-here _ ../repo.very-long-branch-name-here 05a4a45d 16h Initial commit
++ with-changes _ ../repo.with-changes 05a4a45d 16h Initial commit
○ Showing 8 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_maximum_working_tree_symbols.snap b/tests/snapshots/integration__integration_tests__list__list_maximum_working_tree_symbols.snap
index b54e4060a..23c5d7474 100644
--- a/tests/snapshots/integration__integration_tests__list__list_maximum_working_tree_symbols.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_maximum_working_tree_symbols.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature +!? ↑ +2 -3 ↑1 ../repo.feature da422a12 1d Add files
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature +!? ↑ +2 -3 ↑1 ../repo.feature da422a12 1d Add files
○ Showing 5 worktrees, 1 with changes, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_multiple_worktrees.snap b/tests/snapshots/integration__integration_tests__list__list_multiple_worktrees.snap
index d2f117fd8..d8e9dae22 100644
--- a/tests/snapshots/integration__integration_tests__list__list_multiple_worktrees.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_multiple_worktrees.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_nested_worktree_current_indicator.snap b/tests/snapshots/integration__integration_tests__list__list_nested_worktree_current_indicator.snap
index 09060c0af..26139bce1 100644
--- a/tests/snapshots/integration__integration_tests__list__list_nested_worktree_current_indicator.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_nested_worktree_current_indicator.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ feature ⚑_ ./.worktrees/feature 05a4a45d 16h Initial commit
-^ main ? ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ feature ⚑_ ./.worktrees/feature 05a4a45d 16h Initial commit
+^ main ? ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_no_progressive_flag.snap b/tests/snapshots/integration__integration_tests__list__list_no_progressive_flag.snap
index fe56e2a20..ca927f45e 100644
--- a/tests/snapshots/integration__integration_tests__list__list_no_progressive_flag.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_no_progressive_flag.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature _ ../repo.feature 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature _ ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_ordering_rules.snap b/tests/snapshots/integration__integration_tests__list__list_ordering_rules.snap
index f64fc6851..0ba879c00 100644
--- a/tests/snapshots/integration__integration_tests__list__list_ordering_rules.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_ordering_rules.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,15 +38,15 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ feature-current ↑ ↑1 ../repo.feature-current f8d9dc91 23h Commit at 01:00
-^ main ^⇡ . ⇡1 01cab36c 1d Initial commit on main
-+ feature-a ↕ ↑1 ↓1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature-newest ↑ ↑1 ../repo.feature-newest 57c29ea7 21h Commit at 03:00
-+ feature-middle ↑ ↑1 ../repo.feature-middle a63f3739 22h Commit at 02:00
-+ feature-oldest ↑ ↑1 ../repo.feature-oldest a9b3e5b7 23h Commit at 00:30
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ feature-current ↑ ↑1 ../repo.feature-current f8d9dc91 23h Commit at 01:00
+^ main ^⇡ ⇡1 . 01cab36c 1d Initial commit on main
++ feature-a ↕ ↑1 ↓1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature-newest ↑ ↑1 ../repo.feature-newest 57c29ea7 21h Commit at 03:00
++ feature-middle ↑ ↑1 ../repo.feature-middle a63f3739 22h Commit at 02:00
++ feature-oldest ↑ ↑1 ../repo.feature-oldest a9b3e5b7 23h Commit at 00:30
○ Showing 8 worktrees, 7 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_previous_worktree_gutter.snap b/tests/snapshots/integration__integration_tests__list__list_previous_worktree_gutter.snap
index cdd77fae2..9156ea934 100644
--- a/tests/snapshots/integration__integration_tests__list__list_previous_worktree_gutter.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_previous_worktree_gutter.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature _ ../repo.feature 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature _ ../repo.feature 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_primary_on_different_branch.snap b/tests/snapshots/integration__integration_tests__list__list_primary_on_different_branch.snap
index 995a5ca1c..fb525faaa 100644
--- a/tests/snapshots/integration__integration_tests__list__list_primary_on_different_branch.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_primary_on_different_branch.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ develop ⚑^ . 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ develop ⚑^ . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_progressive_flag.snap b/tests/snapshots/integration__integration_tests__list__list_progressive_flag.snap
index 845a01767..c5d5e1100 100644
--- a/tests/snapshots/integration__integration_tests__list__list_progressive_flag.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_progressive_flag.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_progressive_with_branches.snap b/tests/snapshots/integration__integration_tests__list__list_progressive_with_branches.snap
index b666f6d42..df3c5e92d 100644
--- a/tests/snapshots/integration__integration_tests__list__list_progressive_with_branches.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_progressive_with_branches.snap
@@ -26,10 +26,13 @@ info:
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]"
@@ -37,11 +40,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
orphan-1 /_ 05a4a45d 16h Initial commit
orphan-2 /_ 05a4a45d 16h Initial commit
diff --git a/tests/snapshots/integration__integration_tests__list__list_shows_warning_on_git_error.snap b/tests/snapshots/integration__integration_tests__list__list_shows_warning_on_git_error.snap
index cf47a8a7c..840a9bc5f 100644
--- a/tests/snapshots/integration__integration_tests__list__list_shows_warning_on_git_error.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_shows_warning_on_git_error.snap
@@ -24,7 +24,9 @@ info:
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"
@@ -36,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature ⋯ ../repo.feature ⋯ ⋯
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature ⋯ ../repo.feature ⋯ ⋯
○ Showing 5 worktrees, 3 ahead. 1 task failed
diff --git a/tests/snapshots/integration__integration_tests__list__list_single_worktree.snap b/tests/snapshots/integration__integration_tests__list__list_single_worktree.snap
index d2f117fd8..d8e9dae22 100644
--- a/tests/snapshots/integration__integration_tests__list__list_single_worktree.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_single_worktree.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_skips_expensive_for_stale_branches.snap b/tests/snapshots/integration__integration_tests__list__list_skips_expensive_for_stale_branches.snap
index 58d8e530d..e57b6008a 100644
--- a/tests/snapshots/integration__integration_tests__list__list_skips_expensive_for_stale_branches.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_skips_expensive_for_stale_branches.snap
@@ -25,10 +25,13 @@ info:
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_EXPENSIVE_THRESHOLD: "1"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
@@ -37,12 +40,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^⇡ . ⇡2 c3d37f26 1d Third commit on main
-+ feature-a ↕ ↑1 ↓2 … ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 … ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 … ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature ↕ ↑1 ↓2 … ../repo.feature 0acf205b 1d Feature work
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^⇡ ⇡2 . c3d37f26 1d Third commit on main
++ feature-a ↕ ↑1 ↓2 … ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 … ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 … ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature ↕ ↑1 ↓2 … ../repo.feature 0acf205b 1d Feature work
○ Showing 5 worktrees, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_skips_expensive_for_stale_branches_only.snap b/tests/snapshots/integration__integration_tests__list__list_skips_expensive_for_stale_branches_only.snap
index 411ffb54a..3c76e0918 100644
--- a/tests/snapshots/integration__integration_tests__list__list_skips_expensive_for_stale_branches_only.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_skips_expensive_for_stale_branches_only.snap
@@ -26,10 +26,13 @@ info:
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_EXPENSIVE_THRESHOLD: "1"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
@@ -38,11 +41,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^⇡ . ⇡2 c3d37f26 1d Third commit on main
-+ feature-a ↕ ↑1 ↓2 … ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 … ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 … ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^⇡ ⇡2 . c3d37f26 1d Third commit on main
++ feature-a ↕ ↑1 ↓2 … ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 … ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 … ../repo.feature-c 345c7c93 16h Add feature-c file
stale-branch /↓ ↓2 … 05a4a45d 16h Initial commit
○ Showing 4 worktrees, 1 branches, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_skips_operations_for_prunable_worktrees.snap b/tests/snapshots/integration__integration_tests__list__list_skips_operations_for_prunable_worktrees.snap
index 29e3be483..2ef337bca 100644
--- a/tests/snapshots/integration__integration_tests__list__list_skips_operations_for_prunable_worktrees.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_skips_operations_for_prunable_worktrees.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature ⊟ ⋯ ../repo.feature 05a4a45d ⋯ ⋯
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature ⊟ ⋯ ../repo.feature 05a4a45d ⋯ ⋯
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_status_column_padding_with_emoji.snap b/tests/snapshots/integration__integration_tests__list__list_status_column_padding_with_emoji.snap
index 0e5dd9208..776cadfae 100644
--- a/tests/snapshots/integration__integration_tests__list__list_status_column_padding_with_emoji.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_status_column_padding_with_emoji.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,14 +38,14 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ main-symbol ↑ 💬 ↑1 ../repo.main-symbol 113f1df5 1d Symbol commit
-+ pr-link ↑ 🤖 ↑1 ../repo.pr-link 152b5dea 1d PR commit
-+ wli-sequence !? ↑ 🤖 +1 -112 ↑1 ../repo.wli-sequence 4353e28e 1d Initial content
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ main-symbol ↑ 💬 ↑1 ../repo.main-symbol 113f1df5 1d Symbol commit
++ pr-link ↑ 🤖 ↑1 ../repo.pr-link 152b5dea 1d PR commit
++ wli-sequence !? ↑ 🤖 +1 -112 ↑1 ../repo.wli-sequence 4353e28e 1d Initial content
○ Showing 7 worktrees, 1 with changes, 6 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_task_dag_detached_head.snap b/tests/snapshots/integration__integration_tests__list__list_task_dag_detached_head.snap
index 1ac50e5f0..68fc52330 100644
--- a/tests/snapshots/integration__integration_tests__list__list_task_dag_detached_head.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_task_dag_detached_head.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ - ⚑^ . 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ - ⚑^ . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_task_dag_full_with_diffs.snap b/tests/snapshots/integration__integration_tests__list__list_task_dag_full_with_diffs.snap
index 1d0e9ef94..ba96dae0c 100644
--- a/tests/snapshots/integration__integration_tests__list__list_task_dag_full_with_diffs.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_task_dag_full_with_diffs.snap
@@ -26,10 +26,13 @@ info:
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]"
@@ -37,11 +40,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ? ↑ ↑1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-c ↑ ↑1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature-b ↑ ↑2 +2 -1 ../repo.feature-b 391b2a76 1d Test commit
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ? ↑ ↑1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-c ↑ ↑1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature-b ↑ ↑2 +2 -1 ../repo.feature-b 391b2a76 1d Test commit
○ Showing 4 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_task_dag_many_worktrees.snap b/tests/snapshots/integration__integration_tests__list__list_task_dag_many_worktrees.snap
index cd2f75375..d1fad8309 100644
--- a/tests/snapshots/integration__integration_tests__list__list_task_dag_many_worktrees.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_task_dag_many_worktrees.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,21 +39,21 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-1 _ ../repo.feature-1 05a4a45d 16h Initial commit
-+ feature-10 _ ../repo.feature-10 05a4a45d 16h Initial commit
-+ feature-2 _ ../repo.feature-2 05a4a45d 16h Initial commit
-+ feature-3 _ ../repo.feature-3 05a4a45d 16h Initial commit
-+ feature-4 _ ../repo.feature-4 05a4a45d 16h Initial commit
-+ feature-5 _ ../repo.feature-5 05a4a45d 16h Initial commit
-+ feature-6 _ ../repo.feature-6 05a4a45d 16h Initial commit
-+ feature-7 _ ../repo.feature-7 05a4a45d 16h Initial commit
-+ feature-8 _ ../repo.feature-8 05a4a45d 16h Initial commit
-+ feature-9 _ ../repo.feature-9 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-1 _ ../repo.feature-1 05a4a45d 16h Initial commit
++ feature-10 _ ../repo.feature-10 05a4a45d 16h Initial commit
++ feature-2 _ ../repo.feature-2 05a4a45d 16h Initial commit
++ feature-3 _ ../repo.feature-3 05a4a45d 16h Initial commit
++ feature-4 _ ../repo.feature-4 05a4a45d 16h Initial commit
++ feature-5 _ ../repo.feature-5 05a4a45d 16h Initial commit
++ feature-6 _ ../repo.feature-6 05a4a45d 16h Initial commit
++ feature-7 _ ../repo.feature-7 05a4a45d 16h Initial commit
++ feature-8 _ ../repo.feature-8 05a4a45d 16h Initial commit
++ feature-9 _ ../repo.feature-9 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 14 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_task_dag_multiple_worktrees.snap b/tests/snapshots/integration__integration_tests__list__list_task_dag_multiple_worktrees.snap
index 845a01767..c5d5e1100 100644
--- a/tests/snapshots/integration__integration_tests__list__list_task_dag_multiple_worktrees.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_task_dag_multiple_worktrees.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_task_dag_single_worktree.snap b/tests/snapshots/integration__integration_tests__list__list_task_dag_single_worktree.snap
index 845a01767..c5d5e1100 100644
--- a/tests/snapshots/integration__integration_tests__list__list_task_dag_single_worktree.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_task_dag_single_worktree.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_task_dag_with_locked_worktree.snap b/tests/snapshots/integration__integration_tests__list__list_task_dag_with_locked_worktree.snap
index 4aabd958e..74a8adce9 100644
--- a/tests/snapshots/integration__integration_tests__list__list_task_dag_with_locked_worktree.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_task_dag_with_locked_worktree.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,13 +39,13 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ locked ⊞_ ../repo.locked 05a4a45d 16h Initial commit
-+ normal _ ../repo.normal 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ locked ⊞_ ../repo.locked 05a4a45d 16h Initial commit
++ normal _ ../repo.normal 05a4a45d 16h Initial commit
○ Showing 6 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_task_dag_with_upstream.snap b/tests/snapshots/integration__integration_tests__list__list_task_dag_with_upstream.snap
index 06059bbbe..c89bff74f 100644
--- a/tests/snapshots/integration__integration_tests__list__list_task_dag_with_upstream.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_task_dag_with_upstream.snap
@@ -26,10 +26,13 @@ info:
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]"
@@ -37,13 +40,13 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^⇡ . ⇡1 01cab36c 1d Initial commit on main
-+ feature-a ↕ ↑1 ↓1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ ahead ↑⇡ ↑1 +1 ../repo.ahead ⇡1 76a1bef4 1d Ahead commit
-+ in-sync _| ../repo.in-sync | 01cab36c 1d Initial commit on main
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^⇡ ⇡1 . 01cab36c 1d Initial commit on main
++ feature-a ↕ ↑1 ↓1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ ahead ↑⇡ ↑1 +1 ⇡1 ../repo.ahead 76a1bef4 1d Ahead commit
++ in-sync _| | ../repo.in-sync 01cab36c 1d Initial commit on main
○ Showing 6 worktrees, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_unicode_commit_message.snap b/tests/snapshots/integration__integration_tests__list__list_unicode_commit_message.snap
index a1c13e05e..1a85aae67 100644
--- a/tests/snapshots/integration__integration_tests__list__list_unicode_commit_message.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_unicode_commit_message.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^⇡ . ⇡2 ba0edbd5 1d Fix bug with café ☕ handling
-+ feature-a ↕ ↑1 ↓2 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature-test ⊂ ↓1 ../repo.feature-test 4b80044d 1d Add support for 日本語 and émoji 🎉
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^⇡ ⇡2 . ba0edbd5 1d Fix bug with café ☕ handling
++ feature-a ↕ ↑1 ↓2 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature-test ⊂ ↓1 ../repo.feature-test 4b80044d 1d Add support for 日本語 and émoji 🎉
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_user_marker_with_special_characters.snap b/tests/snapshots/integration__integration_tests__list__list_user_marker_with_special_characters.snap
index 0576a681b..d3d6ab913 100644
--- a/tests/snapshots/integration__integration_tests__list__list_user_marker_with_special_characters.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_user_marker_with_special_characters.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,13 +38,13 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ emoji _ 🔄 ../repo.emoji 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ multi _ 👨‍💻 ../repo.multi 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ emoji _ 🔄 ../repo.emoji 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ multi _ 👨‍💻 ../repo.multi 05a4a45d 16h Initial commit
○ Showing 6 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_warns_when_default_branch_missing_worktree.snap b/tests/snapshots/integration__integration_tests__list__list_warns_when_default_branch_missing_worktree.snap
index 995a5ca1c..fb525faaa 100644
--- a/tests/snapshots/integration__integration_tests__list__list_warns_when_default_branch_missing_worktree.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_warns_when_default_branch_missing_worktree.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ develop ⚑^ . 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ develop ⚑^ . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_branches_flag.snap b/tests/snapshots/integration__integration_tests__list__list_with_branches_flag.snap
index 428277339..fda4e9e5b 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_branches_flag.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_branches_flag.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature-with-worktree _ ../repo.feature-with-worktree 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature-with-worktree _ ../repo.feature-with-worktree 05a4a45d 16h Initial commit
another-branch /_ 05a4a45d 16h Initial commit
feature-without-worktree /_ 05a4a45d 16h Initial commit
fix-bug /_ 05a4a45d 16h Initial commit
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_branches_flag_no_available.snap b/tests/snapshots/integration__integration_tests__list__list_with_branches_flag_no_available.snap
index 278146b6a..bb8e08e41 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_branches_flag_no_available.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_branches_flag_no_available.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_branches_flag_only_branches.snap b/tests/snapshots/integration__integration_tests__list__list_with_branches_flag_only_branches.snap
index 42187d709..8b629ab9d 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_branches_flag_only_branches.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_branches_flag_only_branches.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
branch-alpha /_ 05a4a45d 16h Initial commit
branch-beta /_ 05a4a45d 16h Initial commit
branch-gamma /_ 05a4a45d 16h Initial commit
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_c_flag.snap b/tests/snapshots/integration__integration_tests__list__list_with_c_flag.snap
index 4a24e75b9..baa759934 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_c_flag.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_c_flag.snap
@@ -4,7 +4,7 @@ info:
program: wt
args:
- "-C"
- - /private/var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp6alKY0/repo
+ - /private/var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpUeh34J/repo
- list
env:
CLICOLOR_FORCE: "1"
@@ -16,21 +16,24 @@ info:
RUST_LOG: warn
SHELL: ""
TERM: alacritty
+ 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"
---
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_nonexistent_default_branch.snap b/tests/snapshots/integration__integration_tests__list__list_with_nonexistent_default_branch.snap
index 6a2fe6d7d..6e6e9ae5f 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_nonexistent_default_branch.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_nonexistent_default_branch.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ⋯ . | 05a4a45d 16h Initial commit
-+ feature-a ⋯ ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ⋯ ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ⋯ ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ⋯ | . 05a4a45d 16h Initial commit
++ feature-a ⋯ ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ⋯ ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ⋯ ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_remotes_and_branches.snap b/tests/snapshots/integration__integration_tests__list__list_with_remotes_and_branches.snap
index fc024d4de..f5177b107 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_remotes_and_branches.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_remotes_and_branches.snap
@@ -26,10 +26,13 @@ info:
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]"
@@ -37,11 +40,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
local-only-1 /_ 05a4a45d 16h Initial commit
local-only-2 /_ 05a4a45d 16h Initial commit
origin/remote-only-1 /_ 05a4a45d 16h Initial commit
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_remotes_and_full.snap b/tests/snapshots/integration__integration_tests__list__list_with_remotes_and_full.snap
index 81314ece7..31742d944 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_remotes_and_full.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_remotes_and_full.snap
@@ -26,10 +26,13 @@ info:
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]"
@@ -37,11 +40,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
origin/feature-remote /_ 05a4a45d 16h Initial commit
○ Showing 4 worktrees, 1 remote branches, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_remotes_filters_tracked_branches.snap b/tests/snapshots/integration__integration_tests__list__list_with_remotes_filters_tracked_branches.snap
index 613861d51..f0ae53afc 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_remotes_filters_tracked_branches.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_remotes_filters_tracked_branches.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
origin/remote-only /_ 05a4a45d 16h Initial commit
○ Showing 4 worktrees, 1 remote branches, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_remotes_filters_tracked_worktrees.snap b/tests/snapshots/integration__integration_tests__list__list_with_remotes_filters_tracked_worktrees.snap
index 0b32c6891..99f3d97bb 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_remotes_filters_tracked_worktrees.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_remotes_filters_tracked_worktrees.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature-with-worktree _| ../repo.feature-with-worktree | 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature-with-worktree _| | ../repo.feature-with-worktree 05a4a45d 16h Initial commit
origin/remote-only /_ 05a4a45d 16h Initial commit
○ Showing 5 worktrees, 1 remote branches, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_remotes_flag.snap b/tests/snapshots/integration__integration_tests__list__list_with_remotes_flag.snap
index 23011362a..7ff2fae75 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_remotes_flag.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_remotes_flag.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
origin/remote-feature-1 /_ 05a4a45d 16h Initial commit
origin/remote-feature-2 /_ 05a4a45d 16h Initial commit
diff --git a/tests/snapshots/integration__integration_tests__list__list_with_user_marker.snap b/tests/snapshots/integration__integration_tests__list__list_with_user_marker.snap
index 0693e17bd..58f2f38a7 100644
--- a/tests/snapshots/integration__integration_tests__list__list_with_user_marker.snap
+++ b/tests/snapshots/integration__integration_tests__list__list_with_user_marker.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^⇡ . ⇡1 33323bc1 1d Initial commit
-+ feature-api ↑ 🤖 ↑1 ../repo.feature-api 70343f03 1d Add REST API endpoints
-+ review-ui ? ↑ 💬 ↑1 ../repo.review-ui a585d6ed 1d Add dashboard component
-+ wip-docs ? – ../repo.wip-docs 33323bc1 1d Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^⇡ ⇡1 . 33323bc1 1d Initial commit
++ feature-api ↑ 🤖 ↑1 ../repo.feature-api 70343f03 1d Add REST API endpoints
++ review-ui ? ↑ 💬 ↑1 ../repo.review-ui a585d6ed 1d Add dashboard component
++ wip-docs ? – ../repo.wip-docs 33323bc1 1d Initial commit
○ Showing 4 worktrees, 2 with changes, 2 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__maximum_status_symbols.snap b/tests/snapshots/integration__integration_tests__list__maximum_status_symbols.snap
index 23708509c..865362580 100644
--- a/tests/snapshots/integration__integration_tests__list__maximum_status_symbols.snap
+++ b/tests/snapshots/integration__integration_tests__list__maximum_status_symbols.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^⇡ . ⇡2 c51a68f7 1d Main advances
-+ feature-a ↕ ↑1 ↓2 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature +!?⊞✗⇅🤖 +2 -2 ↑2 ↓1 +3 -1 ../repo.feature ⇡1 ⇣1 342be366 1d Local commit
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^⇡ ⇡2 . c51a68f7 1d Main advances
++ feature-a ↕ ↑1 ↓2 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature +!?⊞✗⇅🤖 +2 -2 ↑2 ↓1 +3 -1 ⇡1 ⇣1 ../repo.feature 342be366 1d Local commit
○ Showing 5 worktrees, 1 with changes, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__maximum_status_with_git_operation.snap b/tests/snapshots/integration__integration_tests__list__maximum_status_with_git_operation.snap
index cb5a0ddd8..ce4c011ab 100644
--- a/tests/snapshots/integration__integration_tests__list__maximum_status_with_git_operation.snap
+++ b/tests/snapshots/integration__integration_tests__list__maximum_status_with_git_operation.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^⇡ . ⇡2 27eb0ee8 1d Main conflicting changes
-+ feature-a ↕ ↑1 ↓2 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature +!?✘– 🤖 +7 ../repo.feature 27eb0ee8 1d Main conflicting changes
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^⇡ ⇡2 . 27eb0ee8 1d Main conflicting changes
++ feature-a ↕ ↑1 ↓2 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature +!?✘– 🤖 +7 ../repo.feature 27eb0ee8 1d Main conflicting changes
○ Showing 5 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__task_dag_ordering_stability.snap b/tests/snapshots/integration__integration_tests__list__task_dag_ordering_stability.snap
index a929415f0..9bc074319 100644
--- a/tests/snapshots/integration__integration_tests__list__task_dag_ordering_stability.snap
+++ b/tests/snapshots/integration__integration_tests__list__task_dag_ordering_stability.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,15 +39,15 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ feature-current ↑ ↑1 ../repo.feature-current f8d9dc91 23h Commit at 01:00
-^ main ^⇡ . ⇡1 01cab36c 1d Initial commit on main
-+ feature-a ↕ ↑1 ↓1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature-newest ↑ ↑1 ../repo.feature-newest 57c29ea7 21h Commit at 03:00
-+ feature-middle ↑ ↑1 ../repo.feature-middle a63f3739 22h Commit at 02:00
-+ feature-oldest ↑ ↑1 ../repo.feature-oldest a9b3e5b7 23h Commit at 00:30
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ feature-current ↑ ↑1 ../repo.feature-current f8d9dc91 23h Commit at 01:00
+^ main ^⇡ ⇡1 . 01cab36c 1d Initial commit on main
++ feature-a ↕ ↑1 ↓1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature-newest ↑ ↑1 ../repo.feature-newest 57c29ea7 21h Commit at 03:00
++ feature-middle ↑ ↑1 ../repo.feature-middle a63f3739 22h Commit at 02:00
++ feature-oldest ↑ ↑1 ../repo.feature-oldest a9b3e5b7 23h Commit at 00:30
○ Showing 8 worktrees, 7 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__with_upstream_tracking.snap b/tests/snapshots/integration__integration_tests__list__with_upstream_tracking.snap
index c4ef4cd65..cbfb38d40 100644
--- a/tests/snapshots/integration__integration_tests__list__with_upstream_tracking.snap
+++ b/tests/snapshots/integration__integration_tests__list__with_upstream_tracking.snap
@@ -26,10 +26,13 @@ info:
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]"
@@ -37,16 +40,16 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^⇡ . ⇡1 01cab36c 1d Initial commit on main
-+ feature-a ↕ ↑1 ↓1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ ahead ↑⇡ ↑2 +2 ../repo.ahead ⇡2 a25eff2a 1d Ahead commit 2
-+ behind _⇣ ../repo.behind ⇣1 01cab36c 1d Initial commit on main
-+ diverged ↑⇅ ↑1 +1 ../repo.diverged ⇡1 ⇣1 f035d2c5 1d Diverged local commit
-+ in-sync _| ../repo.in-sync | 01cab36c 1d Initial commit on main
-+ no-upstream _ ../repo.no-upstream 01cab36c 1d Initial commit on main
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^⇡ ⇡1 . 01cab36c 1d Initial commit on main
++ feature-a ↕ ↑1 ↓1 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓1 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓1 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ ahead ↑⇡ ↑2 +2 ⇡2 ../repo.ahead a25eff2a 1d Ahead commit 2
++ behind _⇣ ⇣1 ../repo.behind 01cab36c 1d Initial commit on main
++ diverged ↑⇅ ↑1 +1 ⇡1 ⇣1 ../repo.diverged f035d2c5 1d Diverged local commit
++ in-sync _| | ../repo.in-sync 01cab36c 1d Initial commit on main
++ no-upstream _ ../repo.no-upstream 01cab36c 1d Initial commit on main
○ Showing 9 worktrees, 5 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__working_tree_conflicts_with_full.snap b/tests/snapshots/integration__integration_tests__list__working_tree_conflicts_with_full.snap
index 578470a0b..9bfb25c47 100644
--- a/tests/snapshots/integration__integration_tests__list__working_tree_conflicts_with_full.snap
+++ b/tests/snapshots/integration__integration_tests__list__working_tree_conflicts_with_full.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,12 +39,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ main…± Path Remote⇅ CI Commit Age Message
-@ main ^⇡ . ⇡2 1edd043e 1d Main changes shared.txt
-+ feature-a ↕ ↑1 ↓2 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 +1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature ! ✗ +1 -1 ↓1 ../repo.feature a756a743 1d Initial commit
+ Branch Status HEAD± main↕ main…± Remote⇅ CI Path Commit Age Message
+@ main ^⇡ ⇡2 . 1edd043e 1d Main changes shared.txt
++ feature-a ↕ ↑1 ↓2 +1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 +1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 +1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature ! ✗ +1 -1 ↓1 ../repo.feature a756a743 1d Initial commit
○ Showing 5 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list__working_tree_conflicts_without_full.snap b/tests/snapshots/integration__integration_tests__list__working_tree_conflicts_without_full.snap
index 6196e4f6b..66ae2ac5f 100644
--- a/tests/snapshots/integration__integration_tests__list__working_tree_conflicts_without_full.snap
+++ b/tests/snapshots/integration__integration_tests__list__working_tree_conflicts_without_full.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^⇡ . ⇡2 1edd043e 1d Main changes shared.txt
-+ feature-a ↕ ↑1 ↓2 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓2 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓2 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature ! ↓ +1 -1 ↓1 ../repo.feature a756a743 1d Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^⇡ ⇡2 . 1edd043e 1d Main changes shared.txt
++ feature-a ↕ ↑1 ↓2 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓2 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓2 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature ! ↓ +1 -1 ↓1 ../repo.feature a756a743 1d Initial commit
○ Showing 5 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_alignment_with_header.snap b/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_alignment_with_header.snap
index e8b37767c..880aa651d 100644
--- a/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_alignment_with_header.snap
+++ b/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_alignment_with_header.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ test !? ↑ +1 -1 ↑1 ../repo.test 572ec619 1d Test
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ test !? ↑ +1 -1 ↑1 ../repo.test 572ec619 1d Test
○ Showing 5 worktrees, 1 with changes, 4 ahead
diff --git a/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_width_consistency.snap b/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_width_consistency.snap
index 963f30a92..0384a0b5f 100644
--- a/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_width_consistency.snap
+++ b/tests/snapshots/integration__integration_tests__list_column_alignment__status_column_width_consistency.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,13 +38,13 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ complex + ? ↑ +1 -1 ↑1 ../repo.complex 0fdc439a 1d Complex
-+ simple ? ↑ ↑1 ../repo.simple 42a9d012 1d Simple
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ complex + ? ↑ +1 -1 ↑1 ../repo.complex 0fdc439a 1d Complex
++ simple ? ↑ ↑1 ../repo.simple 42a9d012 1d Simple
○ Showing 6 worktrees, 2 with changes, 5 ahead
diff --git a/tests/snapshots/integration__integration_tests__list_config__list_config_branches_enabled.snap b/tests/snapshots/integration__integration_tests__list_config__list_config_branches_enabled.snap
index 0bf3158d1..5cf032186 100644
--- a/tests/snapshots/integration__integration_tests__list_config__list_config_branches_enabled.snap
+++ b/tests/snapshots/integration__integration_tests__list_config__list_config_branches_enabled.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list_config__list_config_cli_override.snap b/tests/snapshots/integration__integration_tests__list_config__list_config_cli_override.snap
index 0bc0aa01d..5d7271cb0 100644
--- a/tests/snapshots/integration__integration_tests__list_config__list_config_cli_override.snap
+++ b/tests/snapshots/integration__integration_tests__list_config__list_config_cli_override.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
feature /_ 05a4a45d 16h Initial commit
○ Showing 4 worktrees, 1 branches, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list_config__list_config_full_and_branches.snap b/tests/snapshots/integration__integration_tests__list_config__list_config_full_and_branches.snap
index 0bf3158d1..5cf032186 100644
--- a/tests/snapshots/integration__integration_tests__list_config__list_config_full_and_branches.snap
+++ b/tests/snapshots/integration__integration_tests__list_config__list_config_full_and_branches.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list_config__list_config_full_enabled.snap b/tests/snapshots/integration__integration_tests__list_config__list_config_full_enabled.snap
index 0bf3158d1..5cf032186 100644
--- a/tests/snapshots/integration__integration_tests__list_config__list_config_full_enabled.snap
+++ b/tests/snapshots/integration__integration_tests__list_config__list_config_full_enabled.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list_config__list_no_config.snap b/tests/snapshots/integration__integration_tests__list_config__list_no_config.snap
index 0bf3158d1..5cf032186 100644
--- a/tests/snapshots/integration__integration_tests__list_config__list_no_config.snap
+++ b/tests/snapshots/integration__integration_tests__list_config__list_no_config.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__list_config__list_project_url_column.snap b/tests/snapshots/integration__integration_tests__list_config__list_project_url_column.snap
index 29fba659f..ca4f7c3a3 100644
--- a/tests/snapshots/integration__integration_tests__list_config__list_project_url_column.snap
+++ b/tests/snapshots/integration__integration_tests__list_config__list_project_url_column.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ URL Commit Age Message
-@ main ? ^| . | http://localhost:12107 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a http://localhost:11521 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b http://localhost:14072 f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c http://localhost:14303 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path URL Commit Age Message
+@ main ? ^| | . http://localhost:12107 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a http://localhost:11521 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b http://localhost:14072 f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c http://localhost:14303 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__security__commit_message_with_directive_not_executed.snap b/tests/snapshots/integration__integration_tests__security__commit_message_with_directive_not_executed.snap
index e8e1ad18d..284f8c5e5 100644
--- a/tests/snapshots/integration__integration_tests__security__commit_message_with_directive_not_executed.snap
+++ b/tests/snapshots/integration__integration_tests__security__commit_message_with_directive_not_executed.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,12 +38,12 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^⇡ . ⇡1 252b848b 1d Fix bug __WORKTRUNK_EXEC__echo PWNED > /tmp/hacked4
-+ feature-a ↕ ↑1 ↓1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↕ ↑1 ↓1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↕ ↑1 ↓1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature _ ../repo.feature 252b848b 1d Fix bug __WORKTRUNK_EXEC__echo PWNED > /tmp/hacked4
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^⇡ ⇡1 . 252b848b 1d Fix bug __WORKTRUNK_EXEC__echo PWNED > /tmp/hacked4
++ feature-a ↕ ↑1 ↓1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↕ ↑1 ↓1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↕ ↑1 ↓1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature _ ../repo.feature 252b848b 1d Fix bug __WORKTRUNK_EXEC__echo PWNED > /tmp/hacked4
○ Showing 5 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__security__git_ignores_malformed_refs_with_ansi.snap b/tests/snapshots/integration__integration_tests__security__git_ignores_malformed_refs_with_ansi.snap
index 1c9f1d5f4..10f5b91df 100644
--- a/tests/snapshots/integration__integration_tests__security__git_ignores_malformed_refs_with_ansi.snap
+++ b/tests/snapshots/integration__integration_tests__security__git_ignores_malformed_refs_with_ansi.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__security__literal_escape_like_branch_names_displayed_safely.snap b/tests/snapshots/integration__integration_tests__security__literal_escape_like_branch_names_displayed_safely.snap
index d6b653d18..f7f39734a 100644
--- a/tests/snapshots/integration__integration_tests__security__literal_escape_like_branch_names_displayed_safely.snap
+++ b/tests/snapshots/integration__integration_tests__security__literal_escape_like_branch_names_displayed_safely.snap
@@ -25,10 +25,13 @@ info:
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]"
@@ -36,11 +39,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
fix-backslash-x1b-test /_ 05a4a45d 16h Initial commit
○ Showing 4 worktrees, 1 branches, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__security__path_with_directive_not_executed.snap b/tests/snapshots/integration__integration_tests__security__path_with_directive_not_executed.snap
index 1c9f1d5f4..10f5b91df 100644
--- a/tests/snapshots/integration__integration_tests__security__path_with_directive_not_executed.snap
+++ b/tests/snapshots/integration__integration_tests__security__path_with_directive_not_executed.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,11 +38,11 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 4 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_empty_diffs.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_empty_diffs.snap
index 4879621b3..35f21274d 100644
--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_empty_diffs.snap
+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_empty_diffs.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,14 +38,14 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ also-no-changes _ ../repo.also-no-changes 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ no-changes _ ../repo.no-changes 05a4a45d 16h Initial commit
-+ with-changes ! – +1 -1 ../repo.with-changes 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ also-no-changes _ ../repo.also-no-changes 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ no-changes _ ../repo.no-changes 05a4a45d 16h Initial commit
++ with-changes ! – +1 -1 ../repo.with-changes 05a4a45d 16h Initial commit
○ Showing 7 worktrees, 1 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_extreme_diffs.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_extreme_diffs.snap
index 578503817..7c1c81f36 100644
--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_extreme_diffs.snap
+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_extreme_diffs.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,13 +38,13 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ huge ? – ../repo.huge 05a4a45d 16h Initial commit
-+ tiny ! – +1 -1 ../repo.tiny 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ huge ? – ../repo.huge 05a4a45d 16h Initial commit
++ tiny ! – +1 -1 ../repo.tiny 05a4a45d 16h Initial commit
○ Showing 6 worktrees, 2 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_varying_diffs.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_varying_diffs.snap
index 808551657..121b53c5a 100644
--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_varying_diffs.snap
+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__alignment_varying_diffs.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,14 +38,14 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ feature-large ? – ../repo.feature-large 05a4a45d 16h Initial commit
-+ feature-medium ? – ../repo.feature-medium 05a4a45d 16h Initial commit
-+ feature-small ? – ../repo.feature-small 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ feature-large ? – ../repo.feature-large 05a4a45d 16h Initial commit
++ feature-medium ? – ../repo.feature-medium 05a4a45d 16h Initial commit
++ feature-small ? – ../repo.feature-small 05a4a45d 16h Initial commit
○ Showing 7 worktrees, 3 with changes, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__long_branch_names.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__long_branch_names.snap
index 6fc9ab1ea..d7c229d21 100644
--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__long_branch_names.snap
+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__long_branch_names.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,14 +38,14 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ another-extremely-long-name-here _ ../repo.another-extremely-long-name-here 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ short _ ../repo.short 05a4a45d 16h Initial commit
-+ very-long-feature-branch-name _ ../repo.very-long-feature-branch-name 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ another-extremely-long-name-here _ ../repo.another-extremely-long-name-here 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ short _ ../repo.short 05a4a45d 16h Initial commit
++ very-long-feature-branch-name _ ../repo.very-long-feature-branch-name 05a4a45d 16h Initial commit
○ Showing 7 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__mixed_length_branch_names.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__mixed_length_branch_names.snap
index 063b01e37..4838d41ac 100644
--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__mixed_length_branch_names.snap
+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__mixed_length_branch_names.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,14 +38,14 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ extremely-long-branch-name-that-might-cause-layout-issues _ ../repo.extremely-long-branch-name-that-might-cause-layout-issues 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ medium _ ../repo.medium 05a4a45d 16h Initial commit
-+ x _ ../repo.x 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ extremely-long-branch-name-that-might-cause-layout-issues _ ../repo.extremely-long-branch-name-that-might-cause-layout-issues 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ medium _ ../repo.medium 05a4a45d 16h Initial commit
++ x _ ../repo.x 05a4a45d 16h Initial commit
○ Showing 7 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__short_branch_names.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__short_branch_names.snap
index 6f3fbf75a..d37466f6e 100644
--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__short_branch_names.snap
+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__short_branch_names.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,14 +38,14 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ a _ ../repo.a 05a4a45d 16h Initial commit
-+ bb _ ../repo.bb 05a4a45d 16h Initial commit
-+ ccc _ ../repo.ccc 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ a _ ../repo.a 05a4a45d 16h Initial commit
++ bb _ ../repo.bb 05a4a45d 16h Initial commit
++ ccc _ ../repo.ccc 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
○ Showing 7 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__spacing_edge_cases__unicode_branch_names.snap b/tests/snapshots/integration__integration_tests__spacing_edge_cases__unicode_branch_names.snap
index 96cccd7a5..cf5aa768f 100644
--- a/tests/snapshots/integration__integration_tests__spacing_edge_cases__unicode_branch_names.snap
+++ b/tests/snapshots/integration__integration_tests__spacing_edge_cases__unicode_branch_names.snap
@@ -24,10 +24,13 @@ info:
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]"
@@ -35,14 +38,14 @@ info:
success: true
exit_code: 0
----- stdout -----
- Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-@ main ^| . | 05a4a45d 16h Initial commit
-+ cafe _ ../repo.cafe 05a4a45d 16h Initial commit
-+ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
-+ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
-+ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
-+ naive _ ../repo.naive 05a4a45d 16h Initial commit
-+ resume _ ../repo.resume 05a4a45d 16h Initial commit
+ Branch Status HEAD± main↕ Remote⇅ Path Commit Age Message
+@ main ^| | . 05a4a45d 16h Initial commit
++ cafe _ ../repo.cafe 05a4a45d 16h Initial commit
++ feature-a ↑ ↑1 ../repo.feature-a 1b87d473 16h Add feature-a file
++ feature-b ↑ ↑1 ../repo.feature-b f62940fc 16h Add feature-b file
++ feature-c ↑ ↑1 ../repo.feature-c 345c7c93 16h Add feature-c file
++ naive _ ../repo.naive 05a4a45d 16h Initial commit
++ resume _ ../repo.resume 05a4a45d 16h Initial commit
○ Showing 7 worktrees, 3 ahead
diff --git a/tests/snapshots/integration__integration_tests__switch_picker__switch_picker_preview_summary_preview.snap b/tests/snapshots/integration__integration_tests__switch_picker__switch_picker_preview_summary_preview.snap
index 2d67b0e32..3d208e81f 100644
--- a/tests/snapshots/integration__integration_tests__switch_picker__switch_picker_preview_summary_preview.snap
+++ b/tests/snapshots/integration__integration_tests__switch_picker__switch_picker_preview_summary_preview.snap
@@ -5,7 +5,7 @@ expression: preview
1: HEAD± | 2: log | 3: main…± | 4: remote⇅ | 5: summary [N/M]
Enter: switch | alt-c: create | Esc: cancel | ctrl-u/d: scr
-Configure [commit.generation] command to enable AI summarie
+Configure [commit.generation] command to enable LLM summari
Example in ~/.config/worktrunk/config.toml: