Isolate plan and task runtime per session

This commit is contained in:
wuyang6
2026-05-13 20:07:09 +08:00
parent f2989cd48b
commit 0eb57f3f42
8 changed files with 146 additions and 22 deletions
+5
View File
@@ -36,6 +36,11 @@ class TaskRuntime:
@classmethod
def from_workspace(cls, cwd: Path) -> 'TaskRuntime':
storage_path = (cwd.resolve() / DEFAULT_TASK_RUNTIME_PATH).resolve()
return cls.from_storage_path(storage_path)
@classmethod
def from_storage_path(cls, storage_path: Path) -> 'TaskRuntime':
storage_path = storage_path.resolve()
if not storage_path.exists():
return cls(tasks=(), storage_path=storage_path)
try: