When /plan <text> or /goal set <text> is typed while plan/goal mode is already active, the handler shows a warning and clears the editor, but the typed text was silently discarded — the user could not recover it with Up Arrow. Fix: save the text to editor history before clearing, so it remains recoverable via input history. Fixes #1287