You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Corrected `Export Current Session JSON` to export a full Workspace V2 container instead of only the active tool session payload.
15
+
- Export still validates active session via `readActiveSessionPayloadForLibraryActions()` so export gate matches active-session source used by Save session flows.
16
+
- Exported JSON now includes:
17
+
- workspace/session identity
18
+
- active tool identity
19
+
- active hostContextId
20
+
- active session payload
21
+
- session library entries
22
+
- recent session history entries
23
+
- persisted session selection metadata
24
+
- merge audit metadata
25
+
- Export filename now includes workspace/tool/session identity (`workspace-v2-<toolId>-<hostContextId>.json`).
26
+
- No fallback/default payload export path introduced.
1. Keep active-session export gate based on `readActiveSessionPayloadForLibraryActions()`.
13
+
2. Build export payload as Workspace wrapper object (not single tool payload):
14
+
-`version`, `toolId: workspace-v2`
15
+
-`workspaceSession` container including identity, active session payload, sessionLibrary, sessionHistory, selection metadata, and merge audit metadata.
16
+
3. Keep exact success/failure export statuses:
17
+
- success: `Exported current workspace session JSON.`
18
+
- no active session: `No active Workspace V2 session is available to export.`
19
+
4. Block export when Session Library is invalid to prevent silent data loss.
20
+
5. Keep JSON download behavior and include workspace/tool/session identity in filename.
21
+
6. Update targeted runtime test to validate full-session-wrapper export contract.
22
+
23
+
## Acceptance
24
+
- Export outputs full Workspace V2 container.
25
+
- Active tool payload remains intact inside container.
26
+
- Session metadata required by save/load/diff/merge context is included.
0 commit comments