Skip to content

Commit 05d37ad

Browse files
fix(ci): unset CLICOLOR_FORCE so NO_COLOR takes effect (#1325)
## Summary - Unsets `CLICOLOR_FORCE` in `list-recent-runs.sh` before setting `NO_COLOR=1` - `CLICOLOR_FORCE=1` (set by the Claude Code environment) overrides `NO_COLOR` per the [clicolors spec](https://bixense.com/clicolors/), causing `gh` to emit ANSI codes in JSON output that break `jq` parsing Fixes #1324 ## Context PR #1317 added `NO_COLOR=1` to fix ANSI codes in `gh` output, but the Claude Code environment also sets `CLICOLOR_FORCE=1` which takes precedence. Every hourly review run fails at startup because `list-recent-runs.sh` can't parse the colorized JSON. ## Test plan - [ ] Hourly review runs should no longer fail with `jq: parse error: Invalid numeric literal` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b1ee4da commit 05d37ad

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/scripts/list-recent-runs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
set -euo pipefail
1313

1414
# Prevent gh from emitting ANSI color codes (even in non-TTY contexts).
15+
# CLICOLOR_FORCE overrides NO_COLOR per the clicolors spec, and Claude Code
16+
# sets CLICOLOR_FORCE=1 — so we must unset it for NO_COLOR to take effect.
17+
unset CLICOLOR_FORCE
1518
export NO_COLOR=1
1619

1720
# Dynamically discover all claude-* workflows instead of maintaining a hardcoded list.

0 commit comments

Comments
 (0)