anthropics / anthropics/claude-agent-sdk-python

Hide subprocess terminal for Windows system

オープン
#480 コメント 0 件 リアクション 1 件 担当者 1 名 @dicksontsai が担当を希望しています GitHub で見る
主要言語
Python
スター
8.1k
フォーク
1.3k
平均マージ
2日 31分
マージ済み PR(30日)
1

説明

### Issue

When spawn Claude subprocess via SDK on Windows, a terminal window remains visible. **Need to hide the terminal for a cleaner UX.**

### Workaround

**before**

https://github.com/anthropics/claude-agent-sdk-python/blob/7866e5f6d281ccd2958af52ae4416dfd580e7a20/src/claude_agent_sdk/_internal/transport/subprocess_cli.py#L403-L411

**after**

```python
if sys.platform == "win32":
import subprocess
creationflags = subprocess.CREATE_NO_WINDOW

self._process = await anyio.open_process(
cmd,
stdin=PIPE,
stdout=PIPE,
stderr=stderr_dest,
cwd=self._cwd,
env=process_env,
user=self._options.user,
creationflags=creationflags if creationflags else 0
)
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。