Chat History

MoMCP-TUI automatically saves your conversations and lets you restore them later.

Auto-Save

Every conversation is automatically saved to history as a JSON file:

history/
├── 2024-01-15_14-30-00.json
├── 2024-01-15_16-45-22.json
└── ...

Each file contains:

{
  "saved_at": "2024-01-15 14:30:00",
  "model": "deepseek-v4-pro",
  "messages": [
    {"role": "user", "content": "Hello"},
    {"role": "assistant", "content": "Hi there!"}
  ]
}

History Manager

Open the history manager with:

/history

Features

  • View: See all saved sessions with timestamps, models, and message counts
  • Restore: Load a previous session to continue the conversation
  • Delete: Press d then a number to delete a session
  • Toggle auto-save: Press a to enable/disable auto-saving

Keyboard Shortcuts

KeyAction
1-9Load session by number
d + 1-9Delete session by number
aToggle auto-save
q / EscapeClose

Manual Save

Your current conversation is also saved when you:

  • Press Escape to interrupt
  • Exit with /exit or q
  • Switch to a different history session

What's Preserved

Each saved session includes:

  • All user and assistant messages
  • Tool call results
  • Model and provider information
  • Timestamp