feat: Session-specific, file-backed history in the REPL
CI / All (ubuntu-latest) (push) Failing after 25s
CI / All (macos-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-07-02 16:44:55 -06:00
parent 605a9170b0
commit c2cb4ac433
3 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -449,7 +449,8 @@ Type ".help" for additional help.
}
if app.save_shell_history {
let history_path = paths::config_dir().join("repl_history");
let ctx = ctx.read();
let history_path = paths::repl_history_file(&ctx.session);
if let Ok(history) = FileBackedHistory::with_file(1000, history_path) {
editor = editor.with_history(Box::new(history));
}