Describe the bug
Clicking "New Chat" button causes the current chat session to disappear entirely. The conversation is not saved as a previous thread and becomes inaccessible.
To Reproduce
- Fresh scaffold:
npx @openuidev/cli@latest create
- Set up
.env with Ollama local endpoint
- Send a few messages in the chat
- Click the "New Chat" button in the UI
- The previous session disappears — no thread in sidebar, no way to get back
Expected behavior
Previous session should be saved as a thread in the sidebar, allowing users to switch between multiple conversations like a standard chat app.
Screenshots
Before clicking New Chat : Normal chat with AI-generated UI components visible on left

After clicking New Chat : Same session components on left panel disappeared after clicking New Chat

Desktop
- OS: Windows 11
- Browser: (tera browser)
- Version: (browser version)
Additional context
Confirmed on both fresh CLI scaffold and upgraded project. Likely related to default in-memory storage in ChatProvider not persisting threads on session switch.
Describe the bug
Clicking "New Chat" button causes the current chat session to disappear entirely. The conversation is not saved as a previous thread and becomes inaccessible.
To Reproduce
npx @openuidev/cli@latest create.envwith Ollama local endpointExpected behavior
Previous session should be saved as a thread in the sidebar, allowing users to switch between multiple conversations like a standard chat app.
Screenshots
Before clicking New Chat : Normal chat with AI-generated UI components visible on left
After clicking New Chat : Same session components on left panel disappeared after clicking New Chat
Desktop
Additional context
Confirmed on both fresh CLI scaffold and upgraded project. Likely related to default in-memory storage in ChatProvider not persisting threads on session switch.