Ensure history is read - as well as written - every time the prompt is displayed