assistant-ui icon indicating copy to clipboard operation
assistant-ui copied to clipboard

Modify thread list order during use

Open csavez opened this issue 5 months ago • 2 comments

Hi Team! I would like to implement an update on thread list when a communication happening and move the current thread to the top of the list (Last used thread). Is there any way to modify the already loaded thread list during conversation?

csavez avatar Sep 10 '25 09:09 csavez

With External/Local or AISDK runtimes you can provide a custom ThreadListAdapter where you will have full control of thread list.

CoolSpot avatar Sep 11 '25 21:09 CoolSpot

Hi, We use useRemoteThreadListRuntime and now based on previous comment, we started creating a CustomThreadListPrimitiveItems component where we are reordering the threadIds array. This still not feel the right way, besides it's working and a big step forward since last try.

csavez avatar Sep 17 '25 11:09 csavez