# 既存の編集下書きがあるトピックに返信しようとしたら、編集下書きが返信としてコンポーザーに開かれる

**URL:** https://meta.discourse.org/t/trying-to-reply-to-a-topic-with-an-exisiting-edit-draft-opens-the-composer-with-the-edit-draft-as-a-reply-instead/412270
**Category:** Bug
**Tags:** composer, drafts
**Created:** [2026 年 9 月 12 日午前 11:29 UTC](https://meta.discourse.org/t/trying-to-reply-to-a-topic-with-an-exisiting-edit-draft-opens-the-composer-with-the-edit-draft-as-a-reply-instead/412270 "2026-09-12T11:29:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2026 年 9 月 12 日午前 11:29 UTC](https://meta.discourse.org/t/trying-to-reply-to-a-topic-with-an-exisiting-edit-draft-opens-the-composer-with-the-edit-draft-as-a-reply-instead/412270/1 "2026-09-12T11:29:21Z")

</div>

投稿の編集を開始した後、編集下書きを保存するために `x` をクリックすると、Reply をクリックした際に、空のコンポーザーではなく、編集下書きが入ったコンポーザーが開きます。コンポーザーのアクションは編集ではなく、編集済みの投稿で返信を投稿することになります。

その理由は、トピックが文字列の `draft` フィールドでシリアライズされているため、トピックごとに複数の下書きを処理する仕組みが組み込まれていないことだと考えられます。

再現手順:

1. 既存の投稿の編集を開始します。下書きが保存されるよういくつか変更を加えます。編集を提出しないでください。
2. `x` ボタンでコンポーザーを閉じます。
3. トピック内の Reply ボタンをクリックします。空のコンポーザーではなく、編集下書きが表示されます。コンポーザーのアクションは編集ではなく、返信です。

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2026 年 9 月 14 日午前 8:27 UTC](https://meta.discourse.org/t/trying-to-reply-to-a-topic-with-an-exisiting-edit-draft-opens-the-composer-with-the-edit-draft-as-a-reply-instead/412270/2 "2026-09-14T08:27:50Z")

</div>

OPに再現手順を追加しました。

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [2026 年 9 月 15 日午後 12:05 UTC](https://meta.discourse.org/t/trying-to-reply-to-a-topic-with-an-exisiting-edit-draft-opens-the-composer-with-the-edit-draft-as-a-reply-instead/412270/3 "2026-09-15T12:05:18Z")

</div>

この問題の修正を [FIX: check if saved draft is an edited post (#43680) · discourse/discourse@bc06b6d · GitHub](https://github.com/discourse/discourse/commit/bc06b6d1340a5fcc0fcc86ac96d8e9a7e1a845fe) にマージしました。これにより、アクションが正しく “edit” に設定されるはずです。

現在、複数の下書き編集/返信の機能はありません（複数のトピック下書きのみ対応）ので、少し厄介です。将来的に追加するかもしれません。

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2026 年 9 月 17 日午前 1:40 UTC](https://meta.discourse.org/t/trying-to-reply-to-a-topic-with-an-exisiting-edit-draft-opens-the-composer-with-the-edit-draft-as-a-reply-instead/412270/4 "2026-09-17T01:40:12Z")

</div>


