Skip to content

Harden media pause and resume lifecycle - #778

Merged
grohith327 merged 1 commit into
B/audio-fix-1.6.7from
B/audio-media-pause-lifecycle
Aug 5, 2026
Merged

grohith327 merged 1 commit into
B/audio-fix-1.6.7from
B/audio-media-pause-lifecycle

Conversation

@altic-dev

Copy link
Copy Markdown
Owner

Description

Makes media pause asynchronous completion one-shot and timeout-safe, and resumes playback only when FluidVoice actually paused it. This prevents stuck playback state when media commands race, time out, or the preference changes during dictation.

Type of Change

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

Related Issue or Discussion

Stacked on #777, which depends on #749.

Testing

  • Tested on Intel Mac
  • Tested on Apple Silicon Mac
  • Tested on macOS version: 27.0 beta
  • Ran linter locally: swiftlint --strict --config .swiftlint.yml Sources
  • Ran formatter locally: swiftformat --config .swiftformat Sources
  • Ran tests locally: full stacked regression suite passed 172/172

The installed stacked build also completed 10/10 fresh-launch first-PCM probes. Media pausing begins after first PCM, so this PR does not add recording startup delay or discard opening audio.

Screenshots / Video

  • No UI/visual changes; screenshots/video are not applicable.

Notes

Review and merge after #777. The sound-cue timing concern is intentionally excluded and will be handled separately.

@greptile-apps

greptile-apps Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR hardens live-dictation media handling so pause detection completes once, times out safely, and playback resumes based on whether FluidVoice actually paused it.

  • Adds a one-second timeout and duplicate-callback suppression to the Now Playing query.
  • Issues the pause command only when the successful one-shot result wins.
  • Preserves pause ownership when the user changes the pause-media preference during dictation.

Confidence Score: 5/5

The PR appears safe to merge because no eligible blocking failure or outstanding prior finding remains.

No blocking failure remains.

Reviews (2): Last reviewed commit: "fix(audio): harden media pause lifecycle" | Re-trigger Greptile

@altic-dev
altic-dev force-pushed the B/audio-media-pause-lifecycle branch from 2a7dfff to d0389a1 Compare August 4, 2026 23:02
@grohith327
grohith327 merged commit a3dab46 into B/audio-fix-1.6.7 Aug 5, 2026
2 checks passed
altic-dev added a commit that referenced this pull request Aug 5, 2026
Consolidates the direct Core Audio, microphone-selection migration, and media-pause lifecycle fixes from #777, #778, and #779. Builds on the separately merged #749 contribution.
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.

2 participants