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
@@ -106,6 +106,11 @@ class PlanRuntime:
@classmethod
def from_workspace(cls, cwd: Path) -> 'PlanRuntime':
storage_path = (cwd.resolve() / DEFAULT_PLAN_RUNTIME_PATH).resolve()
return cls.from_storage_path(storage_path)
@classmethod
def from_storage_path(cls, storage_path: Path) -> 'PlanRuntime':
storage_path = storage_path.resolve()
if not storage_path.exists():
return cls(storage_path=storage_path)
try: