Part of the init code calls statusbar prompt reset which causes collateral damage on things like visible, placement and type.
On startup, it should parse the output of statusbar prompt, and store these settings somewhere such that they can be restored at a later date.
feature_tests/getchan.pl has an example of how to handle the parsing.