“保存回复”因连接问题失败时,帖子内容(部分)丢失

When “Save Reply” happens while the internet connection is temporarily down (as just happened to me several times in this train), the content of the post are partially lost.

Steps to reproduce:

  • Start writing a reply.
  • While writing, cap your internet connection.
  • Hit “Save Reply”.
  • Some time later, restore your internet connection.

Expected behavior:
At some point, the “Saving…” process should give up and bring me back to the editor (or at least show a “Cancel” button that does this), so that I can try again to submit my response.

Actual behavior:
The “Saving…” bar at the bottom just sticks around with a spinning circle endlessly. The “expand” button it shows does nothing when clicked. The only thing I can do is to hit F5, which will restore some prior version of the post (not sure if from a local or a server-side cache) – but my last few sentences are lost.

I just had this happen 4 times in a row. At least the last two times I remembered to manually copy the post content before submitting, but that really should not be necessary.

Where are you seeing a “Save Reply” button? I am not aware of any such button in Discourse.

Drafts are saved automatically at regular intervals, provided the content has changed and there is enough content to save, beyond the minimum character limits.

Sorry, it’s called just “Reply”.

我又遇到这个问题了:在点击“保存编辑”时网络断开,导致我对帖子的所有编辑内容完全丢失。网络恢复后,我刷新页面,却发现编辑内容不见了。看起来当它尝试在服务器上自动保存时,已经无法连接,甚至没有尝试在本地自动保存?

你能大致描述一下这次编辑的时间跨度(以秒为单位)以及你编辑了多少个字符吗?

正如我之前提到的,草稿会定期自动保存,但这需要一定的编辑时长。

这次编辑是添加了 2 句话。我不确定这花了我多长时间,大概是 30 秒到 1 分钟之间?

所以你的意思是,草稿原则上应该保存在本地吗?那么,是否可以在我按下“保存编辑”时触发另一次本地保存,以确保在不可逆地禁用编辑器之前保存最新版本?

在最新的 Discourse(嗯,也就是 https://internals.rust-lang.org 目前使用的版本)中,这仍然是个问题:我刚发了一个新帖子,但由于网络连接不好,帖子未能成功发送。它会一直转圈。几分钟后,我按了 F5 来解锁该标签页,却发现最后大约 30 秒的输入都丢失了——本地保存了一个草稿,但它是过时的。

难道在点击“回复”时,不应该很容易地更新本地保存的草稿吗?我希望 Discourse 能考虑到网络连接不佳的用户需求。目前,在这方面,像 phpBB3 这样的旧论坛比 Discourse 做得更好。