Fix autologging after history clearing
Merge branch 'scrollback-autosave'