What happened?
In the pi TUI editor, when I press ↑ to browse input history and then press ↓ to go back, the editor gets cleared to empty instead of restoring what I had before browsing.
This is surprising because every shell (fish, zsh, bash) preserves your draft when navigating history — ↓ always brings you back to what you were typing before pressing ↑.
Steps to reproduce
- Submit a message so it's in history
- Press ↑ — you see your previous message ✓
- Press ↓ — editor is now empty (expected: return to pre-browse state)
Expected behavior
Pressing ↓ past the last history entry should restore whatever was in the editor before I pressed ↑, like fish/zsh/bash do.
Version
0.78.1
What happened?
In the pi TUI editor, when I press ↑ to browse input history and then press ↓ to go back, the editor gets cleared to empty instead of restoring what I had before browsing.
This is surprising because every shell (fish, zsh, bash) preserves your draft when navigating history — ↓ always brings you back to what you were typing before pressing ↑.
Steps to reproduce
Expected behavior
Pressing ↓ past the last history entry should restore whatever was in the editor before I pressed ↑, like fish/zsh/bash do.
Version
0.78.1