()
| 250 | }, [loaded, activeId, threads.length]) |
| 251 | |
| 252 | const handleNewChat = () => { |
| 253 | // Don't pile up empty chats — if an untouched "New chat" exists, focus it. |
| 254 | const empty = threads.find((t) => t.title === NEW_CHAT_TITLE) |
| 255 | setActiveId(empty ? empty.id : createThread().id) |
| 256 | } |
| 257 | |
| 258 | const handleDelete = (id: string) => { |
| 259 | deleteThread(id) |
nothing calls this directly
no test coverage detected