gitbutlerapp/gitbutler

`but skill install` automatically selecting the first option, preventing user selection

已关闭

#12,670 创建于 2026年3月3日

 (2 条评论) (0 个反应) (0 位负责人)Rust (862 个派生)batch import
bughelp wantedos:windows

仓库指标

星标
 (19,787 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Version

0.19.5

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

When running but skill install through either pwershell or cmd on windows, it automatically selects the first option in the menus, preventing user selection.

For example, if I run it, "Local" got automatically selected, forcing me to select the format.

If I run but skill install --global then the format is automatically selected, preventing me from having the choice.


Note: in the process of capturing screenshots for this bug, I pressed "enter" to close the screenshot window, and the but command in the background selected an option upon it gaining focus.

This leads me to believe your menu system is not handling the correct key events, for example, using a "key up" instead of "key down" or similar.

How to reproduce (Optional)

  1. enter but skill install at the console (pwsh or cmd)
  2. observe that a question pops up but the first option is already selected.

Expected behavior (Optional)

No response

Relevant log output (Optional)

贡献者指南