fix(cli): skip lazy-dep prompt when prompt_toolkit owns terminal (#40490)#40579
fix(cli): skip lazy-dep prompt when prompt_toolkit owns terminal (#40490)#40579kyssta-exe wants to merge 1 commit into
Conversation
|
The |
3d11d51 to
08d2c95
Compare
|
Merged via PR #40901. Your On top of your fix we added two follow-ups: forcing |
|
Thanks for cherry-picking that onto main. Appreciate you handling the stale-branch issue. |
Fixes #40490. When prompt_toolkit owns the terminal (e.g. the TUI/CLI mode), a bare input() in the lazy-dep install prompt deadlocks because keystrokes route to prompt_toolkit's event loop instead of stdin. This detects whether a prompt_toolkit app is running and skips the interactive confirmation when it is. Since lazy installs are gated by security.allow_lazy_installs, reaching this code path already means the user has opted in.