The previous method of filtering duplicates only worked on duplicates that occurred consecutively. Since dupes happen out of order often, this switches the logic to instead use a map of seen commands and filter based on that.
I don't know go super well so I couldn't figure out how to test it, but this command will reproduce the issue by printing duplicate command counts:
The previous method of filtering duplicates only worked on duplicates that occurred consecutively. Since dupes happen out of order often, this switches the logic to instead use a map of seen commands and filter based on that.
I don't know go super well so I couldn't figure out how to test it, but this command will reproduce the issue by printing duplicate command counts:
Running this with a local build of my branch removes all the duplicates.