imservice: Increment serials on receiving done, not sending commit
No idea how that managed to stay undetected for so long.
The protocol says
The value of the serial argument must be equal to the number of commit requests already issued
which is actually wrong, because it was copied from text-input where those are reversed.