DeepTutor icon indicating copy to clipboard operation
DeepTutor copied to clipboard

Partner Feishu channel: group-chat sessions are indistinguishable from DMs in the conversation list

Open larryluozhang opened this issue 3 months ago • 1 comments

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>.jsonl for groups vs feishu_ou_<open_id>.jsonl for 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.

larryluozhang avatar Sep 04 '26 11:09 larryluozhang

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.

pancacake avatar Sep 08 '26 07:09 pancacake