Unplugging while external monitor is primary display will make phosh unusable or it doesn't revert the primary display to the phone screen
I have found that if I connect my external monitor and set it to be the primary display in the settings and then subsequently unplug the phone, phosh will become unresponsive. Upon immediately unplugging, I still see the wallpaper on the phone screen, but there are no buttons to access the app drawer or status bar. If I then subsequently turn off the phone display and turn it back on again, the relevant parts of the lock screen are not visible like you would expect. The screen is just the dark gray color. If I plug back into the external monitor at this point, it is also dark gray with no on-screen controls. To solve the problem, I have been removing the battery to restart the device. I have also had a similar experience when changing to and from a TTY in some particular cases.
I am using phosh 0.12.1-1 on pinephone with the unofficial Arch Linux ARM distro. Linux 5.12.19-1. I am using the HDMI-USB C dock provided with the pinephone. Monitor is a 1080p 27" Dell D2719HGFb monitor at 60Hz.