Skip to content

fix: resets audio ui when permission is denied#2771

Open
eiseleMichael wants to merge 1 commit intoChainlit:mainfrom
eiseleMichael:fix/audio-stream-freeze-denied-permissions
Open

fix: resets audio ui when permission is denied#2771
eiseleMichael wants to merge 1 commit intoChainlit:mainfrom
eiseleMichael:fix/audio-stream-freeze-denied-permissions

Conversation

@eiseleMichael
Copy link
Contributor

@eiseleMichael eiseleMichael commented Jan 29, 2026

Wraps connection to microphone in a try/catch block to automatically reset ui when permission is not granted.
Without this fix, the UI remains in loading state until the window is refreshed.


Summary by cubic

Prevents the audio UI from freezing when microphone permission is denied by catching setup errors and resetting the session. If access is blocked, audio capture is cleaned up, the stream ends, and the UI returns to idle.

  • Bug Fixes
    • Wrapped microphone begin/connect/record in a try/catch to handle setup failures.
    • On permission denial, safely end the recorder (ignore errors), interrupt the player, emit audio_end, and set audioConnection to off.

Written for commit 482d528. Summary will update on new commits.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working frontend Pertains to the frontend. labels Jan 29, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@github-actions
Copy link

This PR is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 13, 2026
@eiseleMichael
Copy link
Contributor Author

:bump: Is there anything I can do to help with the review process?

@eiseleMichael eiseleMichael force-pushed the fix/audio-stream-freeze-denied-permissions branch from 7096daf to 482d528 Compare February 13, 2026 09:04
@github-actions github-actions bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Pertains to the frontend. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant