Skip to content

refactor(sounds): simplify alert sounds by severity#679

Merged
Orinks merged 1 commit into
devfrom
codex/simplify-alert-sounds
May 18, 2026
Merged

refactor(sounds): simplify alert sounds by severity#679
Orinks merged 1 commit into
devfrom
codex/simplify-alert-sounds

Conversation

@Orinks
Copy link
Copy Markdown
Owner

@Orinks Orinks commented May 18, 2026

Summary

  • simplify alert sound matching to severity-first events: extreme, severe, moderate, and minor
  • keep alert/notify fallback behavior and preserve hidden legacy sound-pack and muted-event keys for compatibility
  • reduce the visible sound-pack manager and wizard event catalog to the useful app, lifecycle, and alert-severity events

Verification

  • pytest tests/test_settings_dialog_audio_events.py tests/test_alert_sound_mapper.py tests/test_sound_player.py::TestGetSoundEntry::test_get_sound_entry_for_candidates_falls_back_within_pack tests/test_sound_player.py::TestUserLevelMute tests/test_soundpack_event_catalog.py -q
  • pytest tests/test_alert_notification_system.py tests/test_toasted_windows_notifier.py::TestToastedWindowsNotifierSend::test_send_uses_sound_candidates_when_provided -q
  • ruff check targeted files
  • ruff format --check targeted files
  • pyright
  • git diff --check

Manual testing

  • Not run: manual audio playback through the desktop UI

Keep alert sound selection focused on provider severity and preserve compatibility for older packs and muted settings.

Constraint: existing sound packs and saved muted-event settings must keep loading safely
Rejected: exact alert text and hazard/type fallback mapping | it kept a brittle user-facing taxonomy that no longer matches the provider surface
Confidence: high
Scope-risk: moderate
Directive: keep new alert sounds severity-first; preserve legacy keys only as hidden compatibility
Tested: pytest tests/test_settings_dialog_audio_events.py tests/test_alert_sound_mapper.py tests/test_sound_player.py::TestGetSoundEntry::test_get_sound_entry_for_candidates_falls_back_within_pack tests/test_sound_player.py::TestUserLevelMute tests/test_soundpack_event_catalog.py -q; pytest tests/test_alert_notification_system.py tests/test_toasted_windows_notifier.py::TestToastedWindowsNotifierSend::test_send_uses_sound_candidates_when_provided -q; ruff check targeted files; ruff format --check targeted files; pyright; git diff --check
Not-tested: manual audio playback through the desktop UI

Co-authored-by: OmX <omx@oh-my-codex.dev>
@Orinks Orinks merged commit b2f4bbf into dev May 18, 2026
3 checks passed
@Orinks Orinks deleted the codex/simplify-alert-sounds branch May 18, 2026 23:45
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.

1 participant