Skip to content

feat: add retained dictation history #5

Closed

Description

@kitlangton

What to build

Add a product History pane backed by a dedicated owner-only history store, separate from diagnostic Activity events. Record stable entries for successful dictations and Voice Actions with raw transcript, final output, timestamp, mode, application identity, processing trail, latency, and paste outcome. Never retain captured audio through this feature.

Ship one narrow complete workflow: browse and search retained text, inspect raw versus final output, copy or paste again, delete one entry, and clear all history. Add a persisted retention setting with Off, 24 hours, 7 days, 30 days, and Forever; enforce internal entry and byte caps regardless of the selected duration.

Store application name and bundle identity where available, but do not retain full browser URLs or window titles by default. When history is Off, keep only the existing in-memory last-dictation behavior needed for immediate re-paste.

Acceptance criteria

  • Successful dictations and Voice Actions receive stable history IDs and durable entries; cancelled, discarded, and failed captures do not appear as successful history.
  • History is a separate pane and store from Activity diagnostics.
  • Users can search, inspect raw/final text, copy, paste again, delete one entry, and clear all entries.
  • Retention supports Off, 24 hours, 7 days, 30 days, and Forever and prunes on startup and writes.
  • Every retention mode remains bounded by hard entry, text, metadata, and storage limits.
  • No audio, full browser URL, or window title is retained by default.
  • Files are owner-only and updates/deletion are crash-safe.
  • Tests cover retention boundaries, deletion, restart recovery, search, malformed/truncated storage, and history-disabled behavior.

Blocked by

None - can start immediately

Activity

  1. added
    enhancement
    on Jul 24, 2026
  2. kitlangton commented on Jul 24, 2026

    @kitlangton
    CollaboratorAuthor

    Shipped across three commits on main:

    • 993abc8 — owner-only bounded history store (src/history.rs) + recording from the ordered output worker for successful Paste, Send, and Voice Action results (raw + final text, application, processing trail, latency). Hard caps: 2,000 entries / 16 KiB per text field / 4 MiB total, atomic 0600 writes, corrupt-file preservation, monotonic IDs across restart.
    • 597e670 — persisted history_retention setting (default 7 days).
    • 2a96e0d — the History pane: search, raw/final detail, copy, paste again (bounded queue into the ordered paste owner; never updates the last dictation), delete one, armed clear-all, retention cycler, deterministic history preview target.

    Deliberately out of scope, per the issue set: MCP exposure (#8) and reprocessing (#17). Application identity is the app name from the context snapshot; bundle identity can join when something needs it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions