Skip to content

feat: include file transcriptions in backups - #1325

Merged
altic-dev merged 4 commits into
altic-dev:mainfrom
tarushvkodes:feat/backup-file-transcriptions
Nov 20, 2026
Merged

altic-dev merged 4 commits into
altic-dev:mainfrom
tarushvkodes:feat/backup-file-transcriptions

Conversation

@tarushvkodes

@tarushvkodes tarushvkodes commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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 UserDefaults and a backup left them out.

Changes

  • AppBackupDocument gains fileTranscriptionHistory: [FileTranscriptionEntry]?. It encodes with the entry's existing Codable shape, the same one the store already persists.
  • BackupService.makeBackupDocument() fills it from the new FileTranscriptionHistoryStore.makeBackupPayload(). restore(_:) applies it right after dictation history, inside the same restore lease and before settingsBackupDidRestore posts.
  • FileTranscriptionHistoryStore.restore(from:) replaces the list, sorts it newest first, keeps the store's 50-entry cap, selects the newest entry and persists.
  • The search index re-indexes an entry only when its searchRevision goes 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 from TranscriptionHistoryEntry.markRestored into HistorySearchRevision.afterRestore so both stores share it.

Compatibility

  • Older backups have no fileTranscriptionHistory key. They decode to nil, and restoring one leaves the current file transcripts alone, like the other fields the document added later.
  • A present but empty array clears them, because the backup recorded no file transcripts.
  • Schema version stays 1.0. The field is optional, and older app versions ignore unknown keys when they decode.

Type of Change

  • 🐞 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 🧹 Chore
  • 📝 Documentation update

Related Issue or Discussion

Closes #1323

Testing

  • Checked export and restore for backups with saved transcripts, an empty list, and no transcript field.
  • Checked the native import warning in light and dark mode.

Screenshots / Video

Import warning for a backup with no file transcripts

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

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]>
@github-actions github-actions Bot added the needs screenshots Pull request needs screenshot or video evidence. label Nov 13, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the needs screenshots Pull request needs screenshot or video evidence. label Nov 20, 2026
@altic-dev
altic-dev marked this pull request as ready for review November 20, 2026 22:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T22:17:42.665873Z a5c108e New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI balanced review requested due to automatic review settings November 20, 2026 22:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both previous findings are fixed and no new actionable issues were found.

Summary

Adds file transcripts to backups while keeping current transcripts when an older backup omits them.

  • Settings backups now include saved file transcripts.
  • Import warnings explain when file transcripts will be replaced.

Reviews (2) · Last reviewed commit: "Warn before replacing saved file transcr..." · Reviewed by Greptile

@github-actions

Copy link
Copy Markdown

FluidVoice PR build ready

Download 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

  1. Extract the downloaded artifact, then extract FluidVoice-PR-1325.app.zip.

  2. Move FluidVoice feat: include file transcriptions in backups #1325.app into the /Applications folder.

  3. Open Terminal and remove the download quarantine marker:

    xattr -dr com.apple.quarantine "/Applications/FluidVoice #1325.app"
    
  4. In Applications, Control-click FluidVoice feat: include file transcriptions in backups #1325.app and choose Open.

  5. If macOS still blocks it, open System Settings → Privacy & Security, click Open Anyway, and confirm.

This build has its own app identity, so its permissions are separate from the release version of FluidVoice.

View workflow run

@altic-dev
altic-dev merged commit f2bd2a5 into altic-dev:main Nov 20, 2026
7 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.

Backup export omits File Transcription history

3 participants