Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

refactor(component): rename component to match its filename (#432)

Abdelrhman Kamal Mahmoud Ali Slimf97557f59f6a
diff --git a/codex-cli/src/components/chat/terminal-message-history.tsx b/codex-cli/src/components/chat/terminal-message-history.tsx
index fe0bea5554..8171f629a8 100644
--- a/codex-cli/src/components/chat/terminal-message-history.tsx
+++ b/codex-cli/src/components/chat/terminal-message-history.tsx
@@ -12,7 +12,7 @@ import React, { useMemo } from "react";
// items (e.g. auto‑approved tool‑call batches) that should be rendered
// together.
type BatchEntry = { item?: ResponseItem; group?: GroupedResponseItem };
-type MessageHistoryProps = {
+type TerminalMessageHistoryProps = {
batch: Array<BatchEntry>;
groupCounts: Record<string, number>;
items: Array<ResponseItem>;
@@ -25,7 +25,7 @@ type MessageHistoryProps = {
setOverlayMode: React.Dispatch<React.SetStateAction<OverlayModeType>>;
};
-const MessageHistory: React.FC<MessageHistoryProps> = ({
+const TerminalMessageHistory: React.FC<TerminalMessageHistoryProps> = ({
batch,
headerProps,
// `loading` and `thinkingSeconds` handled by input component now.
@@ -78,4 +78,4 @@ const MessageHistory: React.FC<MessageHistoryProps> = ({
);
};
-export default React.memo(MessageHistory);
+export default React.memo(TerminalMessageHistory);