v2.3.1 - Critical macOS Fix
🐛 Release v2.3.1 - Critical macOS Bug Fix
This patch release fixes a critical bug in the configuration script that prevented macOS users from saving their preferences.
🔧 Bug Fix
Fixed: Configuration Save Error on macOS
- Issue: The
save_configuration()function inscripts/configure.shwas incorrectly trying to accesssys.argv[1]in a Python heredoc - Error:
IndexError: list index out of rangewhen saving configuration - Root Cause: Python heredocs don't receive command-line arguments, making
sys.argv[1]inaccessible - Solution: Changed to use direct shell variable substitution in the heredoc
📝 Technical Details
The fix changes the Python heredoc from:
# Before (BROKEN)
python3 << 'PYTHON_SCRIPT'
config_file = sys.argv[1] # IndexError!To:
# After (FIXED)
python3 << PYTHON_SCRIPT
config_file = "$config_file" # Works correctly🙏 Acknowledgments
Special thanks to the macOS user who reported this issue and provided detailed feedback that helped identify the problem!
📦 Installation
For new users:
git clone https://github.com/ChanMeng666/claude-code-audio-hooks.git
cd claude-code-audio-hooks
./scripts/install.shFor existing users:
cd claude-code-audio-hooks
git pull
./scripts/configure.sh # Now works correctly on macOS!✅ Compatibility
- macOS (bash 3.2+) ✅
- Linux (bash 3.2+) ✅
- WSL/Git Bash (bash 3.2+) ✅
If you encounter any issues, please report them in the Issues section.