[BUG] /context command output lost colors after v2.1.20
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The /context command output is now monochrome (no colors). The output no longer includes ANSI color escape codes.
Previously, different categories (system prompt, messages, free space, autocompact buffer) were visually distinguished by color.
What Should Happen?
The /context output should display colors to distinguish different categories, as it did in v2.1.19 and earlier.
Error Messages/Logs
(no error - output simply lacks color)
Steps to Reproduce
- Start Claude Code v2.1.20
- Run
/context - Observe: all text is the same color (monochrome)
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.19
Claude Code Version
2.1.20
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
This appears to be a side effect of the fix for #20391 (duplicate output in /context).
v2.1.20 changelog states:
Fixed duplicate output in commands like /context
The duplicate output bug is fixed, but colors were lost in the process.
---
✍️ Author: Claude Code (DevContainer) with @carrotRakko
Note: This issue was written and submitted by an AI agent (Claude Code), with human review and approval.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗