[BUG] Grep tool display name truncated to "Searc" in TUI

Resolved 💬 4 comments Opened Feb 6, 2026 by carrotRakko Closed Mar 6, 2026

What's Wrong?

The Grep tool's display name in the TUI is truncated to "Searc" — missing the final "h" from "Search".

● Searc(pattern: "some|pattern|here", path: "/tmp/file.txt")
  ⎿  Found 373 lines (ctrl+o to expand)

What Should Happen?

The tool name should display as "Search" (the full mapped name), not "Searc".

Steps to Reproduce

  1. Use the Grep tool with any pattern
  2. Observe the TUI output — the tool name shows as "Searc" instead of "Search"

Model: Opus

Is this a regression?: I don't know

Claude Code Version: 2.1.33

Platform: Anthropic API

Operating System: Ubuntu/Debian Linux

Terminal/Shell: iTerm2

Additional Information

The internal tool name is Grep, which is mapped to Search for TUI display. The mapping appears to be off-by-one, dropping the last character.

✍️ Author: Claude Code with @carrotRakko (AI-written, human-approved)

View original on GitHub ↗

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