Skip to content

Chat History

Eshan Roy edited this page Jun 18, 2026 · 1 revision

Chat History

The Chat History browser is a scrollable table view of all messages in the current session.

Overview

Source: internal/tui/chathistory_model.go

Access via /history slash command. Displays all session messages in a tabular format with cursor-based navigation and "continue from here" capability.

Features

  • Scrollable table -- All messages displayed with role, content preview, and timestamp
  • Cursor navigation -- Up/Down to move, Enter to continue from selected message
  • Viewport scrolling -- Mouse wheel and keyboard scrolling for large histories
  • Message count -- Status line shows current position and total count
  • Empty state -- Friendly message when no history exists

Usage

  1. Type /history to open the chat history browser
  2. Use Up/Down or mouse wheel to navigate messages
  3. Press Enter to start a new conversation from the selected message
  4. Press q or Esc to return to the REPL

Keybindings

Key Action
Up/Down Navigate message list
Enter Continue from selected message
g/G Jump to top/bottom
q/Esc Return to REPL
Mouse wheel Scroll viewport

Screen Constant

ScreenChatHistory = 29

Source Files

File Purpose
internal/tui/chathistory_model.go Chat history table model
internal/tui/chathistory_view.go View rendering

Clone this wiki locally