#17023: docs(feishu): add multi-agent troubleshooting guide
docs
channel: feishu
stale
size: XS
Cluster:
Feishu Integration Enhancements
## Summary
Add comprehensive troubleshooting sections for common multi-agent Feishu/Lark deployment issues.
## New Content
### 1. Gateway Device Token Mismatch
- **Symptom**:
- **Context**: A2A communication fails, tools return unauthorized errors
- **Quick Fix**:
- **Root Cause**: Gateway service cached stale device token
### 2. Agent Not Replying in Group Chats
- **Symptom**: Agent replies in DMs and when @mentioned, but not when speaking directly in groups
- **Context**: Multi-bot setups (e.g., main_bot + pulse_bot)
- **Root Cause**: Missing `deliveryContext.to` field in sessions.json
- **Fix**: Manually add `to: "chat:oc_xxx"` format fields
- **Key Detail**: Group chats use `chat:` prefix, DMs use `user:` prefix
## Real-World Context
This guide is based on actual deployment experience with a dual-bot Feishu setup where:
- `main_bot` handles general queries
- `pulse_bot` handles specialized tasks
Both issues were encountered and resolved during production deployment.
## Checklist
- [x] Added to existing troubleshooting section
- [x] Includes diagnosis commands
- [x] Includes copy-paste fixes
- [x] Documents prevention tips
- [x] Follows existing documentation style
---
**Related**: This addresses gaps in multi-agent configuration docs that aren't covered by the existing [Multi-agent routing](#multi-agent-routing) section.
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Adds two troubleshooting sections to the Feishu docs for common multi-agent deployment issues: **gateway device token mismatch** (stale cached token causing A2A communication failures) and **missing `deliveryContext.to` field** (agent fails to reply in group chats). The content is practical and well-structured, based on real dual-bot deployment experience.
- The new sections fit naturally into the existing Troubleshooting section and complement the Multi-agent routing configuration docs
- Prior review threads have already identified the key issues that need resolution before merge: invalid JSON comments in copy-paste blocks and a Linux-specific `systemctl` command that should use the cross-platform `openclaw gateway restart`
- No new issues found beyond what has already been discussed
<h3>Confidence Score: 3/5</h3>
- Documentation-only PR that is safe to merge once the previously flagged JSON comment and platform-specific command issues are addressed.
- Score of 3 reflects that while the content is valuable and well-organized, the previously flagged issues (invalid JSON comments in copy-paste blocks that would cause runtime parse errors, and a Linux-specific systemctl command) need to be resolved before merge. These are the same issues identified in prior review threads.
- `docs/channels/feishu.md` — the JSON code blocks at lines 456-461 and 464-473 contain `//` comments that are invalid for `JSON.parse` (the parser used for `sessions.json` since commit 5c32989f), and the quick fix at line 432 uses `systemctl --user restart` instead of the cross-platform `openclaw gateway restart`.
<sub>Last reviewed commit: 44febb5</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#5036: docs: improve Slack setup and troubleshooting guide
by DanBatten · 2026-01-31
73.9%
#14037: docs: improved permission configuration instructions
by LHB6540 · 2026-02-11
72.6%
#21757: Docs/telegram inbound troubleshooting
by alanparesys · 2026-02-20
72.6%
#16337: feat(feishu): sync community plugin updates from clawdbot-feishu v0...
by graydawnc · 2026-02-14
71.8%
#10309: fix: use group ID for peer.id in Feishu group messages
by ParsifalC · 2026-02-06
71.6%
#8975: feat(feishu): comprehensive enhancements for Feishu channel
by jiulingyun · 2026-02-04
71.3%
#9410: docs: add cardkit permissions to Feishu channel setup
by Cassius0924 · 2026-02-05
71.3%
#20973: Fix: Feishu duplicate plugin ID, Docker pairing docs, broken formal...
by neipor · 2026-02-19
71.1%
#15671: fix(feishu): Credentials check bug of Feishu bitable tools when usi...
by zxh0916 · 2026-02-13
70.8%
#9253: Fix: Feishu chat ID mismatch causing session context confusion
by vishaltandale00 · 2026-02-05
70.6%