[BUG]

Resolved 💬 4 comments Opened Jul 3, 2025 by Piotr12121 Closed Aug 20, 2025

Environment

  • Platform: Linux
  • Claude CLI version: 1.0.33 (Claude Code)
  • Operating System: Ubuntu 22.04.3 LTS (WSL2)
  • Terminal: xterm-256color (Windows Terminal/WSL2)

Bug Description

When Claude Code runs tests using the docker exec command, the terminal output formatting persists and
causes all subsequent terminal text to appear in green color, even after the command completes.

Steps to Reproduce

  1. Use Claude Code to run a test command like docker exec auten-phpfpm php artisan test

tests/Unit/Jobs/ImportJobTest.php

  1. Wait for the test to complete successfully (showing green checkmarks and "PASS" messages)
  2. Continue using the terminal for other commands
  3. Observe that all terminal text remains green

Expected Behavior

Terminal color formatting should reset to default after the test command completes, allowing normal
terminal colors for subsequent commands.

Actual Behavior

The terminal remains stuck in green color mode after running tests through Claude Code, affecting all
subsequent terminal output until manually reset.

Additional Context

  • This occurs specifically when running Docker commands that output colored test results
  • The issue persists until the terminal is manually reset or a new session is started
  • Terminal shows warning: "Warning: TTY mode requires /dev/tty to be read/writable" during test execution
  • Environment: WSL2 on Windows with Docker containers for Laravel application testing

View original on GitHub ↗

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