anthropics / anthropics/claude-code

[Bug] Agent generates Unix-specific commands (setsid) incompatible with macOS

Open
#94,364 0 comments 0 reactions 0 assignees View on GitHub
area:model bug platform:macos
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

**Bug Description**
Agent handed me a command to run locally that could not work on this OS (setsid not available on MacOS): ```! sudo setsid nohup sh -c 'while true; do chmod g+w "/Library/Application Support/BOINC Data/slots"/*/shared 2>/dev/null; sleep 5; done' >/dev/null 2>&1 &```

**Environment Info**
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.236
- Feedback ID: e7822193-2092-4372-b867-75328313d1e3

**Errors**
```json
[]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported command-generation issue on darwin using the provided `setsid` example. Trace where the agent selects platform-specific shell commands; done means commands generated for macOS no longer depend on unavailable Unix utilities, with behavior verified on that platform.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, shell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.