Ask before keeping a very short meeting recording

GA
7h ago
+477-10

Summary

Context: A recording started by mistake, or left open for a few seconds after a call, still became a note, got an automatic summary (#8290) and ran the "After the meeting ends" automations, which can send it on to other tools.

Intention: When a recording is almost certainly not a meeting, let the user drop it before anything is generated or sent.

Direction:

  • When a live capture ends after at most 30 seconds, or with fewer than 10 transcript words, the workspace shows "Keep this short recording?" with the length and word count.
  • Until it is answered, the automatic summary and the "After the meeting ends" automations wait. Keep, Escape or a click outside runs them exactly as before. Delete removes the note through the existing undoable delete and skips them.
  • A note that already held a transcript from before this capture (a resumed note recording) is never offered for deletion. When the note has the user's own memo text, images or attachments, the dialog says those will be deleted too.
  • Longer recordings, and a capture that ends while the app is closing, behave as before. A failed check keeps the recording.
  • The dialog reuses the glass dialog and buttons of the multi-note delete confirmation, and its strings go through crate::i18n.

Demo

Screenshots to be attached by the author before review.

Verification

  • The existing application::lifecycle::tests::capture_stop_runs_auto_summary_after_standalone_close_and_dispatches_note_enhanced stops a real mock capture after a few seconds; it now also checks that the summary waits while the dialog is open and starts after Keep.
  • New tests in workspace::short_recording: short_or_nearly_silent_new_recordings_ask_before_they_are_kept and words_and_notes_are_read_from_stored_json.
  • On Apple Silicon with Xcode 27, on a tree with this branch merged together with the other detection branches (Teams detection, auto-stop, meeting prompt, short recording), from apps/desktop-gpui: cargo test --locked -p desktop-gpui --lib (988 passed), cargo test --locked -p desktop-gpui --test a11y (23 passed), cargo clippy --locked --workspace --all-targets --no-deps -- -D warnings (clean), cargo fmt --check (clean). product::preferences_view::tests::camera_section_hides_when_unavailable_and_persists_prefs_when_bundled failed once in one run and passed in every other run, including three isolated reruns; it is unrelated to this change. cargo build --locked was not run separately.
  • cargo fmt --check and dprint check on the changed files.
  • Gaps: the Delete path and the memo/attachment query are not covered against a real database, and the dialog was not tried in a running app.

🤖 Generated with Claude Code


Summary by cubic

Adds a confirmation when a meeting recording ends within 30 seconds or with fewer than 10 transcript words, so a capture started by mistake or left open after a call isn't kept silently. Previously these recordings became notes, got automatic summaries, and ran the "After the meeting ends" automations; now the workspace shows "Keep this short recording?" and holds those steps until the user answers. Keep, Escape, or a click outside proceeds exactly as before, while Delete removes the note through the existing undoable delete and skips the summary and automations.

  • A resumed note that already held a transcript is never offered for deletion.
  • The dialog warns when the user's own notes or attachments will be deleted too.