Skip to content

Content not saved after session timeout + save (Ctrl+S or Save button) #124

@perber

Description

@perber

When the user's session has expired and they attempt to save (via Ctrl+S or clicking the Save button), LeafWiki triggers a session refresh — but the content is not saved afterward, and no warning is shown.

This leads to silent data loss, especially frustrating after long editing sessions.

Current Behavior

  1. User edits a page
  2. Session expires in the background (JWT no longer valid)
  3. User presses Ctrl+S or clicks Save
  4. Session is refreshed (token renewal)
  5. Editor returns to normal, but:
    • Edited content is lost
    • No error or warning is shown

Expected Behavior

  • After successful session refresh:
    • The original save action should be retried automatically, OR
    • The user should be prompted to save again
  • No user data should be lost if session refresh is triggered mid-save

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdogfoodingIssues during dogfooding

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions