You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLI: failproofai policies ignores NO_COLOR, and --no-color does not exist #688
failproofai policies prints ANSI colour even when NO_COLOR=1 is set, and there is no --no-color flag at all.
Most of the CLI already gets this right — install-prompt.ts, audit/report.ts and audit/cli.ts all honour it. src/hooks/manager.ts is the holdout, and it happens to be the output people most often pipe into CI logs.
Reproduce
Under a real TTY (piping hides it, because a non-TTY disables colour anyway):
The green ✓ marks come out as ESC[32m✓ESC[0m regardless.
Where to fix
src/hooks/manager.ts hardcodes ANSI escapes at 16 sites. Route them through paint() from src/hooks/tui.ts, which already gates on NO_COLOR through colorsEnabled().
src/hooks/install-prompt.ts:261 is a worked example of the pattern:
Activity