@playerafar, if you start from the initial position in a game, or when analysing a game, it will infer castling rights at every move.
If you start a game or an analysis from a non-standard position, it will take the castling rights from the initial position and infer thereafter.
For some reason playerafar still doesn't know whether tygxc's position is legal. Here's a proof game which demonstrates that it's legal.