Repository navigation
飞书收件箱:免打扰群、按话题分条目、指定群交给 AI 分拣、指定私聊不交给 AI - #37
Merged
Merged
Conversation
…roups for AI triage, direct chats no model reads
- A group muted in Feishu (消息免打扰: Chat.isRemind / userSetting.isRemind, both read, a disagreement or a
missing field not known) keeps what does not @ the user out of the Inbox; still archived, an @ sorted as usual,
a state not known as before. Asked in the background, an hour at a time, ten groups a round.
- A group's topics are Inbox items of their own ("<chat>:<root>"): their context, done state, page and reply
that topic's; what is said outside any topic stays the chat's item, its id as before.
- inbox_triage_chats (empty by default): those groups' messages without an @ go to the triage model, muted or not.
- inbox_private_dms (empty by default): those direct chats stay in the Inbox with the rule's tier, no model.
- WeChat: none of it (no topics, no mute state, the settings not in its manifest).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tter, private chats carry no words, topics per group mode - A muted group's thing without an @ is handed over done (read), so an item kept from before ends too; in a muted group the @ stays the thing's last, not the chatter after it; a failed read is "unknown" (the old way) till the next hour; a state is the account's own (owner), the retry clock forgotten at an account switch. - inbox_private_dms: the other person found from the chat's lines too; the item carries no words of it. - Topics: a group in topic mode has a thing per topic (roots without replies too); in an ordinary group a topic's thing is its replies, its root the chat's own (the user's reply in that topic ends both); 300 lines per group, a topic older than the Inbox's days left out, rows by (position, when, seq). - A topic's page pages back and replies through the send tool, which reads "<chat>:<root>" as that topic. - A live reading's placement corrects the thread a history read kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ead across an account switch, topic pages by place - inbox_private_dms: a chat listed by its id is hidden whatever kind the store took it for. - inbox.collect hands over nothing read partly for another account (a sign-in meanwhile). - A muted group's @: its sender is the item's sender tag too. - A topic group's one item from before topics were items of their own is handed over done (inbox_topics_at), once. - A topic page pages by place (position, when, seq): a newer line moves no page; no cap below the whole topic. - The send tool refuses a reply_to of another topic than the topic chat it was given. - A mutes table made without owner (an unreleased build) gains the column. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… yet sent as asked, the old item ended even when replied Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts placement is the live row's alone, as before) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
对齐官方 larkx 的收件箱改动(第 1、6、8 项),只改飞书;微信行为不变。
做了什么
chat_mute:读会话记录的Chat.isRemind(27)和Chat.userSetting.isRemind(29.1),提醒关着就是免打扰。只认布尔值,字段缺失或两处不一致算“读不出”;isMuteAtAll(不提醒 @所有人)是另一个开关,不读。mutes(带账号,换号时清掉,回滚后也不会读到别的账号的)。done=read),以前已经入箱的条目也随之关闭;仍照常归档进知识库。@我 的照常分拣,之后的闲聊不会顶掉这条 @。读不出状态(或读失败)时照旧按规则判噪音。inbox_private_dms(默认空)。列出的私聊(会话 id 或对方用户 id)照常进收件箱,分级由规则定为“要你处理”,不调用模型,条目的预览和上下文里也不带消息内容。<chat>:<root>;上下文、“我最后回复就结束”、会话页、回复都限定在该话题。话题外的消息仍是群自己那条,id 照旧是会话 id。<chat>:<root>当成发进这个话题)。inbox_triage_chats(默认空):列出的群里没有 @我 的消息也交给 AI 分拣(免打扰或状态未知也一样),模型不可用时回落噪音(extra.rule_tier)。没做什么
inbox_triage_chats逐个打开。怎么验证的
tests/test_inbox_topics.py(24 个)覆盖上面每一条,包括微信平台下一切照旧;test_larkagentx.py新增mute_of的字段组合。新测试在 origin/main 上全部失败(行为缺失)。🤖 Generated with Claude Code
已知限制(审查中提出、决定不改)
inbox_private_dms、或把已有噪音条目的群加进inbox_triage_chats:在这个会话有新消息之前,Persona 保留旧条目的内容和层级(协议里last不变就不改正文),只对之后的消息生效。