The Bug
when bee is enclosed in a cage it will try to path find through corners to get to flowers. Once corner is filled in it will stop attempting to go through that corner.
It looks like this only applies to three-way corners.
in this scenario, filling in any of the 4 missing blocks will make the bee unable to pathfind through the corner:
How to Reproduce
Build a completely encased area with no corners filled:
[media]
Summon a bee in it
-> ❌ After a short while, the bee will try to go through a corner
Linked issues
is duplicated by
relates to
Attachments
Comments

^ And when babies do grow up, in the setup in the picture from the previous comment, they clip into the block/corner and escape the cage.

In 20w11a
What @unknown mentioned is another issue: MC-9568

In 20w12a

In 20w18a

In 20w19a
Confirmed. Baby bees also attempt to pathfind through vertical corners and will remain until fully grown or distracted.
[media]