I've tried every possible solution: I filled up the farmer's inventory with seeds (8 slots), put trapdoors around the composter, and even removed the composter completely, but nothing worked.

The villagers have been refusing to work, or composting their seeds into bone meal, which keeps freeing up space in their inventory.

What should I do to fix this?
Did I miss an update? My villager wheat farm is not working correctly anymore. (Java, 1.21.8)