You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI input can be consumed by tool subprocesses #41612
The TUI and tool runtime share file descriptor 0. A custom tool or plugin that starts a subprocess with inherited stdin can consume keystrokes intended for the TUI, leaving the interface unresponsive or corrupted. Shell tool commands already ignore stdin, but other tool execution paths can still inherit it.
Plugins
Reproduces with a local custom tool that spawns a command with inherited stdin.
Steps to reproduce
Add a custom tool that starts a subprocess which reads inherited stdin.
Invoke the tool from the TUI.
Type while the subprocess is waiting for input.
The subprocess receives the keystrokes instead of the TUI.
Operating System
macOS and Linux; the same descriptor sharing applies on Windows.
Activity
github-actions commentedon Oct 10, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.