[Feature] Session Draft Auto-Recovery #54

Closed
opened 2026-02-10 15:58:19 +00:00 by chihlasm · 1 comment
chihlasm commented 2026-02-10 15:58:19 +00:00 (Migrated from github.com)

Summary

If browser crashes or closes mid-session, auto-recover from the last saved state on next visit. Show a "Resume interrupted session?" prompt.

Why

  • Losing a 20-minute troubleshooting session to a browser crash is rage-inducing
  • Builds user trust and eliminates anxiety about data loss
  • Sessions already persist to database — just need reconnection logic

Implementation Notes

  • On login/app load: query for incomplete sessions (completed_at IS NULL) for current user
  • If found, show a prompt: "You have an interrupted session: [Tree Name] for [Client] (started X min ago). Resume?"
  • "Resume" navigates to TreeNavigationPage with that session loaded
  • "Discard" marks session as abandoned (or leaves for later)
  • Consider showing this on the tree library page as a banner

Acceptance Criteria

  • On app load, check for incomplete sessions for current user
  • Display resume prompt with session details (tree name, client, elapsed time)
  • "Resume" loads the session at the last recorded step
  • "Dismiss" hides the prompt (does not delete the session)

Sources

Priority

Do Now — low effort, trust builder

## Summary If browser crashes or closes mid-session, auto-recover from the last saved state on next visit. Show a "Resume interrupted session?" prompt. ## Why - Losing a 20-minute troubleshooting session to a browser crash is rage-inducing - Builds user trust and eliminates anxiety about data loss - Sessions already persist to database — just need reconnection logic ## Implementation Notes - On login/app load: query for incomplete sessions (`completed_at IS NULL`) for current user - If found, show a prompt: "You have an interrupted session: [Tree Name] for [Client] (started X min ago). Resume?" - "Resume" navigates to TreeNavigationPage with that session loaded - "Discard" marks session as abandoned (or leaves for later) - Consider showing this on the tree library page as a banner ## Acceptance Criteria - [ ] On app load, check for incomplete sessions for current user - [ ] Display resume prompt with session details (tree name, client, elapsed time) - [ ] "Resume" loads the session at the last recorded step - [ ] "Dismiss" hides the prompt (does not delete the session) ## Sources - `.claude/docs/ai/resolutionflow/10x/session-1.md` — Small Gems #4 ## Priority **Do Now** — low effort, trust builder
chihlasm commented 2026-02-11 00:43:33 +00:00 (Migrated from github.com)

Implemented in PR #72 (feat/session-quick-wins).

Implemented in PR #72 (feat/session-quick-wins).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: chihlasm/resolutionflow#54