Expand description
P5-4 (§3.1, D5 “cross-session prompt history”; S6: homed here per the
design’s own §2 module-30 row — “Ctrl+R-style search is a
composer/UX affordance”): a persisted, searchable list of prompts the
user has submitted, surviving across TUI sessions (unlike an in-memory
Vec that resets on exit). Deliberately its own small file format (one
prompt per line, blank lines and \n collapsed to a literal \n escape
so a multi-line prompt round-trips as ONE history entry — NOT the same
file rustyline’s REPL history uses, since rustyline’s DefaultHistory
serialization is a private implementation detail of that crate, not a
format this crate should parse) so a TUI session started days later
still has yesterday’s prompts to Ctrl+R through.
Structs§
- Prompt
History - A persisted, searchable prompt history.