This is now fixed, in anvil-uplink version 0.3.42.
anvil-uplink
Thanks for the thorough report and repro cases!