chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Allow displaying more than 4 starters in a ChatProfile

Open thefourcraft opened this issue 7 months ago • 0 comments
trafficstars

Is your feature request related to a problem? Please describe.

Currently, when I define more than 4 cl.Starter() entries inside a ChatProfile using @cl.set_chat_profiles, only the first 4 appear in the Chainlit UI. The rest are silently ignored or never rendered.

There doesn’t appear to be any frontend slicing or limit in the source code, but in practice the client never receives more than 4 starters per profile — even though more are declared on the backend.

This is a UX limitation, especially for assistants with many logical tasks (e.g., social media assistant with 6–8 options).

Describe the solution you'd like

Please allow displaying more than 4 cl.Starter() buttons per profile, or:

  • Remove any implicit backend limits on the starters array
  • Add scroll support to the starters container if height is a concern
  • Document any known limits if they are intentional

Describe alternatives you've considered

  • Manually splitting starters across multiple ChatProfiles (not ideal UX)
  • Using a single starter that leads to dropdowns or button selections (less discoverable for users)
  • Injecting custom JS/CSS to force scroll or layout fix — didn’t help since the client never receives the extra starters

thefourcraft avatar Apr 17 '25 22:04 thefourcraft