Two comment edits can be in flight at once (component_flow.md shows how the component dispatches them). The UI shows each edit immediately and rolls it back if its request fails. Support reports that edits the server accepted sometimes vanish from the screen. One reproduction, starting from comments c1 = "A" and c2 = "B":
| Step | c1 shown | c2 shown |
|---|
beginEdit r1: c1 → "A1" | A1 | B |
beginEdit r2: c2 → "B1" | A1 | B1 |
settleEdit r2, succeeded | A1 | B1 |
settleEdit r1, failed | A | B (expected B1) |
The framework wrapper is not included; comment_state.js contains the state transition functions the component dispatches. Fix them.