[BUG] parallel Bash calls get cancelled when grep returns exit code 1

Status Fixed / completed
Reported on v2.1.126
Maintainer reply ✓ Yes — claude[bot]
Activity 3 comments · opened May 2, 2026 · closed May 5, 2026
💡 Likely answer: A maintainer (claude[bot], contributor) responded on this thread — see the highlighted reply below.

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

grep 没匹配到内容时返回 exit code 1,框架把这个非零退出码当成了执行失败,连带把并行组里的另一个命令也干掉了。但 grep 返回 1 只是表示「没找到」,不是真报错。

What Should Happen?

parallel Bash calls get cancelled when grep returns exit code 1

Error Messages/Logs

Steps to Reproduce

parallel Bash calls get cancelled when grep returns exit code 1

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.126

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] · 5 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/22264

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

claude[bot] contributor · 5 months ago

This issue was fixed as of version 2.1.128.

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.