Skip to content

Fix staged screenshots not persisting across app restarts #1

Description

@false200

What is this about?

Problem

When you capture screens, stage them, then restart Cipher, the staged captures disappear.

loadState() tries to restore saved.screenshots, but persistState() never saves them.

Where to look

  • index.htmlpersistState() (~line 1083)
  • index.htmlloadState() (~line 1072)

Acceptance criteria

  • Staged captures survive app restart
  • persistState() and loadState() use the same data shape
  • App still starts cleanly if localStorage data is corrupt/too large

Skills needed

JavaScript, localStorage — no Electron main-process knowledge required.

How to test

  1. npm start
  2. Capture 1–2 screens (don't send yet)
  3. Quit and relaunch — captures should still be there

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokengood first issueGood for newcomersui/uxInterface and experience

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions