Skip to content

Bug: 无限'输入中'状态 (双 Gateway 部署 + Telegram) #27183

@WuKavin

Description

@WuKavin

Bug: 无限"输入中"状态 (Infinite Typing State)

问题描述

无论是主机器人 (main profile) 还是救援机器人 (rescue profile),在执行任何命令后都会无限显示"输入中"(typing)状态,无法正常结束。

环境信息

  • OpenClaw 版本: 2026.2.24
  • 操作系统: macOS 15.7.4 (arm64)
  • Node 版本: v22.22.0
  • 部署方式: LaunchAgent (本地双 Gateway 实例)
  • 渠道: Telegram

复现步骤

  1. 配置主机器人和救援机器人(双 Gateway 实例)
  2. 主 Gateway 端口:18789
  3. 救援 Gateway 端口:19789
  4. 通过 Telegram 发送任何命令
  5. 观察:机器人响应后,持续显示"输入中"状态

关键日志错误

[tools] tools.profile (coding) allowlist contains unknown entries (apply_patch, cron, image)
[gateway] shutdown timed out; exiting without full cleanup
[skills-remote] remote bin probe timed out
[bonjour] gateway name conflict resolved; newName="Kavin 的 Mac mini (OpenClaw) (2)"
[bonjour] watchdog detected non-announced service; attempting re-advertise (state=probing)

问题分析

  1. Bonjour 服务冲突: 双 Gateway 实例导致 mDNS 广播冲突
  2. Tools Profile 配置问题: allowlist 与实际工具不匹配
  3. Shutdown Timeout: Gateway 关闭超时
  4. Skills Remote Probe Timeout: 远程技能探测超时

建议修复

  1. Bonjour 服务名称隔离(救援 Gateway 使用不同的 mDNS 名称)
  2. Tools Profile 同步(确保 allowlist 与实际工具匹配)
  3. 添加响应超时机制
  4. 官方文档说明如何正确部署双 Gateway 实例

临时解决方法

  • 重启 Telegram Bot 连接
  • 发送 /start 重置会话
  • 等待超时(约 60 秒)

报告时间: 2026-02-26
影响范围: 双 Gateway 部署 + Telegram 渠道

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