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

Resolved 💬 1 comment Opened Nov 22, 2025 by xerial 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 ↗