Conversations in MeghaOS are organized into sessions that persist across restarts, so you can revisit or delete past chats. This is handled by the agent’s chat history manager, which is distinct from the semantic Memory system that extracts long-term facts from conversations.

Sessions on disk

Each session is a JSON file in the agent’s local data directory, named by its session id. Session ids are UUIDs, sanitized before use so a crafted id can’t escape that directory. A session payload holds its session_id, a title, timestamps, and the full list of messages.

What the manager does

get_all_sessions returns lightweight metadata (id, title, timestamps) for the chat list, while get_session returns the complete message history for one conversation.

The API

The shell drives history through these endpoints:

History vs. memory

They’re complementary:

Chat history

The verbatim transcript of each conversation, grouped into sessions you can browse and delete. Stored as JSON files on your device.

Memory

Distilled facts extracted from conversations and stored as vectors in ChromaDB, then injected into future prompts for personalization.
Deleting a chat session removes its transcript; facts already extracted into long-term memory persist separately.