Skip to content

[Bug]: Question option number badges can't be used from the keyboard; pressing 1 types into the answer box #37354

Open

Description

@mvanhorn

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Have an agent ask a question with options (Claude AskUserQuestion). Each option shows a number badge: 1, 2, 3.
  2. Don't click anything. Focus is in the composer ("Type your own answer, or leave this blank to use the selected option").
  3. Press 1.
  4. Or press Tab first, then 1.

Expected behavior

The option with badge 1 is selected, as the badge suggests.

Actual behavior

At step 3, "1" is typed into the composer and no option is selected. At step 4, Tab moves focus to the model picker trigger, which the digit shortcut also ignores, so 1 does nothing. With the focus the panel opens in, no keyboard input selects an option. You have to click.

The digit listener in ComposerPendingUserInputPanel.tsx returns early for contenteditable targets and [role="combobox"], which covers both of these focus states.

Pressing 1 types into the answer box instead of selecting option 1

Impact

Minor bug or occasional failure

Version or commit

T3 Code (Beta) desktop 0.1.3. Also present on main at the time of filing.

Environment

macOS 27.2, desktop app

Logs or stack traces

None. This is UI behavior, with no errors.

Fix proposed in #37353.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions