How sengqt/aoooterminalerrorsound works
A VS Code extension that reacts to failed commands in the integrated terminal by playing the Chowayo sound, and—when shell integration reports the failure—showing a notification. Users can also trigger playback from the Command Palette or disable sound in settings. The README describes WebView-based cross-platform audio, but the sampled implementation instead invokes platform audio players through child processes; the graph reflects that source evidence. Both failure-detection paths and playback logic reside in one source file, so they are represented as distinct responsibilities sharing that path.
Main entry points: extension.ts Platform audio dispatch · chowayo.mp3 Chowayo audio · package.json Enable Sound setting
Components 11
Failure detection
- Shell failure listener
src/extension.ts - Terminal close fallback
src/extension.ts - Failure notification
src/extension.ts
Sound playback
- Platform audio dispatch
src/extension.ts - Chowayo audio
media/chowayo.mp3
User controls
- Sound setting gate
src/extension.ts - Enable Sound setting
package.json - Manual play command
src/extension.ts
Other components
- Extension user
- Integrated terminal
- Platform audio player
Connections 12
- Extension user → Integrated terminal: runs command
README.md - Integrated terminal → Shell failure listener: reports exit code
src/extension.ts - Integrated terminal → Terminal close fallback: reports closure
src/extension.ts - Shell failure listener → Platform audio dispatch: plays on failure
src/extension.ts - Shell failure listener → Failure notification: shows alert
src/extension.ts - Terminal close fallback → Platform audio dispatch: plays on failure
src/extension.ts - Extension user → Manual play command: triggers playback
README.md - Manual play command → Platform audio dispatch: calls playback
src/extension.ts - Platform audio dispatch → Sound setting gate: checks setting
src/extension.ts - Sound setting gate → Enable Sound setting: reads configuration
src/extension.ts - Platform audio dispatch → Chowayo audio: uses audio file
src/extension.ts - Platform audio dispatch → Platform audio player: invokes platform player
src/extension.ts