openclaw - 💡(How to fix) Fix openclaw-lark 插件工具执行步骤不显示(工具執行区域始终显示'暂无工具步骤') [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#71018Fetched 2026-04-25 06:08:35
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants
RAW_BUFFERClick to expand / collapse

问题描述

升级到 OpenClaw 2026.4.22 后,飞书消息卡片中的**「工具執行」区域始终显示「暂无工具步骤」**,即使已设置 。

环境信息

  • OpenClaw 版本: 2026.4.22
  • openclaw-lark 插件版本: 2026.4.7
  • Node.js: v24.15.0
  • 系统: macOS arm64
  • 飞书渠道: openclaw-lark (官方插件)

已尝试的修复

  1. ✅ 设置 - 配置已生效
  2. ✅ 修改 添加 参数支持 - 未解决问题
  3. ✅ 修改 传入全局配置 - 未解决问题
  4. ✅ 添加调试日志到 钩子 - 发现钩子未被触发
  5. ✅ 检查 调用 - session key 为

分析

通过代码审查发现:

  1. 插件在 中调用 初始化工具追踪
  2. 插件通过 和 钩子记录工具执行
  3. 但 钩子中的调试日志从未出现在日志中,说明钩子未被触发
  4. OpenClaw 核心代码中确实有 / 钩子机制
  5. 和 函数被正确调用,但可能 session key 不匹配

可能的原因

  1. Session key 不匹配: 使用的 session key 和钩子中使用的 session key 不一致
  2. 钩子注册时机: 插件的钩子注册可能在核心工具调用路径之外
  3. 版本兼容性: openclaw-lark 2026.4.7 与 OpenClaw 2026.4.22 之间存在 API 变更

期望行为

飞书消息卡片中的「工具執行」区域应该显示:

  • 调用的工具名称
  • 工具参数
  • 执行结果
  • 耗时

日志信息

  • Session key:
  • 日志中无 或 相关记录
  • 被调用但后续记录未关联

相关文件

  • (插件入口)
  • (工具追踪存储)
  • (工具显示配置)
  • (消息分发)

优先级: 中等(影响用户体验,但不影响核心功能) 类型: Bug / 兼容性问题

extent analysis

TL;DR

检查并确保 OpenClaw 和 openclaw-lark 插件版本之间的 session key 匹配和钩子注册时机的一致性。

Guidance

  • 检查 OpenClaw 和 openclaw-lark 插件的版本兼容性,特别是 session key 的生成和使用逻辑。
  • 验证钩子注册的时机,确保它在核心工具调用路径内被正确注册和触发。
  • Review 代码,特别是工具追踪存储和消息分发部分,确保 session key 的使用一致性。
  • 考虑升级 openclaw-lark 插件到最新版本,以确保与 OpenClaw 2026.4.22 的兼容性。

Notes

由于版本兼容性问题和 session key 不匹配的可能性,解决方案可能需要根据具体的代码实现和版本特点进行调整。

Recommendation

Apply workaround:检查和调整 session key 的生成和使用逻辑,确保 OpenClaw 和 openclaw-lark 插件之间的一致性。

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