Implementation:0xranx OpenContext AgentMessageList
| Knowledge Sources | |
|---|---|
| Domains | Agent_Chat, React |
| Last Updated | 2026-10-24 00:00 GMT |
Overview
Agent chat message list component that renders conversation messages including tool call cards, markdown content, and status indicators in the desktop AI agent sidebar.
Description
The AgentMessageList.jsx component in src/ui/src/components/agent/ renders the message history of an agent chat session. It uses TiptapMarkdownViewer for markdown content rendering and a getToolCardMeta helper to classify tool calls (shell, MCP, patch, generic) based on content prefixes (> , $ , MCP: , diff: ). Tool call cards use TOOL_STATUS_STYLES from constants for neutral/success/error styling.
Usage
Import this component in AgentSidebar to render the conversation history.
Code Reference
Source Location
- Repository: 0xranx_OpenContext
- File: src/ui/src/components/agent/AgentMessageList.jsx
- Lines: 1-372
Signature
export default function AgentMessageList({ messages, ... })
// Helper:
function getToolCardMeta(message) // → { content, toolLabel, toolCommand, toolType }
Import
import AgentMessageList from './components/agent/AgentMessageList';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| messages | Array | Yes | Message objects with role, content, summary |
Usage Examples
Rendering Message List
import AgentMessageList from './components/agent/AgentMessageList';
<AgentMessageList messages={session.messages} />