Support interactive prompts from nested CLI tools (e.g., melos)

Resolved 💬 3 comments Opened Feb 28, 2026 by ryota-kishimoto Closed Mar 4, 2026

Problem

When using melos run <script> commands that prompt for package selection (interactive terminal prompts), Claude Code fails because stdin is not a TTY:

StdinException: Error getting terminal echo mode, OS Error: Operation not supported by device, errno = 19

Workaround

Currently, piping input like echo "1" | melos check works, but it's fragile and not always predictable.

Suggestion

Consider supporting interactive prompts from nested CLI tools, or provide a mechanism to pre-answer interactive prompts when running shell commands.

This is particularly common with monorepo tools like melos, nx, turborepo, etc. that often ask users to select a package/workspace before running a command.

Environment

  • macOS
  • melos 6.3.3
  • Claude Code CLI

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗