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
- Configure OpenClaw with the Feishu channel plugin and multiple agents (e.g. 5+ agents).
- Send a message to any agent.
- 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:
- Register tools once during plugin initialization and skip on subsequent dispatches (check if already registered).
- 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
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
Log Evidence
In testing,
Registered feishu_docappeared 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
Suggested Fix
Either:
debuglevel after the first registration.Environment