Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
feat: add OSC 8 hyperlink support for URLs and CI status (#416)
Maximilian Roosb8e8e505ccf1
diff --git a/.claude/rules/cli-output-formatting.md b/.claude/rules/cli-output-formatting.mdindex bcd2b26fe..a23beae38 100644--- a/.claude/rules/cli-output-formatting.md+++ b/.claude/rules/cli-output-formatting.md@@ -355,7 +355,7 @@ output::print(hint_message(cformat!("Run <bright-black>wt merge</> to continue")**color-print tags:** `<bold>`, `<dim>`, `<bright-black>`, `<red>`, `<green>`,`<yellow>`, `<cyan>`, `<magenta>`-**Branch names** should be bolded in messages.+**Branch names and status values** should be bolded in messages.**Symbol constants in cformat!:** For messages that bypass output:: functions(e.g., `GitError` Display impl), use symbol constants directly:diff --git a/CLAUDE.md b/CLAUDE.mdindex 0175ff88d..030762f2f 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -217,3 +217,7 @@ Don't suppress warnings with `#[allow(dead_code)]` — either delete the code or// TODO(config-validation): Used by upcoming config validationfn validate_config() { ... }```++### No Test Code in Library Code++Never use `#[cfg(test)]` to add test-only convenience methods to library code. Tests should call the real API directly. If tests need helpers, define them in the test module.diff --git a/Cargo.lock b/Cargo.lockindex 450637463..951f2e275 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2295,6 +2295,12 @@ dependencies = ["syn",]+[[package]]+name = "supports-hyperlinks"+version = "3.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e396b6523b11ccb83120b115a0b7366de372751aa6edf19844dfb13a6af97e91"+[[package]]name = "syn"version = "2.0.111"@@ -3145,6 +3151,7 @@ dependencies = ["signal-hook 0.4.1","skim","strum",+ "supports-hyperlinks","synoptic","tempfile","termimad",diff --git a/Cargo.toml b/Cargo.tomlindex 5f9ad6df6..0b2d1266f 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -99,6 +99,7 @@ tree-sitter-highlight = { version = "0.25", optional = true }unicode-width = "0.2"wrap-ansi = "0.1"osc8 = "0.1.0"+supports-hyperlinks = "3"home = "0.5.12"once_cell = "1.21"dirs = "6.0"diff --git a/src/commands/config.rs b/src/commands/config.rsindex 46abd134f..40e4c0baf 100644--- a/src/commands/config.rs+++ b/src/commands/config.rs@@ -178,7 +178,6 @@ fn render_runtime_info(out: &mut String) -> anyhow::Result<()> {// Show invocation details that help diagnose issues like https://github.com/max-sixty/worktrunk/pull/387let invocation = crate::invocation_path();let is_git_subcommand = crate::is_git_subcommand();- let is_explicit_path = crate::was_invoked_with_explicit_path();// Build debug lineslet mut debug_lines = Vec::new();@@ -186,18 +185,29 @@ fn render_runtime_info(out: &mut String) -> anyhow::Result<()> {// Always show how wt was invokeddebug_lines.push(cformat!("Invoked as: <bold>{invocation}</>"));- // Show relevant detection flags+ // Show if running as git subcommand (affects shell integration)if is_git_subcommand {debug_lines.push("Git subcommand: yes (GIT_EXEC_PATH set)".to_string());}- if is_explicit_path {- debug_lines.push("Explicit path: yes (contains path separator)".to_string());- }- // Show all debug info in a gutter+ // Show shell integration debug info in a gutterlet debug_text = debug_lines.join("\n");writeln!(out, "{}", format_with_gutter(&debug_text, None))?;+ // Show hyperlink support status (separate from shell integration)+ let hyperlinks_supported =+ worktrunk::styling::supports_hyperlinks(worktrunk::styling::Stream::Stderr);+ let status = if hyperlinks_supported {+ "active"+ } else {+ "inactive"+ };+ writeln!(+ out,+ "{}",+ info_message(cformat!("Hyperlinks: <bold>{status}</>"))+ )?;+Ok(())}diff --git a/src/commands/list/ci_status.rs b/src/commands/list/ci_status.rsindex e9e7dad1d..f12a4460f 100644--- a/src/commands/list/ci_status.rs+++ b/src/commands/list/ci_status.rs@@ -237,7 +237,8 @@ mod tests {url: Some("https://github.com/owner/repo/pull/123".to_string()),};- let formatted = pr_with_url.format_indicator();+ // Call format_indicator(true) directly+ let formatted = pr_with_url.format_indicator(true);// Should contain OSC 8 hyperlink escape sequencesassert!(formatted.contains("\x1b]8;;"), "Should contain OSC 8 start");assert!(@@ -256,7 +257,8 @@ mod tests {url: None,};- let formatted = pr_no_url.format_indicator();+ // Call format_indicator(true) directly+ let formatted = pr_no_url.format_indicator(true);// Should NOT contain OSC 8 hyperlinkassert!(!formatted.contains("\x1b]8;;"),@@ -266,7 +268,7 @@ mod tests {}#[test]- fn test_format_indicator_with_options_skips_link() {+ fn test_format_indicator_skips_link() {// When include_link=false, should not include OSC 8 even when URL is presentlet pr_with_url = PrStatus {ci_status: CiStatus::Passed,@@ -275,8 +277,8 @@ mod tests {url: Some("https://github.com/owner/repo/pull/123".to_string()),};- let with_link = pr_with_url.format_indicator_with_options(true);- let without_link = pr_with_url.format_indicator_with_options(false);+ let with_link = pr_with_url.format_indicator(true);+ let without_link = pr_with_url.format_indicator(false);// With link should contain OSC 8assert!(@@ -583,7 +585,8 @@ mod tests {is_stale: false,url: None,};- let formatted = status.format_indicator();+ // Call format_indicator directly+ let formatted = status.format_indicator(false);assert!(formatted.contains("●"));// Stale status gets dimmed@@ -1039,19 +1042,11 @@ impl PrStatus {}}- /// Format CI status as a colored indicator with clickable link.- ///- /// Returns a string like "●" with appropriate ANSI color.- /// If a PR URL is available, adds underline and wraps in an OSC 8 hyperlink.- pub fn format_indicator(&self) -> String {- self.format_indicator_with_options(true)- }-/// Format CI status with control over link inclusion.////// When `include_link` is false, the indicator is colored but not clickable./// Used for environments that don't support OSC 8 hyperlinks (e.g., Claude Code).- pub fn format_indicator_with_options(&self, include_link: bool) -> String {+ pub fn format_indicator(&self, include_link: bool) -> String {let indicator = self.indicator();if include_link && self.url.is_some() {let url = self.url.as_ref().unwrap();diff --git a/src/commands/list/collect_progressive_impl.rs b/src/commands/list/collect_progressive_impl.rsindex b6e567fca..08bcf1d49 100644--- a/src/commands/list/collect_progressive_impl.rs+++ b/src/commands/list/collect_progressive_impl.rs@@ -671,7 +671,7 @@ impl Task for UrlStatusTask {}/// Parse port number from a URL string (e.g., "http://localhost:12345" -> 12345)-fn parse_port_from_url(url: &str) -> Option<u16> {+pub(crate) fn parse_port_from_url(url: &str) -> Option<u16> {// Strip schemelet url = url.strip_prefix("http://")diff --git a/src/commands/list/model.rs b/src/commands/list/model.rsindex 49aa2d8d0..d9fc2d936 100644--- a/src/commands/list/model.rs+++ b/src/commands/list/model.rs@@ -577,7 +577,7 @@ impl ListItem {// 7. CI status (priority 9)if let Some(Some(ref pr_status)) = self.pr_status {segments.push(StatuslineSegment::from_column(- pr_status.format_indicator_with_options(include_links),+ pr_status.format_indicator(include_links),ColumnKind::CiStatus,));}diff --git a/src/commands/list/render.rs b/src/commands/list/render.rsindex 9fd84b875..3ad15905b 100644--- a/src/commands/list/render.rs+++ b/src/commands/list/render.rs@@ -2,9 +2,10 @@ use crate::display::{format_relative_time_short, shorten_path, truncate_to_widthuse anstyle::Style;use std::path::Path;use unicode_width::UnicodeWidthStr;-use worktrunk::styling::StyledLine;+use worktrunk::styling::{Stream, StyledLine, hyperlink_stdout, supports_hyperlinks};use super::ci_status::PrStatus;+use super::collect_progressive_impl::parse_port_from_url;use super::columns::{ColumnKind, DiffVariant};use super::layout::{ColumnFormat, ColumnLayout, DiffColumnConfig, LayoutConfig};use super::model::{@@ -14,9 +15,13 @@ use worktrunk::git::LineDiff;impl PrStatus {/// Render indicator as a StyledLine for table column rendering.+ ///+ /// Uses OSC 8 hyperlinks when the terminal supports them; falls back to+ /// plain colored indicator otherwise.fn render_indicator(&self) -> StyledLine {let mut segment = StyledLine::new();- segment.push_raw(self.format_indicator());+ let include_link = supports_hyperlinks(Stream::Stdout);+ segment.push_raw(self.format_indicator(include_link));segment}}@@ -518,6 +523,8 @@ impl ColumnLayout {}ColumnKind::Url => {// URL column: shows dev server URL from project config template+ // - When hyperlinks supported: show ":port" as clickable link+ // - When hyperlinks not supported: show full URL// - dim if not available/active// - normal if available and activematch (&ctx.item.url, ctx.item.url_active) {@@ -525,13 +532,15 @@ impl ColumnLayout {(Some(url), Some(true)) => {// Active: normal stylinglet mut cell = StyledLine::new();- cell.push_raw(url.clone());+ cell.push_raw(format_url_cell(url));cell.truncate_to_width(self.width)}(Some(url), _) => {// Not active or unknown: dim stylinglet mut cell = StyledLine::new();- cell.push_styled(url.clone(), Style::new().dimmed());+ let formatted = format_url_cell(url);+ // Apply dim to the formatted text (which may contain OSC 8 sequences)+ cell.push_styled(formatted, Style::new().dimmed());cell.truncate_to_width(self.width)}}@@ -589,6 +598,21 @@ impl ColumnLayout {}}+/// Format URL cell with optional hyperlink.+///+/// When the terminal supports OSC 8 hyperlinks, shows just the port (e.g., `:3000`)+/// as a clickable link. Otherwise, shows the full URL.+fn format_url_cell(url: &str) -> String {+ if supports_hyperlinks(Stream::Stdout) {+ // Extract port from URL for compact display+ if let Some(port) = parse_port_from_url(url) {+ return hyperlink_stdout(url, &format!(":{port}"));+ }+ }+ // Fallback: show full URL+ url.to_string()+}+#[cfg(test)]mod tests {use super::*;diff --git a/src/styling/hyperlink.rs b/src/styling/hyperlink.rsnew file mode 100644index 000000000..689ab2ff1--- /dev/null+++ b/src/styling/hyperlink.rs@@ -0,0 +1,26 @@+//! OSC 8 hyperlink support for terminal output.++use osc8::Hyperlink;++// Re-export for direct use+pub use supports_hyperlinks::{Stream, on as supports_hyperlinks};++/// Format text as a clickable hyperlink for stdout, or return plain text if unsupported.+pub fn hyperlink_stdout(url: &str, text: &str) -> String {+ if supports_hyperlinks(Stream::Stdout) {+ format!("{}{}{}", Hyperlink::new(url), text, Hyperlink::END)+ } else {+ text.to_string()+ }+}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn test_hyperlink_returns_text_when_not_tty() {+ let result = hyperlink_stdout("https://example.com", "link");+ assert!(result == "link" || result.contains("https://example.com"));+ }+}diff --git a/src/styling/mod.rs b/src/styling/mod.rsindex 7c1da8a9e..c35d417ab 100644--- a/src/styling/mod.rs+++ b/src/styling/mod.rs@@ -16,6 +16,7 @@mod constants;mod format;mod highlighting;+mod hyperlink;mod line;mod suggest;@@ -31,6 +32,7 @@ pub use constants::*;pub(crate) use format::format_bash_with_gutter_at_width;pub use format::{GUTTER_OVERHEAD, format_bash_with_gutter, format_with_gutter, wrap_styled_text};pub use highlighting::format_toml;+pub use hyperlink::{Stream, hyperlink_stdout, supports_hyperlinks};pub use line::{StyledLine, StyledString, truncate_visible};pub use suggest::suggest_command;diff --git a/tests/common/mod.rs b/tests/common/mod.rsindex c9bcffb98..12098a5e8 100644--- a/tests/common/mod.rs+++ b/tests/common/mod.rs@@ -549,6 +549,8 @@ pub fn configure_cli_command(cmd: &mut Command) {cmd.env("CLICOLOR_FORCE", "1");cmd.env("SOURCE_DATE_EPOCH", TEST_EPOCH.to_string());cmd.env("COLUMNS", "150");+ // Set consistent terminal type for hyperlink detection via supports-hyperlinks crate+ cmd.env("TERM", "alacritty");// Enable warn-level logging so diagnostics show up in test failurescmd.env("RUST_LOG", "warn");// Skip URL health checks to avoid flaky tests from random local processesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_filters_by_repo_owner.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_filters_by_repo_owner.snapindex 9609df93b..c65341cd0 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_filters_by_repo_owner.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_filters_by_repo_owner.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[32m]8;;https://github.com/my-org/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[32m]8;;https://github.com/my-org/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [32m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [32m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_conflicts.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_conflicts.snapindex 735bc7b04..684aae466 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_conflicts.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_conflicts.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[33m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[33m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [33m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [33m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_failed.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_failed.snapindex da490a240..3f2d71fc5 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_failed.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_failed.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[31m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[31m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [31m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [31m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_passed.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_passed.snapindex 9fa3bc464..c65341cd0 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_passed.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_passed.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[32m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[32m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [32m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [32m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_running.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_running.snapindex f6b4fa881..d39d0ba52 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_running.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_running.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [34m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [34m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_mixed_check_types.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_mixed_check_types.snapindex f6b4fa881..d39d0ba52 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_mixed_check_types.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_mixed_check_types.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [34m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [34m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_no_ci_checks.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_no_ci_checks.snapindex eb15b2746..c616e5921 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_no_ci_checks.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_no_ci_checks.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[90m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[90m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [90m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [90m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_stale_pr.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_stale_pr.snapindex 617670d27..6bed7df1a 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_stale_pr.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_stale_pr.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [2m[4m[32m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ feature [2m↑[22m [32m↑1[0m [32m+1[0m ../repo.feature [2m[4m[32m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2m1b2eaadd[0m [2m1d[0m [2mLocal commit+@ main [2m^[22m . [2m[32m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ feature [2m↑[22m [32m↑1[0m [32m+1[0m ../repo.feature [2m[32m●[0m [2m1b2eaadd[0m [2m1d[0m [2mLocal commit[2m○[22m [2mShowing 2 worktrees, 1 aheaddiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_failure.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_failure.snapindex da490a240..3f2d71fc5 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_failure.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_failure.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[31m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[31m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [31m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [31m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_pending.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_pending.snapindex f6b4fa881..d39d0ba52 100644--- a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_pending.snap+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_pending.snap@@ -30,8 +30,8 @@ success: trueexit_code: 0----- stdout -----[1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage-@ main [2m^[22m . [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit-+ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit+@ main [2m^[22m . [34m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m../repo.feature[0m [34m●[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit[2m○[22m [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snapindex 38d2e8961..68b170f26 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -45,4 +46,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snapindex 5785d4497..c302e2557 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap@@ -22,6 +22,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -58,4 +59,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snapindex de1bbd4d6..43bd59b41 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap@@ -22,6 +22,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -50,4 +51,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snapindex 0b51eafc4..8eadf36e7 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -45,4 +46,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snapindex 0b51eafc4..8eadf36e7 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -45,4 +46,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snapindex 0b51eafc4..8eadf36e7 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -45,4 +46,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snapindex f91f0c323..a634e4041 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -45,4 +46,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snapindex 9b42322c4..55e91eb0b 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap@@ -14,6 +14,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -37,4 +38,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snapindex f02b9a36b..3d2821fce 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_COMPINIT_CONFIGURED: "1"@@ -49,4 +50,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snapindex c69ab41fd..1a52749d8 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_DIRECTIVE_FILE: "[DIRECTIVE_FILE]"@@ -46,4 +47,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][2m○[22m Shell integration active[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snapindex f77de089a..bcc698635 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_COMPINIT_CONFIGURED: "1"@@ -52,4 +53,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snapindex 069718ac4..9d5c2d4e4 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -47,4 +48,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snapindex 95f7f6f6d..fffde2ef5 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -49,4 +50,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snapindex 38d2e8961..68b170f26 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -45,4 +46,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snapindex 81beb200f..eedc1c50e 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"@@ -51,4 +52,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snapindex b84ce072b..f47885618 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_COMPINIT_CONFIGURED: "1"@@ -47,4 +48,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22mdiff --git a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snapindex 03f9ad952..4f2593ac1 100644--- a/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap+++ b/tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap@@ -21,6 +21,7 @@ info:PATH: "[PATH]"RUST_LOG: warnSOURCE_DATE_EPOCH: "1735776000"+ TERM: alacrittyUSERPROFILE: "[TEST_HOME]"WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"WORKTRUNK_TEST_COMPINIT_MISSING: "1"@@ -49,4 +50,4 @@ exit_code: 0[36mRUNTIME[39m wt [VERSION][33m▲[39m [33mShell integration not active[39m[107m [0m Invoked as: [1m[PROJECT_ROOT]/target/debug/wt[22m-[107m [0m Explicit path: yes (contains path separator)+[2m○[22m Hyperlinks: [1minactive[22m