Shell commands are not stored in the message history, so pressing `up` to restore the previous message only restores the last non-shell prompt. This feels a bit unintuitive as it seems common for all commands to be stored in history in most other scenarios, e.g. terminal history.