tui: question dialog drops h/j/k/l keystrokes in custom answer field

オープン 初心者向け
#63,080 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
cli

調査の方向性

TUIの質問ダイアログにあるカスタム回答入力欄と、オプションリストのキーボード処理から確認してください。issueでは特定のファイルやテストは指定されていません。「Type your own answer」に h、j、k、l を入力し、入力欄が表示されたまま各文字が表示されるか確認して再現します。Enter または Esc を押すまで入力欄が表示されたままで、これらの文字を通常どおり入力できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

In the question tool dialog, typing a custom answer ("Type your own answer") silently drops some letters, and the input prompt sometimes disappears entirely.

Environment

  • opencode version: v2.2.6
  • OS: Darwin 25.6.0 (darwin arm64)
  • Terminal: iTerm.app (TERM=xterm-256color, COLORTERM=truecolor)
  • Shell: /bin/zsh
  • Install/channel: latest (release)
  • Active plugins: none found in opencode.jsonc / .opencode

Reproduction

  1. Have the agent call the question tool with several options.
  2. Select the automatic "Type your own answer" option.
  3. Type a sentence containing h, j, k or l, e.g. "go ahead the parallel work".
  4. Keep typing; the input field sometimes vanishes.

Expected Behavior

Every typed character is inserted into the answer field, and the field stays visible until Enter or Esc.

Actual Behavior

Typed "go ahead the parallel work" and got "go aead te parae wor". Every h, l and k was dropped. These are the vim-style navigation keys, so the dialog's list navigation looks like it consumes them while the text field has focus. The text field also sometimes disappears, possibly because j/k moved the selection off the custom option.

Additional Context

  • Happens consistently with those letters; the disappearing field is intermittent.
  • Custom keybinds in cli.json only use <leader>-prefixed bindings (session.tab.next/previous/close), so none bind a bare letter.
  • The keybind docs list no setting for the question dialog's keys.
  • Workaround: avoid h/j/k/l, or press Esc and answer in the normal prompt.
  • Screenshot to be attached in a comment (gh CLI cannot upload images).
主要言語
TypeScript
スター
225k
フォーク
30.4k
平均マージ
4時間 7分
マージ済み PR(30日)
554

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。