fix(session): keep workspace history scoped during local reconnects

Use the active workspace root instead of stale engine directories when reloading local sessions so workspace creation, switching, and restart flows do not hide another workspace's history. Add a regression check for stale session loads overwriting sidebar and route state.
This commit is contained in:
Benjamin Shafii
2026-03-23 22:12:01 -07:00
parent b3278b107e
commit 7e4e8ec153
7 changed files with 245 additions and 28 deletions

View File

@@ -22,6 +22,7 @@
"test:events": "pnpm --filter @openwork/app test:events",
"test:todos": "pnpm --filter @openwork/app test:todos",
"test:permissions": "pnpm --filter @openwork/app test:permissions",
"test:session-scope": "pnpm --filter @openwork/app test:session-scope",
"test:session-switch": "pnpm --filter @openwork/app test:session-switch",
"test:fs-engine": "pnpm --filter @openwork/app test:fs-engine",
"test:e2e": "pnpm --filter @openwork/app test:e2e",