Isso pode ser um bug, mas não tenho certeza por que isso não funciona:
Passos para Reproduzir.
Acessar um Tópico
Ir para o final do Tópico e clicar em Responder
Começar a redigir seu Tópico no Compositor
Clicar nas setas para baixo para minimizar o Compositor
Fechar o Compositor
Quando solicitado, salvar seu Rascunho
Clicar no botão Responder novamente
Resultado esperado:
Resultado real:
O Rascunho não está em lugar nenhum!
NO ENTANTO
O rascunho existe na minha lista de rascunhos
Se eu atualizar o Tópico, o Compositor abrirá automaticamente e o rascunho aparecerá.
Isso parece uma oportunidade perdida - ou é deliberado?
4 curtidas
Ethsim2
(Ethan )
Julho 12, 2025, 8:18am
2
Sempre pensei que fosse deliberado. No entanto, percebo que ao tentar escrever um novo rascunho onde o rascunho antigo estava, você recebe um prompt para manter/recarregar.
mcwumbly
(Dave McClure)
Julho 13, 2025, 1:36am
3
@davidb você pode dar uma olhada nisso?
Parece semelhante ao que você está trabalhando aqui, mas não tenho certeza se é exatamente o mesmo problema:
main ← load-post-draft-from-reply-btn
opened 03:26PM - 09 Jul 25 UTC
In the past we have always relied on automatically opening the composer and auto… loading the existing draft when visiting a topic that has a draft post reply. This is fine to auto load the draft, but when the composer is closed and reopened on the same page then we have an issue.
The result is that the draft is then deleted because the draft key is set and the composer body is blank, since it has never been populated when clicking the reply to post button.
To solve this we can check for existing drafts when clicking the reply to post button, then load the draft into the composer.
_The challenging part of this change is that we have a number of tests that were relying on a false positive. Hence in the specs I have switched some tests to use a fixture that does not have drafts and in some cases kept the same fixture but mocked the response as having no drafts returned._
Internal ref: /t/-/158209
Eu mesmo fiz um teste rápido e parece que o PR corrige isso.
3 curtidas
davidb
(David B)
Julho 14, 2025, 7:21am
5
Obrigado por relatar e pela reprodução, o PR que @mcwumbly compartilhou acima irá corrigir isso. Se não houver problemas, ele deve ser mesclado esta semana.
3 curtidas
davidb
(David B)
Julho 16, 2025, 8:03am
6
Isso foi mesclado ontem, testei um rascunho sobre este tópico e parece estar funcionando corretamente.
1 curtida
davidb
(David B)
Fechado
Julho 19, 2025, 8:03am
7
Este tópico foi fechado automaticamente após 2 dias. Novas respostas não são mais permitidas.