Skip to content

"New Chat"-confirmation popup behaves counter-intuitively (bug?) #2525

@cjayb

Description

@cjayb

Describe the bug

The "New Chat" button (top-left) launches a confirmation popup with two options

  • Cancel (secondary colour)
  • Confirm (primary colour)

The UI is confusing/unintuitive: hitting enter closes the popup without starting a new chat. Enter must be mapped to Cancel, despite clear colour cue to the opposite.

To Reproduce, try the above

Expected behavior

Given that the Confirm-button is highlighted with the primary colour, it is natural to expect that hitting Enter will be equivalent to clicking on Confirm.

Development environment:

  • chainlit-2.8.0
  • python-3.13.5

Desktop (please complete the following information):

  • OS: macOS
  • Browser: tested on Chrome and Safari
  • Version Chrom 139.0.7258.155

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendPertains to the frontend.needs-triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions