|
| 1 | +# Session Delete Save And Preview Root Handle |
| 2 | + |
| 3 | +## Scope |
| 4 | +- Added Workspace Manager V2 `Save` and `Close Workspace` controls. |
| 5 | +- Restricted Workspace Manager V2 session deletion to the explicit `Close Workspace` path. |
| 6 | +- Preserved Session Inspector V2 per-entry Delete and Delete All deletion behavior. |
| 7 | +- Updated Session Inspector V2 Delete All to log each removed key before the summary. |
| 8 | +- Updated Preview Generator V2 repo handle diagnostics and handle-based write verification. |
| 9 | + |
| 10 | +## Session Deletion Guardrails |
| 11 | +- Workspace Manager V2 lifecycle paths no longer delete normalized `workspace.tools.<tool-id>` keys. |
| 12 | +- Workspace Manager V2 Close Workspace checks every normalized `workspace.tools.<tool-id>.dirty` object before clearing workspace session data. |
| 13 | +- If any dirty session has `isDirty: true`, Close Workspace logs a visible `WARN` and leaves all session data in place. |
| 14 | +- If dirty state is clean and known, Close Workspace clears workspace session data and logs each removed key. |
| 15 | +- Session Inspector V2 Delete and Delete All remain explicit user actions and continue to log removed keys. |
| 16 | + |
| 17 | +## Save Behavior |
| 18 | +- Save refreshes the active workspace context from normalized tool session data. |
| 19 | +- Save persists the refreshed context to the current Workspace Manager V2 session context key. |
| 20 | +- Save marks dirty enabled tool sessions clean after the refreshed context is persisted. |
| 21 | +- Tool tiles refresh dirty status after Save. |
| 22 | + |
| 23 | +## Preview Generator V2 Root Handle |
| 24 | +- Workspace launch now logs: |
| 25 | + - repo display label |
| 26 | + - repo root path string |
| 27 | + - repo FileSystemDirectoryHandle presence |
| 28 | + - verified handle root name |
| 29 | + - handle resolution for `games/<game>/assets/images` |
| 30 | +- Missing folder failures log: |
| 31 | + - requested relative folder |
| 32 | + - handle root name |
| 33 | + - display repoRoot string |
| 34 | + - session key used |
| 35 | +- Preview Generator V2 now requires handle read-back verification before logging `OK WRITE`. |
| 36 | +- When absolute path strings and handle-relative paths differ, both are logged and the mismatch is flagged. |
| 37 | + |
| 38 | +## Guardrails |
| 39 | +- No hidden fallback paths were added. |
| 40 | +- No direct cross-tool communication was added. |
| 41 | +- No sample JSON was modified. |
| 42 | +- No roadmap content was modified. |
| 43 | + |
| 44 | +## Skipped |
| 45 | +- Full samples smoke test was skipped by request. The changed behavior is covered by Workspace V2 targeted and full Playwright validation. |
0 commit comments