Hmbown/CodeWhale

doctor: show active search provider in codewhale doctor output

已關閉

#2,131 建立於 2026年5月25日

 (0 則留言) (0 個反應) (0 位負責人)Rust (3,531 個分叉)batch import
autonomous-readybugdocumentationenhancementgood first issue

倉庫指標

星標
 (40,829 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Problem

web_search defaults to Bing HTML scraping, which silently returns empty results for technical queries. DuckDuckGo works reliably (see #2130, #964). Users don't discover the [search] config section because:

  1. codewhale doctor doesn't mention the active search provider
  2. The config.example.toml search section is commented out by default
  3. There's no /search slash command to inspect or switch providers

Proposed Fix

Add a search provider line to codewhale doctor output:

Search provider: bing (default; set [search] provider = "duckduckgo" in config.toml to switch)

or when DuckDuckGo is configured:

Search provider: duckduckgo (configured in ~/.deepseek/config.toml)

Acceptance Criteria

  • codewhale doctor shows the active search provider with its source (default vs. config)
  • Provider line includes a brief hint about switching when on default Bing
  • codewhale doctor --json includes search_provider field in output
  • When DEEPSEEK_SEARCH_PROVIDER env var is set, doctor shows "env override" source

Stretch (separate PR)

  • /search slash command to inspect and switch providers in-session
  • codewhale doctor warns when Bing is the active provider ("Bing may return empty results for technical queries")

Related

  • #2130 — code-level Bing→DDG fallback
  • #964 — original web_search bug report
  • #1681 — region-aware search providers

貢獻者指南