Enable serialization and deserialization of PromptSession objects to JSON files. Add autosave support triggered on close or project switch. Include a schema version tag to allow for future migration handling.
Acceptance Criteria:
- Sessions can be saved and loaded as
.json files with no data loss
- Autosave does not block UI for more than 250ms
- JSON includes a top-level
"schema_version" key
- Unit tests verify round-trip serialization and schema version tagging
Enable serialization and deserialization of
PromptSessionobjects to JSON files. Add autosave support triggered on close or project switch. Include a schema version tag to allow for future migration handling.Acceptance Criteria:
.jsonfiles with no data loss"schema_version"key