Skip to content

Fix --no-color terminal rendering - #27

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
vsolano9:fix/no-color-renderer
Sep 8, 2026
Merged

Fix --no-color terminal rendering#27
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
vsolano9:fix/no-color-renderer

Conversation

@vsolano9

@vsolano9 vsolano9 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Fixes #7

renderTerminal and renderSummary now build an explicit picocolors instance for the requested color mode instead of mutating process.env.NO_COLOR. This makes --no-color reliably strip ANSI sequences and keeps library rendering side-effect free.

Validation:

  • npm test -- --run test/reporters.test.ts (7 passed)
  • npm run typecheck

@royalpinto007
royalpinto007 merged commit 0b51485 into AgentPostmortem:main Sep 8, 2026
10 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Nice work @vsolano9, this is merged.

MCP-audit gets better every time someone outside the repo digs in like this.

If you find MCP-audit useful, consider dropping a star. It helps more people find it.

Happy to see more from you whenever you have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--no-color sets process.env.NO_COLOR globally and likely does not disable colour

2 participants