Skip to content

fix(feishu): preserve text across transient progress and rotations - #179

Merged
xmanrui merged 1 commit into
mainfrom
codex/feishu-post-rotation-followup
Sep 8, 2026
Merged

fix(feishu): preserve text across transient progress and rotations#179
xmanrui merged 1 commit into
mainfrom
codex/feishu-post-rotation-followup

Conversation

@xmanrui

@xmanrui xmanrui commented Sep 8, 2026

Copy link
Copy Markdown
Owner

两次提问或审批之间出现工具状态时,状态文本会被拼入冻结前缀,导致后续累计正文重复显示;最终正文恰好等于冻结前缀时,收尾卡还可能沿用“正在使用工具”的旧状态。

本次继续完善 evanfang0054 在 #168 中实现的交互换卡逻辑。#168 已通过 merge commit 94f3b2f 合入,原作者的完整提交历史和归属保持不变。

  • bridge 将工具和状态更新标记为临时内容;换卡只使用当前卡实际展示成功的正文前缀,临时状态和初始占位内容不会进入去重基线。
  • 当前卡内容与最新输入快照分别保存;未送达的更新不计入已展示正文,非累计正文可以建立新的前缀。
  • 收尾根据最新快照重新计算内容,即使增量为空,也不会沿用之前的工具状态。
  • 重建并提交 lib/index.js

验证:新增 5 个回归测试,覆盖两次提问之间的工具更新(含 bridge 集成路径)、最终正文重放、初始占位/独立正文及写入失败。飞书相关测试 278/278 通过,完整 npm run check 2470/2470 通过,包产物验证通过。

Follow up on evanfang0054's interaction presentation work in #168. Keep temporary statuses out of the frozen text prefix and derive final cards from the latest snapshot. Cover repeated questions, replayed final text, initial placeholders, replacement snapshots, and failed writes.
@xmanrui
xmanrui merged commit 53739a5 into main Sep 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant