Skip to content

Feishu plugin tools re-register on every agent dispatch, producing excessive log noise #56695

Description

@wangmingliang-ms

Description

The Feishu extension plugin tools (feishu_doc, feishu_chat, feishu_wiki, feishu_drive, feishu_bitable) re-register on every agent dispatch, not just on gateway startup. In a multi-agent setup, this produces significant log noise — approximately 4-5 registration log lines per agent per message.

Steps to Reproduce

  1. Configure OpenClaw with the Feishu channel plugin and multiple agents (e.g. 5+ agents).
  2. Send a message to any agent.
  3. Observe gateway logs — all 5 Feishu tool registration messages appear for each agent that processes the dispatch.

Log Evidence

[plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes
[plugins] feishu_chat: Registered feishu_chat tool
[plugins] feishu_wiki: Registered feishu_wiki tool
[plugins] feishu_drive: Registered feishu_drive tool
[plugins] feishu_bitable: Registered bitable tools
[plugins] feishu_doc: Registered feishu_doc, feishu_app_scopes  <-- same tools, seconds later
[plugins] feishu_chat: Registered feishu_chat tool
...

In testing, Registered feishu_doc appeared 421 times in a single day's log across ~99 unique minute-windows, averaging ~4.3 registrations per window. Each window corresponds to a message dispatch.

Expected Behavior

Plugin tools should register once at gateway startup (or once per plugin lifecycle), not on every dispatch. Subsequent dispatches should reuse the already-registered tools without re-emitting registration logs.

Actual Behavior

Every dispatch triggers full re-registration of all Feishu plugin tools, producing 5 INFO log lines per agent per message. With multiple agents configured, a single inbound message can produce 20-35 registration log lines.

Impact

  • Log noise: Makes it harder to find relevant log entries when debugging.
  • Performance: Unnecessary re-initialization overhead on every message (though likely minor).
  • The actual tool functionality is not affected.

Suggested Fix

Either:

  1. Register tools once during plugin initialization and skip on subsequent dispatches (check if already registered).
  2. Downgrade the registration log lines to debug level after the first registration.

Environment

  • OpenClaw version: 2026.3.24
  • Multi-agent setup with Feishu channel plugin and 5 tool modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions