Grep tool crashes with 'Cannot read properties of undefined (reading map)' when using proxy

Status Fixed / completed
Maintainer reply None cached
Activity 1 comment · opened Nov 22, 2025 · closed Nov 22, 2025

Claude Code Bug Report

Repository: https://github.com/anthropics/claude-code/issues

Title: Grep tool crashes with "Cannot read properties of undefined (reading 'map')" when using proxy

Summary

The Grep tool's result rendering function crashes when filenames is undefined in files_with_matches mode. This only occurs when using Claude Code through a proxy (like tdx claude).

Error Details

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗