Skip to content

v2.3.1 - Critical macOS Fix

Choose a tag to compare

@ChanMeng666 ChanMeng666 released this 06 Nov 01:28
· 130 commits to master since this release

🐛 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 in scripts/configure.sh was incorrectly trying to access sys.argv[1] in a Python heredoc
  • Error: IndexError: list index out of range when 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.sh

For 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.