When I enter something in Mongoshell and don't click return key and go back in history (arrow up) and then try to return to it with arrow down, the previously entered text disappears and is nowhere to find in history.
IMO Mongoshell should behave similar to Bash so you can start entering something, checkout history and then return to it.