anthropics / anthropics/claude-code

[BUG] Claude Code hangs when running `nmcli`

Đang mở
#94,428 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:bash bug platform:linux
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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?

Claude code hangs when connecting to VPN using `nmcli` on Linux. Example:

```
❯ Can you try to connect to VPN with "nmcli connection up my-vpn-connection" ?

I'll try bringing up that VPN connection.

● Bringing up rezdy-dev VPN connection · 60s
⎿ $ nmcli connection up my-vpn-connection 2>&1
```

Note that VPN connects within 5-10 seconds. However Claude doesn't seem to notice that and just keeps waiting...

I have confirmed `nmcli` itself does not hang as i'm able to use it normally.

### What Should Happen?

Claude should notice the VPN is connected, then continue on...

### Error Messages/Logs

```shell
See chat log above
```

### Steps to Reproduce

In Claude Code, ask Claude to connect to a VPN with `nmlcli`

```
nmcli connection up my-vpn-connection
```

### Claude Model

Opus

### Is this a regression?

I don't know

### Last Working Version

_No response_

### Claude Code Version

2.1.272 (Claude Code)

### Platform

Anthropic API

### Operating System

Other Linux

### Terminal/Shell

Other

### Additional Information

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.