featherbit UI
    Preparing search index...

    Module chat/store

    Browser-side persistence for the agent chat: settings (provider + MCP token) and threads, both in localStorage, both guarded so a private window or blocked storage degrades to in-memory state.

    Nothing here talks to the network; see openai.ts / mcpClient.ts.

    ChatSettings
    SaveThreadsOutcome
    Thread
    ThreadSeed
    ThreadStore
    ToolCall
    ChatMessage
    ToolStatus
    DEFAULT_BASE_URL
    DEFAULT_MODEL
    DEFAULT_SETTINGS
    MAX_THREADS
    MAX_TOOL_RESULT_CHARS
    SETTINGS_KEY
    THREADS_KEY
    appendMessage
    loadSettings
    loadThreads
    newThread
    replaceLastAssistant
    saveSettings
    saveThreads
    titleFor
    trimThreads
    truncateToolResult
    upsertThread