This change restores terminal history autocomplete to a safe and predictable baseline. The current implementation keeps a local shadow copy of the shell input line inside HistoryPromptState and ...