openclaw - ✅(Solved) Fix [Bug]: The tool is stuck in an endless loop and cannot exit [1 pull requests, 1 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#62965Fetched 2026-04-09 08:00:03
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
referenced ×2cross-referenced ×1labeled ×1
<img width="1071" height="723" alt="Image" src="https://github.com/user-attachments/assets/9f6f0264-0b5f-4789-8ccf-dc8fc3425df8" />

Root Cause

<img width="1071" height="723" alt="Image" src="https://github.com/user-attachments/assets/9f6f0264-0b5f-4789-8ccf-dc8fc3425df8" />

Fix Action

Fixed

PR fix notes

PR #62972: fix(sandbox): enhance unknown tool error to prevent endless loops

Description (problem / solution / changelog)

Summary

Enhance formatSandboxToolPolicyBlockedMessage to provide actionable guidance when a tool is not found and not blocked by sandbox policy.

Problem

Issue #62965: Users experienced endless loops when calling a non-existent tool "multi-search-engine". The error message "Tool multi-search-engine not found" provides no guidance on resolution, leading to repeated attempts.

Solution

Modified src/agents/sandbox/runtime-status.ts:

  • Extended formatSandboxToolPolicyBlockedMessage to handle cases where the tool is not blocked by sandbox policy but is likely missing (plugin not installed/enabled)
  • Added clear suggestions:
    • Check plugin installation with openclaw plugins list
    • Verify tool name correctness
    • Consider disabling sandbox if not needed
    • Enable loop detection (tools.loopDetection.enabled = true) to prevent repeated attempts

Technical Details

Previously, the function returned undefined when a tool was neither in deny nor allow lists. This raw error passed through to the user without actionable steps. Now:

  1. If tool is blocked by policy (deny/allow) → original behavior preserved
  2. If tool is NOT blocked by policy → new guidance message suggests plugin installation, name verification, sandbox adjustments, and loop detection

Config Changes

None required. This is a user-facing error message improvement.

Testing

  • Manual: Trigger a call to a non-existent tool in a sandboxed session to see enhanced error
  • Verify loop detection setting helps prevent future endless loops

Fixes #62965

Changed files

  • src/agents/sandbox/runtime-status.ts (modified, +49/-21)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

<img width="1071" height="723" alt="Image" src="https://github.com/user-attachments/assets/9f6f0264-0b5f-4789-8ccf-dc8fc3425df8" />

Steps to reproduce

NOT_ENOUGH_INFO

Expected behavior

NOT_ENOUGH_INFO

Actual behavior

Tool multi-search-engine not found endless loop

OpenClaw version

2026.4.5

Operating system

macos

Install method

npm global

Model

Volcano Engine

Provider / routing chain

openclaw-Volcano Engine

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue may be resolved by checking the installation and configuration of the OpenClaw tool and its dependencies, specifically the multi-search-engine component.

Guidance

  • Verify that the multi-search-engine is properly installed and configured for the Volcano Engine model.
  • Check the OpenClaw version 2026.4.5 release notes for any known issues or updates related to the multi-search-engine component.
  • Investigate the endless loop error to determine if it's related to a specific query or input.
  • Review the OpenClaw documentation for any specific setup or configuration requirements for the multi-search-engine on macos.

Notes

The lack of information on steps to reproduce, expected behavior, and logs makes it challenging to provide a more specific solution. Additional details on the issue would be necessary to provide a more accurate fix.

Recommendation

Apply workaround: Given the limited information, it's recommended to try troubleshooting the installation and configuration of the multi-search-engine component as a potential workaround to resolve the issue.

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…

FAQ

Expected behavior

NOT_ENOUGH_INFO

Still need to ship something?

×6

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

Back to top recommendations

TRENDING