Full report and investigation in microsoft/vscode#148109
Starship prompt seems to not write a space after the prompt char so it ends up as a null character. For some reason this only happens when scrollback exists, probably some quirk that happens because of conpty but is a big that could occur anywhere.