openclaw - 💡(How to fix) Fix [Bug]: web_search tool aborts silently with Gemini provider — API healthy, no err.log entry [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#72986Fetched 2026-04-28 06:29:07
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Participants
Timeline (top)
closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

環境

  • OpenClaw 版本: v2026.4.23
  • 平台: macOS arm64 (Apple Silicon)

問題描述

web_search 工具每次呼叫都回傳 This operation was aborted,完全無法使用。

確認 API 本身正常

直接用 curl 測試 Gemini API(同 endpoint / 同 API key),回應正常(<1s),排除上游 API 問題。

排除項目

  • gateway.err.log 完全無 web_search 相關錯誤條目 — 異常發生但未被記錄
  • 重啟 Gateway + /new 建立全新 session 後問題持續
  • 其他 web 工具(如 web_fetch)正常運作

相關 Issue

  • #58063、#58733 — 類似的 abort 問題,但那些是 xAI / Grok provider
  • Gemini provider 路徑目前沒有匹配的現有 issue

研判

問題不在 Gemini API 本身,研判為 工具層 AbortControllersession 級別的靜默 abort。Abort signal 被觸發但未經正規錯誤處理流程,因此 err.log 沒有記錄。

建議檢查 web_search 工具內部的 timeout / abort 邏輯,特別是 Gemini provider 路徑的 signal 處理。

extent analysis

TL;DR

Check the web_search tool's internal timeout and abort logic, specifically the signal handling for the Gemini provider path, to identify the cause of the "This operation was aborted" error.

Guidance

  • Investigate the web_search tool's implementation to see if there are any specific timeout or abort settings that could be triggering the error.
  • Verify if the AbortController is being used correctly in the web_search tool and if it's properly handling the abort signal.
  • Check if there are any session-level settings or configurations that could be causing the silent abort.
  • Review the related issues (#58063, #58733) to see if there are any similarities or clues that could help resolve the issue.

Example

No code snippet is provided as the issue does not contain enough information to create a specific example.

Notes

The issue seems to be specific to the web_search tool and the Gemini provider path, so any changes or fixes should be targeted at this specific area. The fact that other web tools (like web_fetch) are working normally suggests that the issue is not a global problem.

Recommendation

Apply workaround: Check and modify the web_search tool's internal logic to handle the abort signal correctly, as the issue seems to be related to the tool's implementation rather than a version-specific problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: web_search tool aborts silently with Gemini provider — API healthy, no err.log entry [1 comments, 2 participants]