Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/terminal_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,8 @@ def _transform_sudo_command(command: str | None) -> tuple[str | None, str | None
PTY mode: Set pty=true for interactive CLI tools (Codex, Claude Code, Python REPL).

Do NOT use vim/nano/interactive tools without pty=true — they hang without a pseudo-terminal. Pipe git output to cat if it might page.

On Windows, launching GUI .exe programs directly in foreground mode will hang the session because the GUI process inherits the stdout pipe and never exits. Use `powershell -Command "Start-Process 'C:\\path\\to\\program.exe'"` instead — PowerShell exits immediately after launching the GUI program.
"""

# Global state for environment lifecycle management
Expand Down
Loading