claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] CLI formatting broken/missing content

Open benattijs opened this issue 11 months ago • 3 comments

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?

CLI formatting is all out of place/hiding content.

2.0.73 (Claude Code)

Image

What Should Happen?

Expected to see the correct message.

This is the jsonl for the assistant response.

{
  "parentUuid": "1422f284-bdf7-433c-ad37-29dd3ce96937",
  "isSidechain": false,
  "userType": "external",
  "cwd": "C:\\Projects",
  "sessionId": "2780835e-d827-4b5e-ac20-558cd1de891b",
  "version": "2.0.73",
  "gitBranch": "",
  "message": {
    "model": "claude-sonnet-4-5-20250929",
    "id": "msg_01FLBmYUR7PpyA6QVG8He6zE",
    "type": "message",
    "role": "assistant",
    "content": [
      {
        "type": "text",
        "text": "I'm Claude Code, an AI-powered CLI tool designed to help you with software engineering tasks. Here's what I can do:\n\n## Core Capabilities\n\n**Code Development**\n- Write, edit, and refactor code across multiple languages\n- Debug issues and fix bugs\n- Add new features and functionality\n- Review and explain existing code\n- Optimize performance and improve code quality\n\n**Codebase Navigation & Analysis**\n- Search and explore codebases of any size\n- Understand project structure and architecture\n- Trace code flows and dependencies\n- Find specific functions, classes, or patterns\n\n**Development Workflows**\n- Create git commits with properly formatted messages\n- Create pull requests with detailed descriptions\n- Run tests, builds, and other commands\n- Work with various development tools and frameworks\n\n**Project Management**\n- Break down complex tasks into actionable steps\n- Track progress with built-in todo lists\n- Plan implementations before executing\n- Ask clarifying questions when needed\n\n## How I Work\n\n- I can read, write, and edit files directly\n- I use specialized tools for searching, not just basic grep/find\n- I can run terminal commands and interact with your development environment\n- I work with multiple files in parallel when possible for efficiency\n- I follow your codebase's existing patterns and conventions\n\n## Key Features\n\n- **Parallel execution**: I can perform multiple independent tasks simultaneously\n- **Context-aware**: I read and understand your code before making changes\n- **Minimal changes**: I only modify what's necessary to complete your request\n- **Planning mode**: For complex tasks, I can create detailed implementation plans for your approval\n\nWhat would you like help with?"
      }
    ],
    "stop_reason": null,
    "stop_sequence": null,
    "usage": {
      "input_tokens": 2,
      "cache_creation_input_tokens": 10559,
      "cache_read_input_tokens": 13028,
      "cache_creation": {
        "ephemeral_5m_input_tokens": 10559,
        "ephemeral_1h_input_tokens": 0
      },
      "output_tokens": 360,
      "service_tier": "standard"
    }
  },
  "requestId": "req_011CWFAyrdnqJMrN4BqgKDqo",
  "type": "assistant",
  "uuid": "8f4a1a5c-9a5b-46e9-9d1c-d558a2b16d66",
  "timestamp": "2025-12-19T01:24:38.626Z"
}

Error Messages/Logs


Steps to Reproduce

  1. load claude
  2. Type what can you do?
  3. See formatting issues.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.73

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

benattijs avatar Dec 19 '25 01:12 benattijs

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/12684
  2. https://github.com/anthropics/claude-code/issues/8618
  3. https://github.com/anthropics/claude-code/issues/14208

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 19 '25 01:12 github-actions[bot]

Downgrading to 2.0.72 version fixes the issue.

Image

benattijs avatar Dec 19 '25 01:12 benattijs

I managed to reproduce by:

  1. Opening claude with claude
  2. Opening the config dialog using /config
  3. Closing the config dialog using Esc
  4. Submitting what can you do? in the input
Image

michaelsadlier avatar Dec 19 '25 01:12 michaelsadlier

Same issue here, I'm using windows terminal. And yesterday it was working fine.

Current fix for now:

Rollback npm install -g @anthropic-ai/[email protected] then add this to .claude/settings.json

"env": {
      "DISABLE_AUTOUPDATER": "1"
}

muhFaza avatar Dec 19 '25 06:12 muhFaza

Same issue on my windows machine

Xieta-AI avatar Dec 19 '25 16:12 Xieta-AI

Windows 11 (Claude Code v2.0.72 - Opus 4.5): I see this with Git Bash, CMD, Windows Terminal.

  • Display issue only in terminal window.
  • Output to a file is correct.
  • Loading the same conversation in v2.0.72 displays correctly.

kyleruddbiz avatar Dec 19 '25 21:12 kyleruddbiz

Found 3 possible duplicate issues:

  1. [BUG] PreToolUse Hook Causes TUI Rendering Corruption #12684
  2. [Bug] SHOW-STOPPER: Claude Code 2.0.1 CLI Terminal UI Rendering Corrupted + Scrolling Instability + Completely Unusable #8618
  3. [BUG] Terminal cursor position drift / scrollback corruption on Windows (PowerShell, VS Code) #14208

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

This is not a duplicate. There are many other bug reports after this with the same issue, but this looks like the original for v2.0.73

It is surprising that this software was released. There must have been 0 testing on Windows. It is a SHOW-STOPPER.

Niels-LNS-Research avatar Dec 19 '25 21:12 Niels-LNS-Research

Downgrading to 2.0.60 fixed it for me.

& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.0.60

leonardschneider avatar Dec 19 '25 22:12 leonardschneider

I'm having the same issue, so far using just regular windows command prompt instead of terminal is working for me (cmd.exe)

cizole avatar Dec 20 '25 03:12 cizole

tried using with ubuntu terminal as well, still the same issue. Also outrageous how this github actions guy keeps commenting that its a duplicate issue lol

khushaal-nandwani avatar Dec 20 '25 06:12 khushaal-nandwani