Repository navigation
Conversation
Owner
Author
|
编译进度(提交
|
发出后、平台确认前超时或断线不再记「未送达」,记「可能已送达,未确认」, 迟到回复照样补进群。思路借鉴 Agent HUD 的 uncertain 回执(Apache-2.0),未拷代码。
- RoomMessageStatus:气泡下按三态显示(可能已送达用问号灰字),重试/再发一次遇到不确定先弹确认 - RoomRetryConfirm.tsx:确认弹窗(先等等 / 仍要重试) - FakeAdapter:error 改为 not-connected(没发出去),新增 lost(确认前超时,可带迟到回复) - 剧本 uncertain-delivery、docs/fixture.md;mock v34b 用真组件
This branch has not been deployed
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.
负责:Hark/fulsome_smile.3b · 预计 2026-12-03 21:30 北京(界面接线等「开工」)
计划(用户 2026-12-03 19:59 北京「开工」已批)
目标:群聊里平台还没确认收到就超时/断线时,不再记成「未送达」,改记「不确定」,避免用户点重试让 Bot 收到两遍。借鉴 Agent HUD(Apache-2.0)的「不确定回执、不盲重试」思路,只借思路,不拷代码。
送达三态
改动
RoomTurnError.delivered: boolean改为delivery: 'received' | 'not-sent' | 'uncertain';失败记录同步加字段,旧数据的delivered照读。watchLateReply,迟到的回复照样补进群。roomDeliveryState加uncertain。不做:不改各平台适配器;不加跨平台请求 id 幂等(网页 Bot 平台不支持);不做「等你处理」汇总和平台能力表(另开)。
验收:typecheck、vitest、electron-vite build、design:check 全过;新增测试覆盖三种情况和旧数据兼容;效果图 1 张。
风险:个别适配器在确认前就可能已被平台收下却不调 onAccepted,会更多显示「不确定」——这正是想要的保守结果。
进度与交接
uncertain;roomRetry 认新提示、roomDeliveryState加uncertain;不确定也挂 watchLateReply;英文提示一条。v34-room-uncertain(浅/深)。验证(2026-12-03 20:30 北京,3503d8e)
npm run typecheck退出 0(3503d8e)npx electron-vite build退出 0、npm run design:checkOK(3503d8e)npx vitest run(4adea13 全量):1397 过、3 失败,均为 hub.test.ts(已知满载超时),单跑 12/12 过;3503d8e 相关目录 49 文件 333/333 过npx electron-vite build退出 0npm run design:checkOK