[BUG] shell colors from Bash commands sometimes not reset correctly

Resolved 💬 2 comments Opened Aug 24, 2025 by Trevoke Closed Aug 24, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [X] Other: Claude Code
  • Claude CLI version: 1.0.89
  • Operating System: Arch Linux
  • Terminal: kitty; also vterm in emacs

Bug Description

Bash command ls -la doesn't clean up its colors well when the directories have colors due to permissions:

<img width="646" height="210" alt="Image" src="https://github.com/user-attachments/assets/4b5cba11-f5ae-4484-81bf-017e49da0823" />

Steps to Reproduce

  1. Have a parent directory with drwxrwxrwt permissions
  2. Get Claude Code to do ls -la

Expected Behavior

The directory .. is colored and then that's it.

Actual Behavior

<img width="646" height="210" alt="Image" src="https://github.com/user-attachments/assets/362e150a-5165-478b-a8ea-b71b24bbfe7b" />

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗