Palette duplicates get automatically removed in indexed mode

I’m encountering an issue where Aseprite automatically culls duplicate palette entries when I’m opening an indexed image or importing a new palette. Here’s a quick demonstration. I have a 16x16 image of my 256 color palette, but upon opening the palette image, the duplicates indices are removed and the palette size shrinks by a few indices. (The automatic addition of a transparent index is also kind of troublesome for my purposes by that’s a separate issue.) Even if I try to manually re-import the palette, the duplicates are still gone.

I often use Aseprite to edit graphics for Doom and Quake, which use 256-color paletted graphics. Much of the tooling in the modding ecosystem for these games expects that you’re using a 256-color palette, and don’t handle it well if the palette size differs from that (especially in the case of Quake tools like TexMex). I don’t recall having this issue a few years ago (~2020) when I was using Aseprite more, but I could be mistaken.

Hopefully I’m not missing something here, sorry if so D: