Skip to content

Bug Report: MIMO Toolcall Infinite Loop when executing 'xterm' in Waydroid/Wayland environment #37

@longzheng268

Description

@longzheng268
  1. Environment Information (Context)
    Host OS: Garuda Linux x86_64

Kernel: 6.18.4-zen1-1-zen

Desktop Environment: KDE Plasma 6.5.4 (Wayland)

Terminal/Shell: konsole 25.12.1 / fish 4.3.3

Hardware: Xiaomi Book Pro X 15 (i5-13400 / RTX 4060 Ti)

Container/Subsystem: Waydroid (running within the Wayland session)

Application: MIMO (AI Agent / Toolcall interface)

  1. Problem Description
    在 Waydroid 的会话环境中,通过 MIMO 调用或输入 xterm 指令时,MIMO 陷入了无限的工具调用(tool_call)死循环。系统不断尝试生成并执行 <tool_call>{"function_calls": "xterm"}</tool_call>,但无法得到有效返回或终止,导致终端输出被该重复指令堆满。

  2. Steps to Reproduce
    在 Garuda Linux (Wayland) 环境下启动 Waydroid。

终端是fish shell,Microsoft edge浏览器中进入 MIMO 的交互界面。

在对话上下文中提及或输入 xterm。

观察 MIMO 的响应。

  1. Expected Behavior
    MIMO 应该识别到当前环境(Wayland/Waydroid)可能缺失 xterm 或存在 X11 转发限制,并返回相应的错误提示或终止调用,而不是进入无限重试的死循环。

  2. Actual Behavior
    MIMO 持续输出:

JSON

<tool_call>{<function_calls>xterm</function_calls>
<tool_call>{<function_calls>xterm</function_calls>
... (Infinite Loop)
这不仅消耗了大量 Token/计算资源,还导致当前会话崩溃,必须手动强制结束进程。

  1. Potential Root Causes
    Environment Mismatch: MIMO 可能在尝试调用 X11 依赖的 xterm,但在 Wayland/Waydroid 原生环境下因缺少 XWayland 或相关路径映射导致调用失败,AI 逻辑误以为是未成功执行而触发重试。

Loop Control Failure: Toolcall 层的异常捕获机制未能识别重复的失败调用,缺乏最大重试次数限制。

###实际运行效果如下:
Image

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions