Revert "refactor: remove legacy history and proxy migrations (#6518)"

This reverts commit cb3ba45317.

Keep JSONL history and legacy proxy migration available throughout 0.4.x. Mark their removal for 0.5.0 in code and release guidance, preserving later context graph, archive and recovery changes.
This commit is contained in:
chengyongru authored and chengyongru committed 2026-11-06 10:58:10 +08:00
1 parent 3918ece17f
commit 812b92d734
47 files changed
+1932 -204

No files matched your search

+2 -1
View File
@@ -9,7 +9,7 @@ from typer.testing import CliRunner
from nanobot.cli.commands import app
from nanobot.config import home as instance_home
from nanobot.config import loader
from nanobot.config.paths import get_cli_history_path, get_media_dir
from nanobot.config.paths import get_cli_history_path, get_legacy_sessions_dir, get_media_dir
from nanobot.config.schema import Config
@@ -54,6 +54,7 @@ def test_home_paths_and_saved_workspace(tmp_path):
assert Config().workspace_path == tmp_path / "workspace"
assert get_media_dir() == tmp_path / "media"
assert get_cli_history_path() == tmp_path / "history" / "cli_history"
assert get_legacy_sessions_dir() == tmp_path / "sessions"
config = Config()
config.agents.defaults.workspace = str(tmp_path / "custom")
loader.save_config(config)