Files
nanobot/tests/session/test_session_list_repair_legacy.py
T
chengyongru 812b92d734 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.
2026-11-06 10:58:10 +08:00

12 lines
455 B
Python

"""Completed migration makes legacy JSONL files inert."""
from nanobot.session.manager import SessionManager
def test_list_and_reads_ignore_files_created_after_migration(tmp_path):
manager = SessionManager(tmp_path)
(manager.sessions_dir / "cli_test.jsonl").write_text("invalid JSON")
assert manager.list_sessions() == []
assert manager.read_session_metadata("cli:test") is None
assert manager.read_session_file("cli:test") is None