Rank, 14 days: 91 on the Claude Code sheet
6 people reported

All time, since Oct 3, including 1 thumbs-up on GitHub.

Broad pkill -f pattern kills desktop apps on macOS

“Bug report: Claude Code agents run pkill with a broad pattern on macOS and kill the user's desktop apps”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/claude-code/issues/1948/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Still happening. 1 report or thumbs-up in each of the last two weeks.

Bash tool pkill -f runs with a short pattern like 'cat' that matches paths such as /Applications, and trailing options after the pattern are not parsed as options.

Is this your bug?

File my report
Where
Bash tool
Error text
launchd: [gui/502/com.apple.notificationcenterui.agent [871]:] exited due to SIGTERM | sent by pkill[94666]
Versions
2.1.288 to 2.1.318
Platforms
macOS

Original reports5, newest first

  1. Broad pkill -f pattern kills desktop apps on macOS due to BSD option parsing#107867
  2. Agent ran pkill -f 'cat' and SIGTERMed nearly every app on macOS; the shell pkill guard can't fire on macOS#106029
  3. pkill -f "vite" -U $(id -u) on macOS kills Chromium/Electron apps#104730
  4. Auto mode ran pkill -f "cat", which killed every GUI app on macOS ("cat" matches /Applications)#100684
  5. Subagent pkill command kills unrelated user processes with broad pattern matching#99281

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.