mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 11:18:24 +00:00
runCommand waited for the process to exit before reading its stdout. On a busy Mac `ps -A -o comm=` prints ~100 KB, past the pipe buffer, so ps blocked on the write, waitFor hit the 5 s timeout and the macOS reader never saw Spotify or Music (and every poll stalled 5 s). Read stdout to EOF while a watchdog thread kills a command that outlives the timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>