Repository navigation
feat: include file transcriptions in backups - #1325
Conversation
Backup export now writes File Transcription history (text, speaker segments, gaps, notices, custom titles) as an optional fileTranscriptionHistory array, and import restores it after dictation history inside the same restore lease. Backups without the key keep the current file transcripts; an explicit empty array clears them. Restored entries bump searchRevision past both the backup's and the indexed revision so search re-indexes changed text. That rule now lives in SearchIndexRecord.revisionAfterRestore and is shared with dictation history. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This comment has been minimized.
This comment has been minimized.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c1bf28f515
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The PR appears safe to merge; both previous findings are fixed and no new actionable issues were found. SummaryAdds file transcripts to backups while keeping current transcripts when an older backup omits them.
Reviews (2) · Last reviewed commit: "Warn before replacing saved file transcr..." · Reviewed by Greptile |
FluidVoice PR build readyDownload FluidVoice-PR-1325-a5c108e3827e The artifact contains the ad-hoc-signed app ZIP, Xcode archive, build manifest, and installation instructions. It expires 5 days after the build. Install the app
This build has its own app identity, so its permissions are separate from the release version of FluidVoice. |
Description
Settings → Backup & Restore now exports and imports File Transcription history: transcripts, speaker segments, gaps, notices and custom titles. Until now those transcripts lived only in
UserDefaultsand a backup left them out.Changes
AppBackupDocumentgainsfileTranscriptionHistory: [FileTranscriptionEntry]?. It encodes with the entry's existingCodableshape, the same one the store already persists.BackupService.makeBackupDocument()fills it from the newFileTranscriptionHistoryStore.makeBackupPayload().restore(_:)applies it right after dictation history, inside the same restore lease and beforesettingsBackupDidRestoreposts.FileTranscriptionHistoryStore.restore(from:)replaces the list, sorts it newest first, keeps the store's 50-entry cap, selects the newest entry and persists.searchRevisiongoes up. Restore bumps each entry past its backup revision, its currently indexed revision and the wall clock, using the same rule as dictation history. That rule moved fromTranscriptionHistoryEntry.markRestoredintoHistorySearchRevision.afterRestoreso both stores share it.Compatibility
fileTranscriptionHistorykey. They decode tonil, and restoring one leaves the current file transcripts alone, like the other fields the document added later.Type of Change
Related Issue or Discussion
Closes #1323
Testing
Screenshots / Video
Notes
A backup now carries the full text of up to 50 file transcripts, so it can get noticeably larger. In one local install the stored file history was about 1.7 MB.
AI use: Claude Code drafted the change, the tests and this description.
A human created this PR or reviewed and approved it before submission, understands the full diff, and takes responsibility for the change.
🤖 Generated with Claude Code