Goal is to be able to do devlog t and arrive either in a closed session, if it was open, or an open fresh session if it was closed.
Type of session can by default be the last session type.
For example, if the previous session is closed and is a CodingSession, then toggling would insert: CodingSession::BEGIN, etc.