Skip to content

[Bug]: 当启用飞书卡片与流式输出且模型响应中包含工具调用时会重复响应内容 #38938

@hicccc77

Description

@hicccc77

Bug type

Behavior bug (incorrect output/state without crash)

Summary

在消息平台选择飞书的情况下,如果启用了流式与飞书卡片,当响应消息中包含工具调用后,模型的输出将会出现翻倍重复

Steps to reproduce

1.像下文提供的配置文件那样配置好
2.在飞书中与机器人对话
3.对话中包含需要调用工具的步骤(例如查找网站等)

Expected behavior

看起来 XX的 Actions 都挺正常的,最近10次运行全是成功的 ✅

Actual behavior

这是一段输出样例:

好的,我来查看 XX 仓库的 Actions 状态:看起来看起来 XX 的 Actions 都看起来 XX 的 Actions 都挺正常的,最看起来 XX 的 Actions 都挺正常的,最近10次运行全看起来 XX 的 Actions 都挺正常的,最近10次运行全是成功的看起来 XX 的 Actions 都挺正常的,最近10次运行全是成功的 ✅

最看起来 XX的 Actions 都挺正常的,最近10次运行全是成功的 ✅

最新的是昨天(看起来 XX的 Actions 都挺正常的,最近10次运行全是成功的 ✅

最新的是昨天(3月6日)的 v3.0看起来 XX的 Actions 都挺正常的,最近10次运行全是成功的 ✅

最新的是昨天(3月6日)的 v3.0.2 版本发看起来 XX的 Actions 都挺正常的,最近10次运行全是成功的 ✅

最新的是昨天(3月6日)的 v3.0.2 版本发布,用时看起来 XX的 Actions 都挺正常的,最近10次运行全是成功的 ✅

最新的是昨天(3月6日)的 v3.0.2 版本发布,用时4分42秒。看起来 XX的 Actions 都挺正常的,最近10次运行全是成功的 ✅

最新的是昨天(3月6日)的 v3.0.2 版本发布,用时4分42秒。从2月25日到现看起来 XX 的 Actions 都挺正常的,最近10次运行全是成功的 ✅

OpenClaw version

2026.3.2

Operating system

Ubuntu 24.04

Install method

pnpm install/openclaw gateway start

Logs, screenshots, and evidence

这是我的相关配置: 

 "channels": {
    "feishu": {
      "enabled": true,
      "appId": "111",
      "appSecret": "222",
      "connectionMode": "websocket",
      "domain": "feishu",
      "groupPolicy": "disabled",
      "renderMode": "raw",
      "streaming": true,
      "blockStreaming": true,
      "blockStreamingCoalesce": {
        "enabled": true,
        "minDelayMs": 300,
        "maxDelayMs": 800
      }
    }
  },

  "agents": {
    "defaults": {
      "model": {
        "primary": "1"
      },
      "models": {
        "1": {
          "alias": "claude"
        }
      },
      "workspace": "/root/.openclaw/workspace",
      "memorySearch": {
        "enabled": false
      },
      "compaction": {
        "mode": "default"
      },
      "blockStreamingDefault": "on",
      "blockStreamingBreak": "text_end",
      "humanDelay": {},
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  },

Impact and severity

阻碍正常工作,总是出现

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crashstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions