makecindy / makecindy/cindy

飞书群组非归属人 @ 机器人应进入 Agent 只读回复

Open
#3,392 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: daiyuanyang
**客户端版本**: 0.1.60

---

## 使用场景
飞书群里有人 @ 机器人提问(技术规范、DrawCall 边界、资料查询等)。机器人归属人希望:群组被 @ 时,无论发送者是不是归属人,都进入 Agent 做只读回答;需要改本地文件时再引导到私聊。

## 当前痛点
群组 @ 事件已经到达 Cindy,也会为该消息创建飞书会话,但发送者不是绑定 owner 时,接入层不把内容交给 Agent,直接自动回复固定话术:

> 我是一位主人的个人 Cindy 助理,只响应主人本人的指令

日志可见非 owner 的群消息会被 `processOne` 并创建 session,随后仍走这套固定回复,而不是 Agent 正常回答。

相关:此前已提交群组话题路由需求(issue #2025)。本次是同一接入层的另一条硬拦截:非 owner 群 @ 无法进入 Agent。

## 期望结果
1. 飞书群组中明确 @ 当前机器人时,非 owner 消息也应进入 Agent(建议仅限 group,p2p 私聊可继续 owner-only)。
2. Agent 侧可自行限制写操作;产品默认建议群组只读(回答、查资料、给方案),改本地文件仍引导归属人私聊。
3. 继续忽略机器人自身消息,并防止多机器人互相触发。
4. 群组会话与私聊会话隔离。
5. 日志区分:未 @、非群聊、已进入 Agent、被固定话术拦截(若仍保留该路径)。

## 建议范围
- 飞书接收层对 `chat_type=group` 且被 @ 的消息,不再因 sender != owner 直接返回固定话术。
- 可做成设置项(例如「允许群组非归属人 @ 触发只读回复」),默认关闭也行,但需要能打开。
- 不改变私聊 owner-only 行为。

验收:归属人私聊仍正常;群内他人 @ 得到 Agent 回答而不是固定话术;群内未 @ 不触发;机器人消息不触发。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.26200)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start at the Feishu receiving layer and the processOne path described in the issue, tracing where group messages create sessions but non-owner senders are routed to the fixed reply. Verify the group @ condition, owner-only private-chat behavior, bot-message filtering, and session separation; done means non-owner group mentions receive Agent answers while unmentioned messages and bot messages do not trigger.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.