fix(remote): make Windows sends reach bus before return - #32
Conversation
レビューWindows/MSYS で 良い点
懸念点1. lib/sync.sh#L161-L168 の issue #31 のクローズコメントの滞留データが 2. 新しい失敗パスにテストが無い — 優先度中
3. MSYSTEM 判定パターンが既存の慣習と不一致 — 優先度低 同リポジトリ内で MSYS 系判定は 4. (nit) ドキュメントに遅延の言及がない Windows でのデフォルトがフォアグラウンドになったことで、 結論コアの修正方針・実装・ドキュメントは妥当でCIもgreenです。ただし懸念点1(既読レシート経路の同型バグ)はissue #31の実データ(message_read 23件滞留)と直接符合するため、これを含めずに#31をクローズするのは早計に見えます。マージ前にこの点だけ判断されることをお勧めします(2, 3は追って/別PRでも問題ないレベルです)。 🤖 Claude Code によるレビュー |
追レビュー(最新Push分)対象コミット: 前回指摘の**優先度「高」**だった「 修正内容 — 妥当scripts/lib/sync.sh#L171-L186 の
scripts/send.sh#L92-L113 と突き合わせましたが、ロジックの乖離はありません。 テスト — 前回テストと同じ手法で妥当新規テスト 呼び出し関係も実コードで確認しました。inbox.sh#L86-88 と check-inbox.sh#L198,209 の両方が 新たに生じた懸念(低優先度)前回指摘3(MSYS判定パターンが 未対応の前回指摘
いずれも前回レビューが「マージ後/別PRでも可」としていた水準で、ブロッカーではありません。 結論マージ前に判断すべきとした唯一の指摘(既読レシート経路の同型バグ)は、 🤖 Claude Code によるレビュー |
Closes #31.
What changed
pushon Windows/MSYS managed shellsAGMSG_REMOTE_PUSH_SYNC(1foreground, other values background)send.shreturnsWhy
The field store contained 27 local
galaxiasrows with UUIDs, but the bus had noevents/galaxias/writer. Managed Windows shells can terminate the backgroundremote.sh pushafter UUID assignment and before writer append.send.shthen reported success although the event never reached the bus.Verification
git diff --checkbash -n scripts/send.shsend.shwaited 6 seconds and the event was present in the bare bus before returnNot included
remote statusaccounting change (follow-up slice)