diff options
| author | jesse <jesse@magic-kingdom> | 2026-03-15 19:14:34 +0000 |
|---|---|---|
| committer | jesse <jesse@magic-kingdom> | 2026-03-15 19:14:34 +0000 |
| commit | 537ec640fd8fd47fc0ff596abeb445d1515bd2bd (patch) | |
| tree | b9198d81a535942ca6ac72b8187c0c23f6e79b2f /tests/opencode/setup.sh | |
| parent | c5e953831186a59c26f3e200aba0f8099e160a76 (diff) | |
fix(hooks): replace heredoc with printf to fix bash 5.3+ hang
Bash 5.3 has a regression where heredoc variable expansion blocks when
content exceeds ~512 bytes. The session_context variable is ~4,500 bytes,
causing the SessionStart hook to hang indefinitely on macOS with Homebrew
bash 5.3+. Replace cat <<EOF with printf.
Tested on Linux (bash 5.2) and Windows (Git Bash 5.2). The hang only
affects 5.3+ but printf works correctly on all versions.
Based on #572, closes #572. Fixes #571.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tests/opencode/setup.sh')
0 files changed, 0 insertions, 0 deletions
