good morning!!!!
Fixes #15672 by creating the datadir when creating the console. This prevents failing to save the history if no datadir exists.