Hmm I had a look at the code path again and I can’t reproduce the bug being reported here.
I did find a bug where categories added during creation are not actually being saved at all and fixed it in
https://github.com/discourse/discourse/commit/c260a4e34d8df1a6f8263ca0d3b5c3a6a8a8bb29
@DanielMarquard Can you try providing me with the exact reproduction steps so that I can dig more into it? Thank you!