claude-code - 💡(How to fix) Fix [BUG] Claude Code no captura output de comandos shell en Windows [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55085Fetched 2026-05-01 05:46:38
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Entorno:

SO: Windows 11 Enterprise 10.0.26200 Claude Code: versión 2.1.123 Afectado: CLI nativo Y extensión VSCode Shells afectados: AMBOS - Git Bash (MSYS2/MINGW64) Y PowerShell Síntoma: Todos los comandos bash/powershell devuelven (Bash completed with no output) aunque:

Los comandos SÍ se ejecutan correctamente SÍ generan output (confirmado redirigiendo a archivo) Solo falla la captura/visualización del output Ocurre tanto en CLI como en VSCode extension Reproducción:

Bash

echo "test"

Output: (Bash completed with no output)

PowerShell (con defaultShell: "powershell")

Write-Output "test"

Output: (Bash completed with no output)

What Should Happen?

Comportamiento esperado:

  • echo "test" → debería mostrar "test" en el output del tool
  • ls → debería listar archivos
  • git status → debería mostrar el estado del repositorio

Error Messages/Logs

Steps to Reproduce

  1. Abrir Claude Code en Windows 11
  2. Ejecutar: echo "test"
  3. Resultado: (Bash completed with no output) - incorrecto
  4. Ejecutar: echo "test" > temp.txt && cat temp.txt
  5. Leer temp.txt con Read tool
  6. Confirmar que el archivo SÍ contiene "test" - el output existe pero Claude Code no lo captura

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Claude Code 2.1.123 (CLI y VSCode extension)

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by investigating the output capture mechanism in Claude Code, potentially related to shell integration.

Guidance

  • Verify that the issue persists when running Claude Code with a different shell or terminal emulator to isolate the problem.
  • Check the Claude Code configuration for any settings related to output capture or shell integration that may have changed between versions.
  • Test the echo command with different output redirections (e.g., echo "test" > temp.txt) to confirm that the issue is specific to Claude Code's output display.
  • Review the release notes or changelog for Claude Code version 2.1.123 to see if any changes were made to shell integration or output handling.

Example

No code snippet is provided as the issue seems related to configuration or integration rather than a specific code problem.

Notes

The issue seems to be a regression, and without knowing the last working version, it's challenging to pinpoint the exact cause. The fact that output is generated but not displayed suggests a problem with how Claude Code captures or displays output from the shell.

Recommendation

Apply workaround: Given the information, a workaround could involve using an external tool or script to capture and display output, bypassing Claude Code's built-in output display mechanism, until the root cause is identified and fixed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING