Skip to content

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

Add CI fetch error indicator to help documentation

Maximilian Roosd9d5cd139a64
diff --git a/docs/content/list.md b/docs/content/list.md
index 0c332bc5f..fdafb5393 100644
--- a/docs/content/list.md
+++ b/docs/content/list.md
@@ -97,6 +97,7 @@ The CI column shows GitHub/GitLab pipeline status:
| <span style='color:#a00'>●</span> red | Checks failed |
| <span style='color:#a60'>●</span> yellow | Merge conflicts with base |
| <span style='color:#888'>●</span> gray | No checks configured |
+| <span style='color:#a60'>⚠</span> yellow | Fetch error (rate limit, network) |
| (blank) | No upstream or no PR/MR |
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. Results are cached for 30-60 seconds; use `wt config state` to view or clear.
diff --git a/src/cli.rs b/src/cli.rs
index d1aeb0363..09fa10e79 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1889,6 +1889,7 @@ The CI column shows GitHub/GitLab pipeline status:
| `●` red | Checks failed |
| `●` yellow | Merge conflicts with base |
| `●` gray | No checks configured |
+| `⚠` yellow | Fetch error (rate limit, network) |
| (blank) | No upstream or no PR/MR |
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. Results are cached for 30-60 seconds; use `wt config state` to view or clear.
diff --git a/src/main.rs b/src/main.rs
index 63e14ee59..0cdb5a3ca 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -346,6 +346,7 @@ fn colorize_ci_status_for_html(text: &str) -> String {
.replace("`●` blue", "<span style='color:#00a'>●</span> blue")
.replace("`●` red", "<span style='color:#a00'>●</span> red")
.replace("`●` yellow", "<span style='color:#a60'>●</span> yellow")
+ .replace("`⚠` yellow", "<span style='color:#a60'>⚠</span> yellow")
.replace("`●` gray", "<span style='color:#888'>●</span> gray")
}
diff --git a/src/md_help.rs b/src/md_help.rs
index 4ca091652..c755d01bc 100644
--- a/src/md_help.rs
+++ b/src/md_help.rs
@@ -348,6 +348,11 @@ fn colorize_status_symbols(text: &str) -> String {
.replace(
&format!("{dimmed_bullet} gray"),
&format!("{disabled}●{disabled:#} gray"),
+ )
+ // CI error indicator: ⚠ symbol (also rendered dimmed initially)
+ .replace(
+ &format!("{dim}⚠{dim:#} yellow"),
+ &format!("{warning}⚠{warning:#} yellow"),
);
// Legacy CI status circles (for statusline format)
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 3ca5a81bc..e40df2a03 100644
--- a/tests/snapshots/integration__integration_tests__help__help_list_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_list_long.snap
@@ -102,14 +102,15 @@ Output as JSON for scripting:
The CI column shows GitHub/GitLab pipeline status:
- Indicator Meaning
- ───────── ─────────────────────────
- ● green All checks passed
- ● blue Checks running
- ● red Checks failed
- ● yellow Merge conflicts with base
- ● gray No checks configured
- (blank) No upstream or no PR/MR
+ Indicator Meaning
+ ───────── ─────────────────────────────────
+ ● green All checks passed
+ ● blue Checks running
+ ● red Checks failed
+ ● yellow Merge conflicts with base
+ ● gray No checks configured
+ ⚠ yellow Fetch error (rate limit, network)
+ (blank) No upstream or no PR/MR
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. Results are cached for 30-60