chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Commands - Requesting to add an option like "selected" : True which can be set dynamically based on cached value

Open kumarprashant4u opened this issue 6 months ago • 0 comments
trafficstars

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

Need an option like "selected" : True which can set dynamically based on cached value

Currently, command persistence get reset to none if a page is refreshed which means the selected command gets unselected on page refresh.

The "selected" : True will help to persists the commands based on cache value from any database.

Describe the solution you'd like

commands = [ {"id": "Search", "icon": "globe", "description": "Web search", "button": True, "persistent" : True, "selected" : True} ]

kumarprashant4u avatar Apr 29 '25 19:04 kumarprashant4u