[BUG] Web Search returns results successfully but displays "Did 0 searches"

Resolved 💬 2 comments Opened May 9, 2026 by SimZhou Closed May 12, 2026

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?

Web Search tool successfully returns search results and they are used correctly by Claude, but the UI status line incorrectly displays "Did 0 searches" instead of the actual count.

Example:

⏺ Web Search("Auto Tab Discard Chrome extension suspend tabs 2026")
  ⎿  Did 0 searches in 34s

The search actually returned multiple valid results which Claude used to answer the question. The search itself works correctly — only the UI counter display is wrong.

This is different from existing issues like #10141, #13546, #11369, #27831 where the search genuinely fails and returns no results. In this case, the search succeeds but the counter shows 0.

What Should Happen?

The status line should display the actual number of searches performed, e.g. Did 1 search in 34s.

Error Messages/Logs

No error messages. The tool works correctly, only the display counter is wrong.

Steps to Reproduce

  1. Use Claude Code on macOS with Anthropic API
  2. Ask Claude to search for something via Web Search
  3. Observe the status line shows "Did 0 searches in Xs" even though results are returned

Claude Model

Other (GLM-5.1 via Anthropic API)

Is this a regression?

Unknown

Last Working Version

N/A

Claude Code Version

Latest

Platform

Anthropic API

Operating System

macOS (Darwin 25.4.0, MacBook Air M4)

Terminal/Shell

iTerm2 / zsh

Additional Information

Related issues where search genuinely fails (different root cause):

  • #10141 - Claude Code doing 0 web searches
  • #13546 - Web Search Did 0 searches
  • #27831 - Web Search not working (input_schema issue)

View original on GitHub ↗

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