Skip to content

fix(lark): 话题内 /close 后在最新处补发关闭卡片 - #3240

Merged
deepcoldy merged 1 commit into
deepcoldy:masterfrom
ceilf6:fix/close-latest-closed-notice
Nov 9, 2026
Merged

deepcoldy merged 1 commit into
deepcoldy:masterfrom
ceilf6:fix/close-latest-closed-notice

Conversation

@ceilf6

@ceilf6 ceilf6 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Closes #3239

改动

话题会话 /close 后,原流式卡片照常冻结为「会话已关闭」,同时在 /close 处回复一张关闭卡片,与 chat scope「改写原卡片 + 给操作者确认」的行为一致。原卡片常在上方若干条消息之外,只改写它时最新处没有反馈,用户会误以为没生效而重复 /close。

closeSession 返回值里的 closedCardPatchQueued 只服务于原来的跳过判断,改后没有消费方,一并移除。

范围

只改默认(非 durable-primary)路径的 /close 命令。durable-primary 下纯文本 /close 走 durable-lark-session-control-runtime 的控制事件,同样只改写原卡片,本 PR 未改动。

验证

  • test/close-command-card-delivery.test.ts:thread scope 有实时卡时,断言原卡片 PATCH 一次、/close 处回复一次;PATCH 排在在途更新后面时同样只回复一次。
  • 所有涉及 /close 的单测文件(16 个):2187 通过。test/daemon-rename-route.test.ts 的 2 条 /queue 用例失败,在未改动的 master 上同样失败,与本改动无关。
  • bun run typecheck 通过。

🤖 Generated with Claude Code

话题会话 /close 时,原流式卡片会被原地改写为「会话已关闭」,但它常在
/close 上方若干条消息之外,最新处没有任何反馈,用户会误以为没生效而
重复 /close(再次触发会新建空会话并立即关闭)。

现在原卡片照常冻结为关闭态,同时与 chat scope 一致,在 /close 处回复
一张关闭卡片。closeSession 的 closedCardPatchQueued 字段随之没有消费
方,一并移除。

Closes deepcoldy#3239

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 06:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@deepcoldy

Copy link
Copy Markdown
Owner

感谢贡献,已 squash 合入 master。

这个修复让话题会话 /close 后在命令下方直接给出关闭确认,同时保留原流式卡片的冻结 PATCH,解决了 #3239 里「最新处没有反馈、重复 /close」的问题。评审中验证了 thread/chat/private/无卡回退等各路径行为,以及在途 PATCH 排队时确认只发一次。

两条非阻塞 follow-up 已登记:

这是自动评审的初步意见,最终以维护者审阅为准。欢迎继续贡献。

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

@ceilf6 @deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。

这次运行覆盖 c53afd0…af0f83d7f(7 个提交),同批合入的还有 #3244 #3236 #3243 #2843 #3246 #3247,失败不一定由本 PR 引起。

用例 跑道 状态 失败信息
Claude basic bot flow feishu-core-claude failed waitFor timeout: Based on the screenshot, the main content area displays a chat interface. There is a streaming card (green header) located above the "ACK-e2e-clause..." text bubble. This card contai…
OpenCode basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area which displays a conversation thread. There is a prominent card (streaming card) located above the text bubble containin…
Pi basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area which displays a conversation thread. There is a prominent card (streaming card) located above the text bubble containin…
OhMyPi basic bot flow feishu-core-clis failed waitFor timeout: The current screenshot shows the main content area displaying a conversation topic titled "e2e-ohmypi-1794226089094". The visible message in this topic is a text instruction from use…
Kimi basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area (right panel) which displays a conversation thread. There is a prominent card component located above the text bubble co…
Antigravity basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area (right panel) which displays a chat topic. There is a specific card from "Antigravity" located above the text bubble con…
Grok basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area (right panel) which displays a conversation thread. There is a prominent card titled "Grok Build • e2e-grok-179422803607…

@github-actions

Copy link
Copy Markdown

🚀 Released in v3.59.0

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.

fix(lark): 话题内 /close 后最新处没有关闭提示,用户以为没生效而重复 /close

3 participants