Repository navigation
飞书:卡片正文不再被无正文的读取覆盖;编辑推送在冷却结束后补读 - #56
Merged
Merged
Conversation
…with it; an edit pushed in its wait is read when it ends
0.11.72 on the real account (2026-12-03 21:05:50): a card read again with its content ("1 of 1 with their content")
was stored as the stand-in all the same: the same card read again without its body right after (an edit pushed
within its wait, CARD_PUSH_AGAIN) replaced the text the core had.
- The last reading of a card with its body (its text and @s) is kept (CARD_KEEP); a later reading without it shows
that, and is still read again for a newer body.
- A pushed card skipped in its wait is read once more when the wait is over (_cards_due, from the push loop), as it
is then: a bot's last edit, not the one before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ge.keep_text) 0.11.72 on the real account (2026-12-03): the 15:44 card read again with its content at 21:22:01 showed the stand-in again at the next thread read: that reading had no body, the reading again did not fill it, and its stand-in replaced the text the store had. A kept text in the backend only lasts a process. - core: Message.keep_text, a reading that says less than one before may have: the store keeps a text it has; a message new to it is kept with this one. - feishu: a card still without its body after _fill_cards is marked so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ever waited, and tried again a few times (review) - Signing out or another account's session forgets what was known of cards (kept texts, cards due, readings again, holes, the asks' and readings' pauses). - A pushed card due after its wait is read again as a newer client whatever waited before (force); one that could not be read is tried again CARD_DUE_TRIES times, CARD_DUE_AGAIN apart. - test_autoreply: the run is changed under its lock (the runner's poll could put back a copy read before; a CI run saw it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d (re-review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…在冷却结束后补读 - 核心:读取标明「比已存的少」时(keep_text),库里已有的文字保留;新消息照常存。 - 飞书:读完仍没有正文的卡片标上 keep_text;同一进程记住每张卡片最近一次有正文的文字和 @;冷却里被跳过的编辑推送,冷却结束后以新版本号再读一次,拿编辑后的版本;换账号或登出时清掉这些记忆。 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.
线上发现(0.11.72,12-03 20:39 升级后)
改了什么
Message.keep_text。后端标明「这次读取比可能已存的少」时,库里已有文字就保留;库里是空白或者是新消息,照常写入。_fill_cards结束时仍没有正文的卡片,标上keep_text。后端还按消息 id 记住最近一次读到正文的文字和 @(最多 2000 条),之后同一进程里的无正文读取沿用它。怎么验证的
keep_text)。bash scripts/test.sh结果见下方评论。没做什么
🤖 Generated with Claude Code