Partner Feishu channel: group-chat sessions are indistinguishable from DMs in the conversation list
Environment
- DeepTutor v1.6.4 (ghcr.io/hkuds/deeptutor:latest, 2026-09-02)
- Partner bound to a Feishu (Lark) bot,
group_policy: mention
Summary
When a Partner's Feishu channel serves multiple group chats plus DMs, the partner's conversation list in the web UI shows all sessions without any indication of which Feishu group (or DM) each session belongs to — group sessions look identical to private chats.
Details
- Sessions are correctly isolated per chat on disk:
data/partners/<partner_id>/sessions/feishu_oc_<chat_id>.jsonlfor groups vsfeishu_ou_<open_id>.jsonlfor DMs — the data model is fine. - But the UI conversation list (e.g. "/partners/<partner_id>") shows no group name / chat-type label, so a parent or admin cannot tell which subject group a conversation came from.
- Real-world case: one tutoring partner serving three subject groups (语文/数学/英语学习群) — every session renders like a DM.
Suggestion
- For group sessions, resolve the chat name via Feishu
GET /open-apis/im/v1/chats/{chat_id}(cached) and display it as the conversation title or a badge; label DM sessions as such. - Even a minimal fix — showing the
oc_*-vs-ou_*distinction and the raw chat_id — would already help.
Happy to provide session samples if useful.
Thanks for your comments!Will be fixed in the next version~
Fixed on dev in abd7fbcd. The inbound Feishu metadata already carried an authoritative chat_type (and Slack/Mattermost their channel_type) — the runtime was dropping it, so no prefix sniffing or extra API call was needed. Group-name resolution is not included: that needs the chats API and a real tenant to verify against.