I found a bug months ago where the farm panel was opened in background behind the character detail in the mansion, but only when a character was selected in the character list. I think Ankh fixed this in the main code but this mod still carries the original bug (presumably as it copied an older version of the file).
At the start of on_farm_pressed in mansion.gd you can add the lines
_on_mansion_pressed()
yield(self, 'animfinished')
and this seems to act as a general reset for the UI, fixing this problem.