From ed376d1b5b8a99efb7d4547db365416258a97e6f Mon Sep 17 00:00:00 2001 From: X-iZhang Date: Sun, 8 Mar 2026 14:38:11 +0000 Subject: [PATCH] fix(interactive): update history file path to use config directory --- EvoScientist/cli/interactive.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/EvoScientist/cli/interactive.py b/EvoScientist/cli/interactive.py index c5130e8..71ecf62 100644 --- a/EvoScientist/cli/interactive.py +++ b/EvoScientist/cli/interactive.py @@ -207,7 +207,11 @@ def cmd_interactive( from .. import paths memory_dir = str(paths.MEMORY_DIR) - history_file = str(os.path.expanduser("~/.EvoScientist_history")) + from ..config.settings import get_config_dir + + config_dir = get_config_dir() + config_dir.mkdir(parents=True, exist_ok=True) + history_file = str(config_dir / "history") session = PromptSession( history=FileHistory(history_file), auto_suggest=AutoSuggestFromHistory(),