claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Web Search Returns 0 Results in WSL

Open GoldenE opened this issue 10 months ago • 19 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
  • Claude CLI version: 1.0.10
  • Operating System: Windows 11
  • Terminal: Claude Code in WSL in a Bash terminal

Bug Description

Since the latest update all web searches are returning 0 results.

Steps to Reproduce

  1. Start claude code in WSL on windows
  2. Ask it to search the web for anything, for example "hello world"
  3. The terminal should show "Did 0 searches in 24s"

Expected Behavior

Search results to be returned for claude code to use

Actual Behavior

Asked claude code, as shown in the screenshot, to tell me what was returned and it said "The web search function returned a response indicating that results were found, but it only showed the header "Web search results for query: 'hello world'" without displaying the actual search result content. The function confirmed that results exist for the search term, but the specific details of what websites, links, or content were found in those results were not included in the response I received." Image

Additional Context

Appeared to start happening with the latest update

GoldenE avatar Jun 03 '25 23:06 GoldenE

Same here. Web search seems to be broken - MacOS too

UPD: fixed in v 1.0.16

smixs avatar Jun 04 '25 02:06 smixs

+1 - xubuntu

Anarchon14 avatar Jun 04 '25 12:06 Anarchon14

+1 to confirm this is also happening on MacOS.

Aias avatar Jun 04 '25 17:06 Aias

What's the status here, is this In Progress or still not picked? Can we bump the priority as browsing is fairly major functionality?

Anarchon14 avatar Jun 04 '25 19:06 Anarchon14

+1 MacOS

thiagobenine avatar Jun 04 '25 21:06 thiagobenine

+1 on macOS 15.5 / Claude Code 1.0.11

romeromarcelo avatar Jun 04 '25 23:06 romeromarcelo

+1 on macOS 15.2 / Claude Code 1.0.11 Please bump up in priority if possible

Twix1983 avatar Jun 05 '25 02:06 Twix1983

bump

99mill avatar Jun 05 '25 06:06 99mill

I also have this issue on Mac and v1.0.11 (Claude Code)

alireza-sharifpour avatar Jun 05 '25 07:06 alireza-sharifpour

same issue on wsl2...

studio-dieulamour avatar Jun 05 '25 11:06 studio-dieulamour

Yaz, this is ... not helping the productivity of me and my little buddy

jessep avatar Jun 05 '25 11:06 jessep

The workaround I used is to ask claude code to make me a prompt for Claude Desktop, and then I let Claude Desktop do the web search for me. Cumbersome, but it works.

rhoegg avatar Jun 05 '25 13:06 rhoegg

Same issue Macos

ykarapazar avatar Jun 05 '25 15:06 ykarapazar

bumping for MacOS, even when i give URLs, it sometimes doesn't visit them at all.

Roge-L avatar Jun 06 '25 03:06 Roge-L

Issue fixed for me by upgrading to 1.0.16

Twix1983 avatar Jun 06 '25 04:06 Twix1983

The workaround I used is to ask claude code to make me a prompt for Claude Desktop, and then I let Claude Desktop do the web search for me. Cumbersome, but it works.

I have no idea why you get downvotes. Claude Code web search performs poorly compared to Desktop:

  • slow
  • bugged
    • 0 results
    • https://github.com/anthropics/claude-code/issues/1701
  • 0 observability of what he found or where

I also resorted to using Claude Desktop for searches a couple of times and considering disabling the Web Search tool.

@ anthropic Ask Claude Code to centralize your Desktop/Web/Claude Code functions for me 🙏 😆

adriangalilea avatar Jun 06 '25 10:06 adriangalilea

Latest update appears to have resolved the bug, I believe this ticket can be closed

GoldenE avatar Jun 06 '25 21:06 GoldenE

Possibly not? Every time it searches the web it says Did 1 search in ___s whereas on Claude's chat interface itself their web search functionality usually gives "10 results" for each search. Is this happening under the hood? If so, it should be displayed more obviously as to what results it found, would be great.

Roge-L avatar Jun 12 '25 23:06 Roge-L

This apperas to be working now for this environment

Environment

  • Connection: Claude Code Max
  • Claude Version: 1.0.24 (Claude Code)
  • Terminal: Windows Terminal
  • OS: Ubuntu 24.04.2 LTS

Image

adamkwhite avatar Jun 17 '25 20:06 adamkwhite

We've made some changes to Web Search, and I'm unable to repro this on latest. Let me know if you're still running into this!

ant-kurt avatar Aug 20 '25 07:08 ant-kurt

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 28 '25 14:08 github-actions[bot]