feat: export improvements — Phase A + Phase B #75

Merged
chihlasm merged 19 commits from feat/export-phase-a into main 2026-02-13 23:30:32 +00:00
Showing only changes of commit f8a14d8b4c - Show all commits

View File

@@ -429,7 +429,8 @@ def generate_psa_export(session: Session, options: SessionExport) -> str:
lines.append("No steps recorded.")
lines.append("")
# Resolution
# Resolution — only for completed sessions
if session.completed_at:
lines.append("--- RESOLUTION ---")
_raw_notes = getattr(session, 'outcome_notes', None)
outcome_notes = _raw_notes if isinstance(_raw_notes, str) else ''