fix: snapshot saves logs+prompt to logs/ subdir; routing via_x under start pad; router disabled

This commit is contained in:
Tom
2026-03-11 11:04:24 +01:00
parent 8412277b3d
commit 3d9497ebe5
5 changed files with 68 additions and 11 deletions

View File

@@ -695,7 +695,10 @@ class ExportCommands:
session_lines = all_lines[session_start:]
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
dest = os.path.join(project_dir, f"mcp_log_{timestamp}.txt")
from pathlib import Path
logs_dir = Path(project_dir) / "logs"
logs_dir.mkdir(exist_ok=True)
dest = str(logs_dir / f"mcp_log_{timestamp}.txt")
with open(dest, "w", encoding="utf-8") as f:
f.writelines(session_lines)