Skip to content

Promote to production: voice-to-text wake lock + recording persistence - #85

Merged
slaveofcode merged 2 commits into
mainfrom
develop
Aug 1, 2026
Merged

Promote to production: voice-to-text wake lock + recording persistence#85
slaveofcode merged 2 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Keeps the screen awake during transcription and persists the recording in IndexedDB so a mobile tab discard no longer loses it.

🤖 Generated with Claude Code

Kresna and others added 2 commits August 1, 2026 18:35
…oads

Reported: while the model downloads, the phone screen locks, the browser discards
the backgrounded tab, and on return the recording is gone (a general mobile SPA
state-loss pattern).

- useWakeLock: hold a screen Wake Lock during transcription/download so the phone
  doesn't auto-lock (re-acquired on返回 to foreground). Prevents the discard.
- recording-store (IndexedDB): persist the last recording and restore it on load,
  so even if the tab IS discarded, the recording comes back ('Restored your last
  recording.'). Blobs can't live in localStorage, hence IndexedDB.

545 tests · lint clean · build green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(voice-to-text): screen wake lock + persist recording across reloads
@slaveofcode
slaveofcode merged commit fd9ecad into main Aug 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant