I tried this on two villagers that I hadn't traded with yet, both of the kept their profession when I broke their workstations, even though it was during working hours and they were both standing next to the workstation at the time.
I tried this on two villagers that I hadn't traded with yet, both of the kept their profession when I broke their workstations, even though it was during working hours and they were both standing next to the workstation at the time.
If you have traded with them at least once, they will never change their profession again, this is not a bug