fix: AskUserQuestion の複数選択にカーソルを表示して操作可能にする - #48
Merged
Merged
Conversation
複数選択(multiSelect)の質問では、チェックボックス `[x]`/`[ ]` が カーソル記号 `❯` を置き換えてしまい、カーソル位置が文字色でしか 分からなかった。矢印キーで移動しても見た目が変わらず「トグルできない/ 複数選択に対応していない」ように見えていた。 - 複数選択でもポインタ `❯` をチェックボックスと併記する(`❯ [x] ラベル`)。 - 「自分で入力する」「これについて相談する」をチェックボックス幅ぶん 字下げして桁を揃える。 - 単一選択の表示(`❯ ラベル`)は不変。 回答フォーマット(question text → カンマ区切り文字列)は SDK の AskUserQuestionOutput 仕様どおりで変更不要。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
AskUserQuestion(質問ダイアログ)の**複数選択(multiSelect)**が実質操作できない問題を修正します。単一選択の質問は問題なく動作していましたが、複数選択の質問ではカーソル記号
❯がチェックボックス[x]/[ ]に置き換わってしまい、カーソル位置が文字色でしか表現されていませんでした。矢印キーで移動しても見た目がまったく変わらないため、「どの行にいるか分からない=トグルできない=複数選択に非対応」に見えていました。Before(複数選択・カーソルを下に動かしても変化なし)
After(
❯ポインタが見え、移動できる)変更点
❯をチェックボックスと併記(❯ [x] ラベル)。カーソルとトグル状態を分離して表示。❯ ラベル)は不変(回帰なし)。AskUserQuestionOutput仕様(multi-select answers are comma-separated)どおりで、変更不要なことを確認。テスト計画
src/ui/permission-dialog.spec.tsxに複数選択でチェックボックス+可動カーソルが出ることを検証するテストを追加npm run lint/npm run typecheckクリーン