Skip to content

Commit 974e08f

Browse files
takemi-ohamaclaude
andcommitted
fix(editor): _launch に stdin=subprocess.DEVNULL を追加
エディタをバックグラウンド起動する際 stdin を DEVNULL に向け、 エディタ側が stdin を要求しても親プロセス (devbase 実行ターミナル) の 入力を奪う/ハングするのを防ぐ。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4da65f4 commit 974e08f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/devbase/editor/opener.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ def _launch(cmd: list, env: dict) -> None:
298298
"""エディタを非ブロッキングで起動する (up プロセスを待たせない)。"""
299299
subprocess.Popen( # noqa: S603 - argv はコード生成で外部入力を渡さない
300300
cmd, env=env,
301+
stdin=subprocess.DEVNULL,
301302
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
302303
)
303304

0 commit comments

Comments
 (0)