Skip to content

Commit eb1553c

Browse files
authored
feat(tui): add audio notification system for completion and approval events (#549)
- Add rodio dependency for cross-platform audio playback - Create sound.rs module with channel-based audio thread architecture - Embed WAV files for response completion and approval notification sounds - Play completion sound when streaming response finishes - Play approval sound when tool approval is requested - Graceful fallback to terminal bell when audio unavailable
1 parent 712642f commit eb1553c

11 files changed

Lines changed: 448 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 220 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ sysinfo = "0.32"
379379
hex = "0.4"
380380
urlencoding = "2.1"
381381
pin-project-lite = "0.2"
382+
rodio = { version = "0.19", default-features = false, features = ["wav"] }
382383

383384
[workspace.lints.rust]
384385
unsafe_code = "allow"

src/cortex-tui/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ walkdir = { workspace = true }
6565
# External editor
6666
which = { workspace = true }
6767

68+
# Audio notifications
69+
rodio = { workspace = true }
70+
6871
[target.'cfg(unix)'.dependencies]
6972
libc = "0.2"
7073

0 commit comments

Comments
 (0)