Transcription history and backups
Fluid keeps local records for dictation, saved dictation audio, file transcription, and command chats. Each record type has its own retention and review path, while application backup and audio archive operations provide separate ways to move selected data out of the app.
Persistence model
The persistence model separates records by workflow. This lets users review text, media transcripts, and command conversations through views that match the work they performed.
Dictation history
Dictation history saves completed non-empty transcriptions when history saving is enabled. A record includes the raw and final text, time, target context, AI state, and optional performance data. Reprocessing creates a new record, and new records appear first.
The setting is enabled by default. It controls text history and related usage measures, but it does not control saved microphone audio. History loads before the app treats it as ready. If loading or saving fails, the app keeps pending changes in memory and gives the user a retry path. Backup creation waits for a complete history load so it cannot export a partial record set.
Restored records keep their identity but receive a newer search revision. This lets app-wide search replace old indexed text with restored text.
References: Sources/…/TranscriptionHistoryStore.swift• L23-45 Sources/…/TranscriptionHistoryStore.swift• L332-379 Sources/…/TranscriptionHistoryStore.swift• L476-494 Sources/…/TranscriptionHistoryStore.swift• L614-699 Sources/…/ContentView.swift• L2391-2415 Sources/…/ContentView.swift• L3008-3018 Sources/…/BackupService.swift• L193-210 Sources/…/SearchIndexRecord.swift• L41-55
Audio history
Saved audio keeps the microphone recording linked to a dictation record. It is off by default and requires text history to be enabled. The transcript remains available when the audio is removed.
Audio has its own metadata and storage budget. When the budget is exceeded, Fluid removes unreferenced files first and then older referenced audio. It keeps the text record in both cases. Deleting a transcript also deletes its saved audio. Audio is attached after the text result is accepted, so a text record can appear before its recording is ready.
References: Sources/…/DictationAudioHistoryStore.swift• L15-22 Sources/…/DictationAudioHistoryStore.swift• L53-73 Sources/…/TranscriptionHistoryStore.swift• L496-610 Sources/…/ContentView.swift• L2655-2690
File transcription history
File transcription history preserves completed transcripts for audio and video files. It keeps the source name, processing time, media duration, confidence, transcript text, and speaker information when available. The history keeps up to 50 recent results and does not keep the source media.
Successful results enter history after processing finishes. The same user-facing result is retained for both direct processing and longer work that uses chunks.
References: Sources/…/FileTranscriptionHistoryStore.swift• L13-24 Sources/…/FileTranscriptionHistoryStore.swift• L142-201 Sources/…/MeetingTranscriptionService.swift• L485-510 Sources/…/MeetingTranscriptionService.swift• L609-631
Chat history
Chat history keeps command-mode sessions so users can leave a conversation and return to it. A session has a title, dates, and ordered messages. Messages retain command steps and tool results so the saved conversation shows what happened.
Fluid keeps up to 30 sessions and always has a current session. The title starts from the first user message. New chats and chat switches save the active session before changing it.
References: Sources/…/ChatHistoryStore.swift• L13-121 Sources/…/ChatHistoryStore.swift• L132-169 Sources/…/ChatHistoryStore.swift• L198-267
History access
Each history type is available in the workflow where its result has meaning. Dictation history has a focused review screen, file history stays with file transcription, and chat history stays with command mode.
Dictation history view
The dictation history screen uses a searchable list and a detail pane. Users can inspect final and original text, target context, AI state, and optional performance data. They can also star records, copy text, report a bad result, delete records, and clear history.
When saved audio exists, the detail pane can play or seek through it. Users can reveal the file or export a transcript-and-audio pair. The view checks that the file still exists before showing audio actions, so stored metadata does not create a false playback option.
When AI changes a result, the view can mark added and removed text within a bounded comparison. If the text is too large for that comparison, it keeps both complete versions available without marks. Shared selection lets other navigation open a specific record, and delete or clear actions keep that selection valid.
References: Sources/…/TranscriptionHistoryView.swift• L5-63 Sources/…/TranscriptionHistoryView.swift• L192-352 Sources/…/TranscriptionHistoryView.swift• L385-506 Sources/…/TranscriptionHistoryView.swift• L559-647 Sources/…/HistoryAudioAvailability.swift• L3-22 Sources/…/HistoryInlineAudioView.swift• L16-117 Sources/…/HistoryTextComparisonView.swift• L12-92 Sources/…/HistoryTextDiff.swift• L14-48
File transcription view
The file-transcription view shows recent results beside the active file workflow. A selected result can be reviewed after the source file changes or the active task ends. Users can copy the transcript, export it as text or JSON, and remove it from history.
Speaker segments and notices about incomplete speaker labeling remain part of the saved result. The source media is not needed to reopen the transcript.
References: Sources/…/MeetingTranscriptionView.swift• L42-95 Sources/…/MeetingTranscriptionView.swift• L427-570 Sources/…/FileTranscriptionHistoryStore.swift• L142-160
Chat history controls
Command mode loads the current session when it starts and saves the conversation as it progresses. The command overlay provides a new-chat action and a recent-chats menu with the current session and update times.
Chat changes are blocked while a command runs. A new chat or switch saves the active session first. Deleting a session selects another session or creates an empty one.
References: Sources/…/CommandModeService.swift• L28-49 Sources/…/CommandModeService.swift• L134-202 Sources/…/NotchContentViews.swift• L346-355 Sources/…/NotchContentViews.swift• L1464-1513
Local history access
The local API provides a read-only view of recent dictation history for local clients. It returns bounded records with IDs, dates, raw and final text, target context, character counts, AI state, and AI failure details.
The API is disabled by default and uses a configurable local port. It does not expose saved audio, file-transcription history, or chat sessions through this endpoint. Client limits are bounded by the server.
References: Sources/…/HistoryAPIController.swift• L3-49 Sources/…/LocalAPIModels.swift• L3-24 Sources/…/LocalAPIModels.swift• L89-94
Backup operations
Fluid uses two export paths with different goals. Application backup carries portable settings and text state, while the audio archive carries saved dictation recordings and their transcript metadata.
Application backup
Application backup is a versioned JSON document for settings, prompt profiles, app bindings, dictation history, and pronunciation profiles. It includes app version and export time. API keys are excluded and remain unchanged by import.
Export waits for dictation history to finish loading. Import validates the document, asks for confirmation, and restores the supported state as one coordinated change. Only one import or export runs at a time. Restore also pauses active transcription work and refreshes dependent speech and model state before capture resumes.
File-transcription history, chat sessions, and saved WAV audio are outside this backup. Users must use the audio archive for saved recordings.
References: Sources/…/BackupService.swift• L3-7 Sources/…/BackupService.swift• L150-161 Sources/…/BackupService.swift• L188-273 Sources/…/SettingsView.swift• L1595-1669 Sources/…/SettingsView.swift• L1884-1906
Audio archive
The audio archive exports saved dictation recordings that still have matching history records. The ZIP contains WAV files and a JSON-lines manifest with transcript, time, duration, audio format, target app, and model data. Settings can export all available recordings, while history can export one transcript-and-audio pair.
The archive is separate from the text backup. Missing audio produces an error instead of an archive that suggests an empty or usable recording exists.
References: Sources/…/DictationAudioHistoryStore.swift• L166-249 Sources/…/DictationAudioHistoryStore.swift• L373-396 Sources/…/SettingsView.swift• L1951-1977 Sources/…/TranscriptionHistoryView.swift• L317-331 Sources/…/TranscriptionHistoryView.swift• L620-647
Related pages
- Data, history, and personalization defines the wider local data model.
- Meeting transcription explains the file-transcription workflow.
- Analytics and privacy explains usage measures and privacy controls.
Change checklist
When these files or sections are changed, remember to consider these:
- Keep application backup fields aligned with the history and settings that must survive export and import. Older compatible backups must remain readable.
- Keep backup export gated on a complete history load. Do not allow a partial history to look like a valid backup.
- Keep import and export single-use. Restore must keep active transcription from using mixed settings or history state.
- Keep dictation, file-transcription, and chat retention and access paths separate. They do not share backup behavior.
- Keep text history, audio links, file availability checks, and audio-budget pruning aligned so the UI never offers a missing recording.
- Keep local API fields aligned with dictation records, including raw and final text.
- Keep audio archive manifest fields aligned with the transcript and recording data used by pair export.
- Keep restored record revisions ahead of indexed revisions so search replaces old text after an ID is reused.
- Keep shared history selection valid after delete, clear, and restore actions.
- Keep clipboard-backup test adapters isolated from real keyboard posting and production delivery behavior. Tests/…/ClipboardBackupStandaloneSupport.swift supplies compile-only support for that test harness.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| History loading fails | The history view reports the problem and backup creation stops instead of exporting incomplete history | Retry is exposed and backup waits for history readiness |
| History saving fails | Visible history can differ from saved local history until persistence succeeds | The UI reports the error and offers retry persistence |
| Audio budget or history changes during pruning | A stale check could remove audio under the wrong state | The check validates the current history and budget before pruning |
| Backup import or export overlaps another operation | Restore or export state can become unclear | The backup service allows one operation at a time |
| Restore starts during transcription | Capture can use mixed settings or history state | Restore takes an exclusive boundary and refreshes dependent state |
| Saved audio finishes after history is cleared or restored | Audio can attach to an obsolete record | Old audio saves are invalidated and late files are removed |
| Saved audio file is missing | Playback or export is not usable | The UI checks file availability before showing actions |
| Backup schema is unsupported or invalid | Import stops without restoring the document | Decode validates the document before restore |
| Chat changes during command processing | The visible chat can diverge from the active command | New, switch, and delete actions are blocked while processing |
| Restored record keeps an old search revision | Search can show pre-restore text for a reused ID | Restore raises the record revision above the indexed revision |
| A history selection outlives its record | The detail pane can show deleted content | Delete and clear paths update shared selection |
Key files
| File | Why to read it |
|---|---|
| Sources/…/TranscriptionHistoryStore.swift | Defines dictation records, local persistence, retry state, deletion, audio retention, and restore behavior. |
| Sources/…/DictationAudioHistoryStore.swift | Defines saved-audio lifetime and transcript/audio archive formats. |
| Sources/…/FileTranscriptionHistoryStore.swift | Defines retention and data for completed file transcripts. |
| Sources/…/ChatHistoryStore.swift | Defines chat sessions, messages, current-chat state, and retention. |
| Sources/…/BackupService.swift | Defines the application backup boundary, schema checks, single-operation rule, and coordinated restore. |
| Sources/…/TranscriptionHistoryView.swift | Shows search, selection, review, copy, playback, export, and deletion for dictation history. |
| Sources/…/MeetingTranscriptionView.swift | Shows review and export of recent file-transcription results. |
| Sources/…/CommandModeService.swift | Connects command conversations to saved sessions and chat switching. |
| Sources/…/NotchContentViews.swift | Shows recent-chat access in command mode. |
| Sources/…/SettingsView.swift | Shows history settings, backup actions, and audio export actions. |
| Sources/…/HistoryAPIController.swift | Defines the local read-only dictation history response. |
| Tests/…/ClipboardBackupStandaloneSupport.swift | Provides isolated compile-only adapters for clipboard backup support tests without real keyboard posting. |