Repository navigation
feat(cli): optional notification sounds (opt-in, system sounds) - #4329
samlouiscohen wants to merge 2 commits into
Conversation
Adds opt-in [notifications] section to ~/.codex/config.toml: - sound = true|false (default false) - only_on_long_runs_ms = <int> - success_tone / error_tone = "default" or system-sound id Cross-platform mappings: - macOS → Hero (success), Basso (error) - Windows → SystemSounds.Asterisk / Hand - Linux → canberra 'complete' / 'dialog-error' Falls back to terminal bell if unavailable. Zero new assets, fully optional.
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
Thanks for the contribution, and apologies for the slow response. We've received many PRs, and we don't have the bandwidth on the codex team to review all of them. We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. If you would like to propose a new feature, please file or upvote an enhancement request in the issue tracker. We will generally prioritize new features based on community feedback. |
Can you share it ? |
Adds an opt-in completion sound in the CLI.
Why
Long-running turns (often minutes to tens of minutes) benefit from audible completion cues so users can context-switch without polling the terminal.
What’s in this PR
~/.codex/config.toml:SystemSounds.Asterisk/SystemSounds.Handcomplete/dialog-errorBehavior
only_on_long_runs_msthresholdcli_main+notifications.rshelperNotes
Closes #3962