Skip to content

fix: reset recording state on audio start failure - #151

Merged
jatinkrmalik merged 1 commit into
mainfrom
jmalik/fix-audio-start-failure-state
Jun 2, 2026
Merged

fix: reset recording state on audio start failure#151
jatinkrmalik merged 1 commit into
mainfrom
jmalik/fix-audio-start-failure-state

Conversation

@jatinkrmalik

Copy link
Copy Markdown
Member

Summary

  • Make AudioRecording.startRecording return whether audio capture actually started
  • Reset AppState, cursor overlay, and hotkey state immediately when AVAudioEngine start fails
  • Extend MockAudioEngine and add an AppState regression test for the failure path

Context

Follow-up to #136. That PR fixed idle AVAudioEngine ownership; this closes the small UI-state gap noted during review.

Tests

  • swift test --filter AppStateRecordingGuardTests/testStartRecordingFailureResetsRecordingState
  • swift test

@github-actions github-actions Bot added the app label Jun 2, 2026
@jatinkrmalik
jatinkrmalik merged commit 140e82e into main Jun 2, 2026
4 checks passed
@jatinkrmalik
jatinkrmalik deleted the jmalik/fix-audio-start-failure-state branch August 22, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant