Description
On Windows 11, running forge in PowerShell/Git Bash causes the TUI to automatically skip selection menus and jump to the next step without waiting for user input.
Specific behaviors observed
-
Default provider fallback: When no provider is configured, forge does not show an interactive provider selection menu. Instead, it immediately falls back to the first provider in the list (AdaL) and prompts for its API key.
-
Auto-skipping within interactive session: Inside the TUI, when a selection prompt appears (e.g., choosing a token platform after entering a provider API key), Forge automatically selects the first option and proceeds without user confirmation.
-
Provider login menu: Running forge provider login (without specifying a provider ID) also skips the interactive provider picker and jumps directly to the first provider's authentication flow.
Environment
- OS: Windows 11 (Build 26200.8457)
- Forge version: 2.12.15
- Terminals tested: Windows PowerShell, Git Bash, WezTerm, Alacritty
- Node.js: v24.11.0
Steps to reproduce
- Fresh install ForgeCode on Windows: npm install -g forgecode@latest
- Ensure no provider is configured: forge config get provider should return Not set
- Run forge
- Expected: Interactive menu to select a provider
- Actual: Immediately prompts for AdaL API key
Additional context
- The issue appears to be related to how the TUI handles input events on Windows, possibly in the nucleo-picker-based selection components (refactored in v2.12.10).
- Release notes show recent Windows-specific fixes (fix(select): skip selector keyboard on windows in v2.12.12), but this auto-skip behavior persists.
- Non-interactive mode (forge -p) works fine as a workaround.
Description
On Windows 11, running forge in PowerShell/Git Bash causes the TUI to automatically skip selection menus and jump to the next step without waiting for user input.
Specific behaviors observed
Default provider fallback: When no provider is configured, forge does not show an interactive provider selection menu. Instead, it immediately falls back to the first provider in the list (AdaL) and prompts for its API key.
Auto-skipping within interactive session: Inside the TUI, when a selection prompt appears (e.g., choosing a token platform after entering a provider API key), Forge automatically selects the first option and proceeds without user confirmation.
Provider login menu: Running forge provider login (without specifying a provider ID) also skips the interactive provider picker and jumps directly to the first provider's authentication flow.
Environment
Steps to reproduce
Additional context