Skip to content

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

Implement Status column unified alignment

Maximilian Roos7b92c776d4dc
diff --git a/src/commands/list/columns.rs b/src/commands/list/columns.rs
index 7466231f3..5dc3ff4df 100644
--- a/src/commands/list/columns.rs
+++ b/src/commands/list/columns.rs
@@ -2,8 +2,7 @@
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum ColumnKind {
Branch,
- Status,
- UserStatus,
+ Status, // Includes both git status symbols and user-defined status
WorkingDiff,
AheadBehind,
BranchDiff,
@@ -71,84 +70,76 @@ pub const COLUMN_SPECS: &[ColumnSpec] = &[
false,
1,
),
- ColumnSpec::new(
- ColumnKind::UserStatus,
- super::layout::HEADER_USER_STATUS,
- 3,
- false,
- false,
- 2,
- ),
ColumnSpec::new(
ColumnKind::WorkingDiff,
super::layout::HEADER_WORKING_DIFF,
- 4,
+ 3,
false,
false,
- 3,
+ 2,
),
ColumnSpec::new(
ColumnKind::AheadBehind,
super::layout::HEADER_AHEAD_BEHIND,
- 5,
+ 4,
false,
false,
- 4,
+ 3,
),
ColumnSpec::new(
ColumnKind::BranchDiff,
super::layout::HEADER_BRANCH_DIFF,
- 6,
+ 5,
true,
false,
- 5,
+ 4,
),
ColumnSpec::new(
ColumnKind::Path,
super::layout::HEADER_PATH,
- 7,
+ 6,
false,
false,
- 6,
+ 5,
),
ColumnSpec::new(
ColumnKind::Upstream,
super::layout::HEADER_UPSTREAM,
- 8,
+ 7,
false,
false,
- 7,
+ 6,
),
ColumnSpec::new(
ColumnKind::CiStatus,
super::layout::HEADER_CI,
- 9,
+ 8,
false,
true,
- 8,
+ 7,
),
ColumnSpec::new(
ColumnKind::Commit,
super::layout::HEADER_COMMIT,
- 10,
+ 9,
false,
false,
- 9,
+ 8,
),
ColumnSpec::new(
ColumnKind::Time,
super::layout::HEADER_AGE,
- 11,
+ 10,
false,
false,
- 10,
+ 9,
),
ColumnSpec::new(
ColumnKind::Message,
super::layout::HEADER_MESSAGE,
- 12,
+ 11,
false,
false,
- 11,
+ 10,
),
];
diff --git a/src/commands/list/layout.rs b/src/commands/list/layout.rs
index 519908ff0..fbef13cad 100644
--- a/src/commands/list/layout.rs
+++ b/src/commands/list/layout.rs
@@ -1,5 +1,79 @@
//! Column layout and priority allocation for the list command.
//!
+//! # Status Column Structure
+//!
+//! The Status column combines two subcolumns without a 2-space column gap:
+//!
+//! ```text
+//! Status Column = [Git Status Symbols] + [User Status]
+//! ↑ ↑
+//! Variable width Aligned subcolumn
+//! (position mask) (fixed position)
+//! ```
+//!
+//! ## Git Status Symbols (Variable Width)
+//!
+//! Git status symbols use position-based alignment with selective rendering:
+//! - Only positions used by at least one row are included (position mask)
+//! - Within those positions, symbols align vertically for scannability
+//! - Empty positions between symbols get spacing for alignment
+//! - No leading spaces before the first symbol
+//!
+//! Example with positions 0b (≡) and 3 (?!) used:
+//! ```text
+//! Row 1: "≡ " (position 0b filled, position 3 empty → space)
+//! Row 2: "≡?" (position 0b filled, position 3 filled)
+//! ```
+//!
+//! ## User Status Subcolumn (Aligned)
+//!
+//! User-defined status aligns at a fixed position within the Status column:
+//! - Starts immediately after max git symbols width (no extra gap)
+//! - All user statuses align vertically regardless of git symbols
+//! - Creates visual separation between git state and user labels
+//!
+//! Example:
+//! ```text
+//! Git Symbols User Status
+//! ≡ ⏸ (git symbols padded to max width)
+//! ≡? 🤖 (user status aligns at fixed position)
+//! ↓!+ (no user status)
+//! ```
+//!
+//! ## Width Calculation
+//!
+//! ```text
+//! status_width = max_git_symbols_width + max_user_status_width
+//! ```
+//!
+//! Where:
+//! - `max_git_symbols_width` = maximum rendered width using position mask
+//! - `max_user_status_width` = maximum width of user-defined status strings
+//!
+//! ## Why This Design?
+//!
+//! **Eliminates wasted space:**
+//! - Position mask removes columns for symbols that appear in zero rows
+//! - No 2-space column gap between git and user status
+//!
+//! **Maintains alignment:**
+//! - Git symbols align at their positions (vertical scannability)
+//! - User status aligns in its own subcolumn (visual consistency)
+//!
+//! **Example comparison:**
+//!
+//! BAD (no alignment):
+//! ```text
+//! ≡⏸
+//! ≡?🤖
+//! ```
+//!
+//! GOOD (aligned subcolumns):
+//! ```text
+//! ≡ ⏸
+//! ≡?🤖
+//! ```
+//!
//! # Priority System Design
//!
//! ## Priority Scoring Model
@@ -131,7 +205,6 @@ const COMMIT_HASH_WIDTH: usize = 8;
/// Both layout calculations and rendering use these constants.
pub const HEADER_BRANCH: &str = "Branch";
pub const HEADER_STATUS: &str = "Status";
-pub const HEADER_USER_STATUS: &str = ""; // Empty header for user status column
pub const HEADER_WORKING_DIFF: &str = "HEAD±";
pub const HEADER_AHEAD_BEHIND: &str = "main↕";
pub const HEADER_BRANCH_DIFF: &str = "main…±";
@@ -219,8 +292,7 @@ pub struct DiffWidths {
#[derive(Clone, Debug)]
pub struct ColumnWidths {
pub branch: usize,
- pub status: usize,
- pub user_status: usize,
+ pub status: usize, // Includes both git status symbols and user-defined status
pub time: usize,
pub ci_status: usize,
pub message: usize,
@@ -233,8 +305,7 @@ pub struct ColumnWidths {
/// Tracks which columns have actual data (vs just headers)
#[derive(Clone, Copy, Debug)]
pub struct ColumnDataFlags {
- pub status: bool,
- pub user_status: bool,
+ pub status: bool, // True if any item has git status symbols or user-defined status
pub working_diff: bool,
pub ahead_behind: bool,
pub branch_diff: bool,
@@ -248,6 +319,8 @@ pub struct LayoutMetadata {
pub widths: ColumnWidths,
pub data_flags: ColumnDataFlags,
pub status_position_mask: super::model::PositionMask,
+ /// Maximum width of git status symbols (for padding before user status subcolumn)
+ pub max_git_symbols_width: usize,
}
const EMPTY_PENALTY: u8 = 10;
@@ -256,7 +329,6 @@ fn column_has_data(kind: ColumnKind, flags: &ColumnDataFlags) -> bool {
match kind {
ColumnKind::Branch => true,
ColumnKind::Status => flags.status,
- ColumnKind::UserStatus => flags.user_status,
ColumnKind::WorkingDiff => flags.working_diff,
ColumnKind::AheadBehind => flags.ahead_behind,
ColumnKind::BranchDiff => flags.branch_diff,
@@ -315,6 +387,8 @@ pub struct LayoutConfig {
pub max_message_len: usize,
pub hidden_nonempty_count: usize,
pub status_position_mask: super::model::PositionMask,
+ /// Maximum width of git status symbols (for padding before user status subcolumn)
+ pub max_git_symbols_width: usize,
}
#[derive(Clone, Copy, Debug)]
@@ -413,7 +487,6 @@ fn ideal_for_column(
match spec.kind {
ColumnKind::Branch => ColumnIdeal::text(widths.branch),
ColumnKind::Status => ColumnIdeal::text(widths.status),
- ColumnKind::UserStatus => ColumnIdeal::text(widths.user_status),
ColumnKind::Path => ColumnIdeal::text(max_path_width),
ColumnKind::Time => ColumnIdeal::text(widths.time),
ColumnKind::CiStatus => ColumnIdeal::text(widths.ci_status),
@@ -443,7 +516,6 @@ fn ideal_for_column(
pub fn calculate_column_widths(items: &[ListItem], fetch_ci: bool) -> LayoutMetadata {
// Track maximum data widths (headers are enforced via fit_header() later)
let mut max_branch = 0;
- let mut max_user_status = 0;
let mut max_time = 0;
let mut max_message = 0;
@@ -473,19 +545,11 @@ pub fn calculate_column_widths(items: &[ListItem], fetch_ci: bool) -> LayoutMeta
max_branch = max_branch.max(item.branch_name().width());
// Status column: git status symbols (worktrees only)
- // User status column: user-defined status (worktrees and branches)
+ // Position mask is collected here for selective rendering
if let Some(info) = worktree_info {
// Collect position usage from this item's status symbols
let item_mask = super::model::PositionMask::from_symbols(&info.status_symbols);
status_position_mask.merge(&item_mask);
-
- if let Some(ref user_status) = info.user_status {
- max_user_status = max_user_status.max(user_status.width());
- }
- } else if let ListItem::Branch(branch_info) = item
- && let Some(ref user_status) = branch_info.user_status
- {
- max_user_status = max_user_status.max(user_status.width());
}
// Time
@@ -548,9 +612,9 @@ pub fn calculate_column_widths(items: &[ListItem], fetch_ci: bool) -> LayoutMeta
max_upstream_behind_digits,
);
- // Calculate Status column width based on position mask
- // Now that we know which positions are used, calculate max width with selective rendering
- let max_status = items
+ // Calculate Status column width: git symbols + user status (as aligned subcolumns)
+ // Git symbols width: maximum rendered width using position mask (variable per row)
+ let max_git_symbols = items
.iter()
.filter_map(|item| item.worktree_info())
.map(|info| {
@@ -561,14 +625,28 @@ pub fn calculate_column_widths(items: &[ListItem], fetch_ci: bool) -> LayoutMeta
.max()
.unwrap_or(0);
- // For Status column: always enforce minimum width to fit header
- // Selective rendering narrows the column by eliminating unused positions,
- // but the column must still be wide enough for the "Status" header text
- let has_status_data = max_status > 0;
- let final_status = fit_header(HEADER_STATUS, max_status);
+ // User status width: maximum user-defined status width (for alignment subcolumn)
+ let max_user_status = items
+ .iter()
+ .filter_map(|item| {
+ if let Some(info) = item.worktree_info() {
+ info.user_status.as_ref().map(|s| s.width())
+ } else if let ListItem::Branch(branch_info) = item {
+ branch_info.user_status.as_ref().map(|s| s.width())
+ } else {
+ None
+ }
+ })
+ .max()
+ .unwrap_or(0);
+
+ // Total Status width = git symbols + user status (no extra gap between them)
+ let status_data_width = max_git_symbols + max_user_status;
- let has_user_status_data = max_user_status > 0;
- let final_user_status = fit_header(HEADER_USER_STATUS, max_user_status);
+ // For Status column: always fit header to prevent header overflow
+ // Even though we want narrow columns, we can't make them narrower than the header
+ let has_status_data = status_data_width > 0;
+ let final_status = fit_header(HEADER_STATUS, status_data_width);
// CI status column: Always 2 chars wide
// Only show if we attempted to fetch CI data (regardless of whether any items have status)
@@ -578,7 +656,6 @@ pub fn calculate_column_widths(items: &[ListItem], fetch_ci: bool) -> LayoutMeta
let widths = ColumnWidths {
branch: fit_header(HEADER_BRANCH, max_branch),
status: final_status,
- user_status: final_user_status,
time: fit_header(HEADER_AGE, max_time),
ci_status: fit_header(HEADER_CI, ci_status_width),
message: fit_header(HEADER_MESSAGE, max_message),
@@ -590,7 +667,6 @@ pub fn calculate_column_widths(items: &[ListItem], fetch_ci: bool) -> LayoutMeta
let data_flags = ColumnDataFlags {
status: has_status_data,
- user_status: has_user_status_data,
working_diff: working_diff.added_digits > 0 || working_diff.deleted_digits > 0,
ahead_behind: ahead_behind.added_digits > 0 || ahead_behind.deleted_digits > 0,
branch_diff: branch_diff.added_digits > 0 || branch_diff.deleted_digits > 0,
@@ -602,6 +678,7 @@ pub fn calculate_column_widths(items: &[ListItem], fetch_ci: bool) -> LayoutMeta
widths,
data_flags,
status_position_mask,
+ max_git_symbols_width: max_git_symbols,
}
}
@@ -623,6 +700,7 @@ pub fn calculate_responsive_layout(
let ideal_widths = metadata.widths;
let data_flags = metadata.data_flags;
let status_position_mask = metadata.status_position_mask;
+ let max_git_symbols_width = metadata.max_git_symbols_width;
// Calculate actual maximum path width (after common prefix removal)
let path_data_width = items
@@ -767,6 +845,7 @@ pub fn calculate_responsive_layout(
max_message_len,
hidden_nonempty_count,
status_position_mask,
+ max_git_symbols_width,
}
}
diff --git a/src/commands/list/mod.rs b/src/commands/list/mod.rs
index 898cd1149..4765bf4f3 100644
--- a/src/commands/list/mod.rs
+++ b/src/commands/list/mod.rs
@@ -6,6 +6,8 @@ mod render;
#[cfg(test)]
mod spacing_test;
+#[cfg(test)]
+mod status_column_tests;
use layout::calculate_responsive_layout;
use model::{ListData, ListItem, gather_list_data};
diff --git a/src/commands/list/model.rs b/src/commands/list/model.rs
index cfa52ce3a..9eeb998f2 100644
--- a/src/commands/list/model.rs
+++ b/src/commands/list/model.rs
@@ -572,31 +572,31 @@ impl PositionMask {
pub struct StatusSymbols {
/// Merge conflicts indicator
/// Position 0a - Boolean flag (= or empty)
- has_conflicts: bool,
+ pub(crate) has_conflicts: bool,
/// Branch state relative to main
/// Position 0b - MUTUALLY EXCLUSIVE (enforced by enum)
- branch_state: BranchState,
+ pub(crate) branch_state: BranchState,
/// Git operation in progress
/// Position 0c - MUTUALLY EXCLUSIVE (enforced by enum)
- git_operation: GitOperation,
+ pub(crate) git_operation: GitOperation,
/// Worktree attributes: ◇, ⊠, ⚠
/// Position 0d - NOT mutually exclusive (can combine like "◇⊠")
- worktree_attrs: String,
+ pub(crate) worktree_attrs: String,
/// Main branch divergence state
/// Position 1 - MUTUALLY EXCLUSIVE (enforced by enum)
- main_divergence: MainDivergence,
+ pub(crate) main_divergence: MainDivergence,
/// Remote/upstream divergence state
/// Position 2 - MUTUALLY EXCLUSIVE (enforced by enum)
- upstream_divergence: UpstreamDivergence,
+ pub(crate) upstream_divergence: UpstreamDivergence,
/// Working tree changes: ?, !, +, », ✘
/// Position 3+ - NOT mutually exclusive (can have "?!+" etc.)
- working_tree: String,
+ pub(crate) working_tree: String,
}
impl StatusSymbols {
@@ -668,21 +668,19 @@ impl StatusSymbols {
),
];
- // Render each position that's included in the mask (without allocating Vec)
- for (i, (pos, content, has_data)) in positions_data.iter().enumerate() {
+ // Grid-based rendering: each position in mask gets exactly one column
+ // - If row has content at position: append content (may be multiple chars like "?!+")
+ // - If row has no content at position: append single space
+ // - No trimming: grid fills all columns defined by mask
+ for (pos, content, has_data) in positions_data.iter() {
if !mask.includes(*pos) {
continue; // Skip positions not in mask
}
- // Check if any later position (that's included in mask) has data
- let has_content_after = positions_data[(i + 1)..]
- .iter()
- .any(|(later_pos, _, later_has_data)| mask.includes(*later_pos) && *later_has_data);
-
if *has_data {
result.push_str(content);
- } else if has_content_after {
- result.push(' '); // Spacing for alignment
+ } else {
+ result.push(' '); // Fill empty column with space
}
}
diff --git a/src/commands/list/render.rs b/src/commands/list/render.rs
index c56e8b13f..c729e214c 100644
--- a/src/commands/list/render.rs
+++ b/src/commands/list/render.rs
@@ -317,6 +317,7 @@ fn render_list_cell(
column: &ColumnLayout,
ctx: &ListRowContext,
status_mask: &PositionMask,
+ max_git_symbols_width: usize,
common_prefix: &Path,
max_message_len: usize,
) -> StyledLine {
@@ -332,22 +333,31 @@ fn render_list_cell(
cell
}
ColumnKind::Status => {
+ // Status column combines two aligned subcolumns:
+ // 1. Git status symbols (variable width, aligned by position)
+ // 2. User-defined status (aligned at fixed position after max git symbols)
let mut cell = StyledLine::new();
+
+ // Git status symbols (worktrees only)
if let Some(info) = ctx.worktree_info {
+ let git_symbols_start = cell.width();
cell.push_raw(info.status_symbols.render_with_mask(status_mask));
- }
- cell
- }
- ColumnKind::UserStatus => {
- let mut cell = StyledLine::new();
- let status = if let Some(info) = ctx.worktree_info {
- info.user_status.clone()
+
+ // Only pad if this row has user status (to align the user status subcolumn)
+ if let Some(ref user_status) = info.user_status {
+ cell.pad_to(git_symbols_start + max_git_symbols_width);
+ cell.push_raw(user_status.clone());
+ }
} else if let ListItem::Branch(branch_info) = ctx.item {
- branch_info.user_status.clone()
- } else {
- None
- };
- cell.push_raw(status.unwrap_or_default());
+ // Branch-only entries: pad to max_git_symbols_width, then render user status
+ // This aligns user status with worktree entries
+ if let Some(ref user_status) = branch_info.user_status {
+ let git_symbols_start = cell.width();
+ cell.pad_to(git_symbols_start + max_git_symbols_width);
+ cell.push_raw(user_status.clone());
+ }
+ }
+
cell
}
ColumnKind::WorkingDiff => {
@@ -437,11 +447,19 @@ pub fn format_list_item_line(
) {
let ctx = ListRowContext::new(item, current_worktree_path);
let status_mask = &layout.status_position_mask;
+ let max_git_symbols_width = layout.max_git_symbols_width;
let common_prefix = &layout.common_prefix;
let max_message_len = layout.max_message_len;
let line = render_line(layout, |column| {
- render_list_cell(column, &ctx, status_mask, common_prefix, max_message_len)
+ render_list_cell(
+ column,
+ &ctx,
+ status_mask,
+ max_git_symbols_width,
+ common_prefix,
+ max_message_len,
+ )
});
println!("{}", line.render());
diff --git a/src/commands/list/status_column_tests.rs b/src/commands/list/status_column_tests.rs
new file mode 100644
index 000000000..590db1c4f
--- /dev/null
+++ b/src/commands/list/status_column_tests.rs
@@ -0,0 +1,561 @@
+//! Unit tests for Status column rendering behavior
+//!
+//! These tests define the expected rendering for various combinations of:
+//! - Git status symbols at different positions
+//! - User-defined status
+//! - Branch-only entries (no git symbols)
+//!
+//! ## Two Alignment Systems
+//!
+//! 1. **Position-based alignment** (git symbols only):
+//! - Each symbol type has a fixed position (0a, 0b, 0c, 0d, 1, 2, 3)
+//! - Only positions used by at least one row are included (position mask)
+//! - Rendering creates a grid: first position in mask = column 0
+//! - Each position maps to exactly one column
+//! - **Multiple symbols from the same position** appear together in that column (e.g., "?!+" all at position 3)
+//! - Symbols fill their position's column, empty positions get spaces
+//! - Example: mask [0b, 3] creates 2-column grid:
+//! - Row with ≡ at 0b: "≡ " (≡ at col 0, space at col 1)
+//! - Row with ! at 3: " !" (space at col 0, ! at col 1)
+//! - Row with ≡!+ at 0b and 3: "≡!+" (≡ at col 0, !+ at col 1)
+//!
+//! 2. **Column-based alignment** (user status):
+//! - User status aligns at a fixed column position: max_git_symbols_width
+//! - ALL rows with user status align at this column (worktrees AND branches)
+//! - Worktrees pad git symbols to max width, then append user status
+//! - Branches pad empty space to max width, then append user status
+//! - Branches and worktrees are treated equivalently for user status alignment
+//!
+//! Each test specifies the exact expected output to make the target behavior explicit.
+
+#[cfg(test)]
+mod status_column_rendering_tests {
+ /// Test 1: Single symbol at position 0b (branch state)
+ // Row 1: ≡ (synced with remote)
+ // Expected: "≡"
+ #[test]
+ fn test_single_symbol_position_0b() {
+ use super::super::model::{BranchState, PositionMask, StatusSymbols};
+
+ // Symbols: [≡]
+ // Max git width: 1
+ // User status: None
+ // Expected: "≡" (no padding, no user status)
+ let symbols = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ ..Default::default()
+ };
+
+ let mask = PositionMask::from_symbols(&symbols);
+ let result = symbols.render_with_mask(&mask);
+
+ assert_eq!(result, "≡");
+ }
+
+ /// Test 2: Single symbol at position 3 (working tree)
+ // Row 1: ! (uncommitted changes)
+ // Expected: "!"
+ #[test]
+ fn test_single_symbol_position_3() {
+ use super::super::model::{PositionMask, StatusSymbols};
+
+ // Symbols: [!]
+ // Max git width: 1
+ // User status: None
+ // Expected: "!" (no padding, no user status)
+ let symbols = StatusSymbols {
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+
+ let mask = PositionMask::from_symbols(&symbols);
+ let result = symbols.render_with_mask(&mask);
+
+ assert_eq!(result, "!");
+ }
+
+ /// Test 3: Two symbols at different positions create alignment grid
+ /// Mask [0b, 3] creates 2-column grid:
+ /// - Column 0 = position 0b
+ /// - Column 1 = position 3
+ // Row 1: ≡ (position 0b)
+ // Row 2: ! (position 3)
+ // Expected:
+ // Row 1: "≡ " (≡ in col 0, space in col 1)
+ // Row 2: " !" (space in col 0, ! in col 1)
+ #[test]
+ fn test_two_different_positions_align() {
+ use super::super::model::{BranchState, PositionMask, StatusSymbols};
+
+ // Position mask: [0b, 3] → 2-column grid
+ // Row 1: symbol at position 0b (col 0)
+ // Row 2: symbol at position 3 (col 1)
+
+ // Create mask from row that has both positions
+ let mask_builder = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ let mask = PositionMask::from_symbols(&mask_builder);
+
+ // Row 1: only position 0b
+ let row1 = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ ..Default::default()
+ };
+ assert_eq!(row1.render_with_mask(&mask), "≡ ");
+
+ // Row 2: only position 3
+ let row2 = StatusSymbols {
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row2.render_with_mask(&mask), " !");
+ }
+
+ /// Test 4: Same position symbols - single column grid
+ /// Mask [3] creates 1-column grid:
+ /// - Column 0 = position 3
+ // Row 1: ! (position 3)
+ // Row 2: ? (position 3)
+ // Expected:
+ // Row 1: "!" (col 0 filled with !)
+ // Row 2: "?" (col 0 filled with ?)
+ #[test]
+ fn test_same_position_symbols_no_padding() {
+ use super::super::model::{PositionMask, StatusSymbols};
+
+ // Position mask: [3] → 1-column grid
+ // Both rows have symbol at position 3 (col 0)
+
+ // Mask includes only position 3
+ let mask_builder = StatusSymbols {
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ let mask = PositionMask::from_symbols(&mask_builder);
+
+ // Row 1: ! at position 3
+ let row1 = StatusSymbols {
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row1.render_with_mask(&mask), "!");
+
+ // Row 2: ? at position 3
+ let row2 = StatusSymbols {
+ working_tree: "?".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row2.render_with_mask(&mask), "?");
+ }
+
+ /// Test 5: Multiple symbols in one row fill multiple columns
+ /// Mask [0b, 3] creates 2-column grid:
+ /// - Column 0 = position 0b
+ /// - Column 1 = position 3
+ // Row 1: ≡? (both positions filled)
+ // Expected: "≡?" (col 0=≡, col 1=?)
+ #[test]
+ fn test_multiple_symbols_one_row() {
+ use super::super::model::{BranchState, PositionMask, StatusSymbols};
+
+ // Position mask: [0b, 3] → 2-column grid
+ // Row 1: symbols at both positions
+ // Expected: "≡?" (both columns filled, no spaces)
+ let row = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "?".to_string(),
+ ..Default::default()
+ };
+
+ let mask = PositionMask::from_symbols(&row);
+ assert_eq!(row.render_with_mask(&mask), "≡?");
+ }
+
+ /// Test 6: Grid with some columns empty
+ /// Mask [0b, 3] creates 2-column grid:
+ /// - Column 0 = position 0b
+ /// - Column 1 = position 3
+ // Row 1: ≡ (only position 0b)
+ // Row 2: ≡! (both positions)
+ // Expected:
+ // Row 1: "≡ " (col 0=≡, col 1=space)
+ // Row 2: "≡!" (col 0=≡, col 1=!)
+ #[test]
+ fn test_multiple_symbols_with_position_gap() {
+ use super::super::model::{BranchState, PositionMask, StatusSymbols};
+
+ // Position mask: [0b, 3] → 2-column grid
+ // Row 1: col 0 filled, col 1 empty
+ // Row 2: both columns filled
+
+ // Create mask from row with both positions
+ let mask_builder = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ let mask = PositionMask::from_symbols(&mask_builder);
+
+ // Row 1: only position 0b
+ let row1 = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ ..Default::default()
+ };
+ assert_eq!(row1.render_with_mask(&mask), "≡ ");
+
+ // Row 2: both positions
+ let row2 = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row2.render_with_mask(&mask), "≡!");
+ }
+
+ /// Test 7: Git symbols + user status (with user status)
+ // Row 1: ! + 🤖
+ // Expected: "!🤖"
+ #[test]
+ fn test_git_symbol_plus_user_status() {
+ // Symbols: [!]
+ // Max git width: 1
+ // User status: "🤖"
+ // Expected: "!🤖" (user status immediately after git symbols, no gap)
+ todo!("Implement: ! followed by 🤖 with no gap")
+ }
+
+ /// Test 8: Git symbols + user status alignment
+ // Row 1: ≡? + 🤖 (git width 2, user status)
+ // Row 2: ! (git width 1, no user status)
+ // Expected:
+ // Row 1: "≡?🤖"
+ // Row 2: "!"
+ #[test]
+ fn test_user_status_alignment_mixed() {
+ // Row 1: git="≡?", user="🤖"
+ // Row 2: git="!", user=None
+ // Max git width: 2
+ // Expected:
+ // Row 1: "≡?🤖" (no padding, user status right after)
+ // Row 2: "!" (no padding, no user status)
+ todo!("Implement: user status doesn't force padding when absent")
+ }
+
+ /// Test 9: Different git widths + all have user status
+ // Row 1: ≡ + ⏸ (git width 1)
+ // Row 2: ≡? + 🤖 (git width 2)
+ // Expected:
+ // Row 1: "≡ ⏸" (padded to git width 2)
+ // Row 2: "≡?🤖"
+ #[test]
+ fn test_user_status_alignment_all_have_status() {
+ // Row 1: git="≡", user="⏸"
+ // Row 2: git="≡?", user="🤖"
+ // Max git width: 2
+ // Expected:
+ // Row 1: "≡ ⏸" (≡ + space + ⏸ to align with row 2)
+ // Row 2: "≡?🤖" (≡? + 🤖)
+ todo!("Implement: user status aligns when all rows have it")
+ }
+
+ /// Test 10: Branch-only entry (no git symbols)
+ // Row 1: (branch) + 🏠
+ // Expected: "🏠"
+ #[test]
+ fn test_branch_only_with_user_status() {
+ // Git symbols: None (branch-only)
+ // User status: "🏠"
+ // Expected: "🏠" (no padding, no leading spaces)
+ todo!("Implement: branch-only shows just user status")
+ }
+
+ /// Test 11: Mixed worktree and branch entries (user status aligns)
+ // Row 1: (worktree) ≡? + 🤖 (git width 2)
+ // Row 2: (branch) + 🏠 (no git symbols)
+ // Expected:
+ // Row 1: "≡?🤖"
+ // Row 2: " 🏠" (padded to align user status at position 2)
+ #[test]
+ fn test_mixed_worktree_and_branch() {
+ // Row 1: git="≡?", user="🤖"
+ // Row 2: git=None (branch), user="🏠"
+ // Max git width: 2
+ // Expected:
+ // Row 1: "≡?🤖" (git symbols + user status)
+ // Row 2: " 🏠" (2 spaces to align user status at same position)
+ todo!("Implement: branch pads to align user status with worktrees")
+ }
+
+ /// Test 12: Empty status (no symbols, no user status)
+ // Expected: ""
+ #[test]
+ fn test_empty_status() {
+ use super::super::model::{PositionMask, StatusSymbols};
+
+ // Git symbols: None
+ // User status: None
+ // Expected: "" (empty string)
+ let symbols = StatusSymbols::default();
+ let mask = PositionMask::from_symbols(&symbols);
+
+ assert_eq!(symbols.render_with_mask(&mask), "");
+ }
+
+ /// Test 13: Only user status, no git symbols (worktree)
+ // Row 1: (worktree) + ⏸ (no git symbols but has user status)
+ // Expected: "⏸"
+ #[test]
+ fn test_worktree_user_status_only() {
+ // Git symbols: None (clean worktree)
+ // User status: "⏸"
+ // Expected: "⏸" (no padding, no leading spaces)
+ todo!("Implement: worktree with user status but no git symbols")
+ }
+
+ /// Test 14: Three positions create 3-column grid
+ /// Mask [0b, 1, 3] creates 3-column grid:
+ /// - Column 0 = position 0b
+ /// - Column 1 = position 1
+ /// - Column 2 = position 3
+ // Row 1: ≡ (position 0b)
+ // Row 2: ↓ (position 1)
+ // Row 3: ! (position 3)
+ // Expected:
+ // Row 1: "≡ " (col 0=≡, col 1=space, col 2=space)
+ // Row 2: " ↓ " (col 0=space, col 1=↓, col 2=space)
+ // Row 3: " !" (col 0=space, col 1=space, col 2=!)
+ #[test]
+ fn test_three_different_positions() {
+ use super::super::model::{BranchState, MainDivergence, PositionMask, StatusSymbols};
+
+ // Position mask: [0b, 1, 3] → 3-column grid
+ // Create mask from all three positions
+ let mask_builder = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ main_divergence: MainDivergence::Behind,
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ let mask = PositionMask::from_symbols(&mask_builder);
+
+ // Row 1: only position 0b
+ let row1 = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ ..Default::default()
+ };
+ assert_eq!(row1.render_with_mask(&mask), "≡ ");
+
+ // Row 2: only position 1
+ let row2 = StatusSymbols {
+ main_divergence: MainDivergence::Behind,
+ ..Default::default()
+ };
+ assert_eq!(row2.render_with_mask(&mask), " ↓ ");
+
+ // Row 3: only position 3
+ let row3 = StatusSymbols {
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row3.render_with_mask(&mask), " !");
+ }
+
+ /// Test 15: Adjacent positions (0b and 0c)
+ // Row 1: ≡↻ (position 0b + 0c, adjacent)
+ // Expected: "≡↻"
+ #[test]
+ fn test_adjacent_positions_no_space() {
+ use super::super::model::{BranchState, GitOperation, PositionMask, StatusSymbols};
+
+ // Symbols: [≡↻]
+ // Position mask: 0b + 0c (adjacent)
+ // Expected: "≡↻" (no space between adjacent positions)
+ let row = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ git_operation: GitOperation::Rebase,
+ ..Default::default()
+ };
+
+ let mask = PositionMask::from_symbols(&row);
+ assert_eq!(row.render_with_mask(&mask), "≡↻");
+ }
+
+ /// Test 16: Non-adjacent positions with all filled
+ // Row 1: ≡!+ (position 0b + 3 + working tree continuation)
+ // Expected: "≡!+"
+ #[test]
+ fn test_all_positions_filled() {
+ use super::super::model::{BranchState, PositionMask, StatusSymbols};
+
+ // Symbols: [≡!+]
+ // Position mask: 0b + 3 (+ continuation)
+ // Expected: "≡!+" (no spaces, all positions filled)
+ let row = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "!+".to_string(), // Multiple symbols at position 3
+ ..Default::default()
+ };
+
+ let mask = PositionMask::from_symbols(&row);
+ assert_eq!(row.render_with_mask(&mask), "≡!+");
+ }
+
+ /// Test 17: Real-world complex case 1
+ // Row 1: ≡? + 🤖 (synced branch + working tree untracked + user status)
+ // Row 2: ! (uncommitted changes only)
+ // Row 3: ↓!+ (behind main + uncommitted + working tree added)
+ // Expected:
+ // Row 1: "≡?🤖"
+ // Row 2: " !"
+ // Row 3: "↓!+"
+ #[test]
+ fn test_real_world_complex_1() {
+ use super::super::model::{BranchState, MainDivergence, PositionMask, StatusSymbols};
+
+ // Position mask: 0b + 1 + 3 (3-column grid)
+ // Row 1: 0b=≡, 3=?, user=🤖 (user status tested separately)
+ // Row 2: 3=!
+ // Row 3: 1=↓, 3=!+
+
+ // Create mask from all positions
+ let mask_builder = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ main_divergence: MainDivergence::Behind,
+ working_tree: "!+".to_string(),
+ ..Default::default()
+ };
+ let mask = PositionMask::from_symbols(&mask_builder);
+
+ // Row 1: position 0b and 3 (note: user status alignment tested separately)
+ let row1 = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "?".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row1.render_with_mask(&mask), "≡ ?");
+
+ // Row 2: only position 3
+ let row2 = StatusSymbols {
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row2.render_with_mask(&mask), " !");
+
+ // Row 3: position 1 and 3
+ let row3 = StatusSymbols {
+ main_divergence: MainDivergence::Behind,
+ working_tree: "!+".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row3.render_with_mask(&mask), " ↓!+");
+ }
+
+ /// Test 18: THE FAILING TEST - 2-column grid with partial fills
+ /// Mask [0b, 3] creates 2-column grid:
+ /// - Column 0 = position 0b
+ /// - Column 1 = position 3
+ // Row 1: ≡? (synced + untracked)
+ // Row 2: ! (uncommitted only)
+ // Expected:
+ // Row 1: "≡?" (col 0=≡, col 1=?)
+ // Row 2: " !" (col 0=space, col 1=!)
+ #[test]
+ fn test_real_world_extreme_diffs() {
+ use super::super::model::{BranchState, PositionMask, StatusSymbols};
+
+ // This is the actual failing test case from spacing_edge_cases
+ // Position mask: [0b, 3] → 2-column grid
+ // Row 1 (huge): symbols at positions 0b (≡) and 3 (?)
+ // Row 2 (tiny): symbol at position 3 (!) only
+
+ // Create mask from row with both positions
+ let mask_builder = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "?".to_string(),
+ ..Default::default()
+ };
+ let mask = PositionMask::from_symbols(&mask_builder);
+
+ // Row 1: both columns filled
+ let row1 = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "?".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row1.render_with_mask(&mask), "≡?");
+
+ // Row 2: only position 3 (col 0 empty→space, col 1 filled)
+ let row2 = StatusSymbols {
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ assert_eq!(row2.render_with_mask(&mask), " !");
+ }
+
+ /// Test 19: User status alignment with varying git widths
+ // Row 1: ≡ + 🤖 (git width 1)
+ // Row 2: ≡?! + ⏸ (git width 3)
+ // Row 3: (branch) + 🏠 (git width 0, branch-only)
+ // Expected:
+ // Row 1: "≡ 🤖" (≡ + 2 spaces + 🤖 to align at position 3)
+ // Row 2: "≡?!⏸" (all git symbols + user status)
+ // Row 3: " 🏠" (3 spaces + 🏠 to align at position 3)
+ #[test]
+ fn test_user_status_varying_git_widths() {
+ // Max git width: 3
+ // All have user status with different git symbol counts
+ // Expected: user status aligns at position 3 for ALL rows (worktrees AND branches)
+ todo!("Implement: user status alignment with varying git symbol counts")
+ }
+
+ /// Test 20: Position mask creates minimal grid
+ /// All positions available: 0a, 0b, 0c, 0d, 1, 2, 3 (7 total)
+ /// Used positions: 0b, 3 (2 used)
+ /// Mask [0b, 3] creates 2-column grid (NOT 7-column):
+ /// - Column 0 = position 0b
+ /// - Column 1 = position 3
+ // Row 1: ≡ (only position 0b used)
+ // Row 2: ! (only position 3 used)
+ // Expected:
+ // Row 1: "≡ " (2 chars: col 0=≡, col 1=space)
+ // Row 2: " !" (2 chars: col 0=space, col 1=!)
+ // NOT:
+ // Row 1: "≡ " (7 chars with spaces for all positions)
+ #[test]
+ fn test_position_mask_removes_unused_positions() {
+ use super::super::model::{BranchState, PositionMask, StatusSymbols};
+
+ // Position mask: [0b, 3] → 2-column grid
+ // Only used positions create columns
+ // Expected: 2-char width (NOT 7-char for all possible positions)
+
+ // Create mask from positions 0b and 3 only
+ let mask_builder = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ let mask = PositionMask::from_symbols(&mask_builder);
+
+ // Row 1: only position 0b
+ let row1 = StatusSymbols {
+ branch_state: BranchState::MatchesMain,
+ ..Default::default()
+ };
+ let result1 = row1.render_with_mask(&mask);
+ assert_eq!(result1, "≡ ");
+ assert_eq!(result1.chars().count(), 2); // 2 chars, not 7
+
+ // Row 2: only position 3
+ let row2 = StatusSymbols {
+ working_tree: "!".to_string(),
+ ..Default::default()
+ };
+ let result2 = row2.render_with_mask(&mask);
+ assert_eq!(result2, " !");
+ assert_eq!(result2.chars().count(), 2); // 2 chars, not 7
+ }
+}
diff --git a/tests/snapshots/integration__integration_tests__list__branch_only_ignores_main_worktree_status.snap b/tests/snapshots/integration__integration_tests__list__branch_only_ignores_main_worktree_status.snap
index 14c5301fb..42e01e982 100644
--- a/tests/snapshots/integration__integration_tests__list__branch_only_ignores_main_worktree_status.snap
+++ b/tests/snapshots/integration__integration_tests__list__branch_only_ignores_main_worktree_status.snap
@@ -12,18 +12,17 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp5sqQ2d/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpuYiDt0/test-config.toml
---
success: true
exit_code: 0
----- stdout -----
-Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-main 🏠 . b834638e 10 months ago Initial commit
-branch-only 🌿 b834638e 10 months ago Initial commit
+Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
+main 🏠 . b834638e 10 months ago Initial commit
+branch-only 🌿 b834638e 10 months ago Initial commit
⚪ Showing 1 worktrees, 1 branches
diff --git a/tests/snapshots/integration__integration_tests__list__json_with_display_fields.snap b/tests/snapshots/integration__integration_tests__list__json_with_display_fields.snap
index 77e95c682..4375fb7fd 100644
--- a/tests/snapshots/integration__integration_tests__list__json_with_display_fields.snap
+++ b/tests/snapshots/integration__integration_tests__list__json_with_display_fields.snap
@@ -1,6 +1,5 @@
---
source: tests/integration_tests/list.rs
-assertion_line: 41
info:
program: wt
args:
@@ -13,10 +12,11 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpCCQixx/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp6RaMfE/test-config.toml
---
success: true
exit_code: 0
@@ -150,7 +150,7 @@ exit_code: 0
"working_tree": ""
},
"commits_display": "/u001b[2m/u001b[31m↓2/u001b[0m",
- "status_display": " ∅ ↓"
+ "status_display": " ∅ ↓ "
}
]
diff --git a/tests/snapshots/integration__integration_tests__list__json_with_metadata.snap b/tests/snapshots/integration__integration_tests__list__json_with_metadata.snap
index daa923fec..6907b1bfe 100644
--- a/tests/snapshots/integration__integration_tests__list__json_with_metadata.snap
+++ b/tests/snapshots/integration__integration_tests__list__json_with_metadata.snap
@@ -1,6 +1,5 @@
---
source: tests/integration_tests/list.rs
-assertion_line: 41
info:
program: wt
args:
@@ -13,10 +12,11 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp0q8xIc/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp7e0bkQ/test-config.toml
---
success: true
exit_code: 0
@@ -109,7 +109,7 @@ exit_code: 0
"upstream_divergence": "",
"working_tree": ""
},
- "status_display": " ≡"
+ "status_display": " ≡ "
},
{
"type": "worktree",
@@ -154,7 +154,7 @@ exit_code: 0
"upstream_divergence": "",
"working_tree": ""
},
- "status_display": " ≡ ⊠"
+ "status_display": " ≡ ⊠ "
}
]
diff --git a/tests/snapshots/integration__integration_tests__list__json_with_user_status.snap b/tests/snapshots/integration__integration_tests__list__json_with_user_status.snap
index 7626a5796..3950f5cbc 100644
--- a/tests/snapshots/integration__integration_tests__list__json_with_user_status.snap
+++ b/tests/snapshots/integration__integration_tests__list__json_with_user_status.snap
@@ -1,6 +1,5 @@
---
source: tests/integration_tests/list.rs
-assertion_line: 41
info:
program: wt
args:
@@ -13,10 +12,11 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
+ GIT_EDITOR: ""
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmptkJhnO/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpLHcw4p/test-config.toml
---
success: true
exit_code: 0
@@ -110,7 +110,7 @@ exit_code: 0
"working_tree": ""
},
"user_status": "🔧",
- "status_display": " ≡🔧"
+ "status_display": " ≡ 🔧"
},
{
"type": "worktree",
@@ -155,7 +155,7 @@ exit_code: 0
"upstream_divergence": "",
"working_tree": ""
},
- "status_display": " ≡"
+ "status_display": " ≡ "
}
]
diff --git a/tests/snapshots/integration__integration_tests__list__user_status_special_chars.snap b/tests/snapshots/integration__integration_tests__list__user_status_special_chars.snap
index 1df074b22..3816c6a3c 100644
--- a/tests/snapshots/integration__integration_tests__list__user_status_special_chars.snap
+++ b/tests/snapshots/integration__integration_tests__list__user_status_special_chars.snap
@@ -11,19 +11,18 @@ info:
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
GIT_CONFIG_GLOBAL: /dev/null
GIT_CONFIG_SYSTEM: /dev/null
- GIT_EDITOR: ""
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpgNfrNO/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpYGYUv1/test-config.toml
---
success: true
exit_code: 0
----- stdout -----
-Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-main ./test-repo b834638e 10 months ago Initial commit
-emoji ≡ 🔄 ./emoji b834638e 10 months ago Initial commit
-multi ≡ 👨‍💻 ./multi b834638e 10 months ago Initial commit
+Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
+main ./test-repo b834638e 10 months ago Initial commit
+emoji ≡🔄 ./emoji b834638e 10 months ago Initial commit
+multi ≡👨‍💻 ./multi b834638e 10 months ago Initial commit
⚪ Showing 3 worktrees
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 2b018f16f..b7b3e3ee5 100644
--- a/tests/snapshots/integration__integration_tests__list__with_upstream_tracking.snap
+++ b/tests/snapshots/integration__integration_tests__list__with_upstream_tracking.snap
@@ -17,7 +17,7 @@ info:
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpJMYdQZ/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp3kq4au/test-config.toml
---
success: true
exit_code: 0
diff --git a/tests/snapshots/integration__integration_tests__list__with_user_status.snap b/tests/snapshots/integration__integration_tests__list__with_user_status.snap
index c02a6b32a..5e25b6234 100644
--- a/tests/snapshots/integration__integration_tests__list__with_user_status.snap
+++ b/tests/snapshots/integration__integration_tests__list__with_user_status.snap
@@ -15,17 +15,17 @@ info:
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp8Z585D/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpzOVEyI/test-config.toml
---
success: true
exit_code: 0
----- stdout -----
-Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
-main ./test-repo b834638e 10 months ago Initial commit
-clean-no-status ≡ ./clean-no-status b834638e 10 months ago Initial commit
-clean-with-status ≡ ⏸️ ./clean-with-status b834638e 10 months ago Initial commit
-dirty-no-status ! +1 -1 ./dirty-no-status b834638e 10 months ago Initial commit
-dirty-with-status ≡? 🤖 ./dirty-with-status b834638e 10 months ago Initial commit
+Branch Status HEAD± main↕ Path Remote⇅ Commit Age Message
+main ./test-repo b834638e 10 months ago Initial commit
+clean-no-status ≡ ./clean-no-status b834638e 10 months ago Initial commit
+clean-with-status ≡ ⏸️ ./clean-with-status b834638e 10 months ago Initial commit
+dirty-no-status ! +1 -1 ./dirty-no-status b834638e 10 months ago Initial commit
+dirty-with-status ≡?🤖 ./dirty-with-status b834638e 10 months ago Initial commit
⚪ Showing 5 worktrees, 1 with changes
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 36536bb56..bd7be6b74 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
@@ -15,7 +15,7 @@ info:
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpe0wtKJ/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpMe99Uc/test-config.toml
---
success: true
exit_code: 0
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 79ee9fd50..504e8739a 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
@@ -15,7 +15,7 @@ info:
LANG: C
LC_ALL: C
SOURCE_DATE_EPOCH: "1761609600"
- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpX739wh/test-config.toml
+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpbV5UUI/test-config.toml
---
success: true
exit_code: 0