fix: dot shade of green

This commit is contained in:
Nate 2025-07-13 18:05:23 -07:00
parent 9792b1411f
commit 8f6ec398ff

View file

@ -167,7 +167,9 @@ const TUIChat: React.FC<TUIChatProps> = ({
default: default:
// Handle MCP tools or unknown tools // Handle MCP tools or unknown tools
if (name.startsWith("mcp__")) { if (name.startsWith("mcp__")) {
const mcpToolName = name.replace("mcp__", "").replace("ide__", ""); const mcpToolName = name
.replace("mcp__", "")
.replace("ide__", "");
const firstParam = Object.values(args)[0]; const firstParam = Object.values(args)[0];
return `${mcpToolName}(${firstParam || ""})`; return `${mcpToolName}(${firstParam || ""})`;
} }
@ -280,21 +282,17 @@ const TUIChat: React.FC<TUIChatProps> = ({
switch (message.messageType) { switch (message.messageType) {
case "tool-start": case "tool-start":
return ( return (
<Box key={index} marginBottom={1} paddingLeft={2}> <Box key={index} marginBottom={1}>
<Text color="white">○ {message.content}</Text> <Text color="white">○ {message.content}</Text>
</Box> </Box>
); );
case "tool-result": case "tool-result":
return ( return (
<Box <Box key={index} marginBottom={1} flexDirection="column">
key={index}
marginBottom={1}
paddingLeft={2}
flexDirection="column"
>
<Box> <Box>
<Text color="green">● {message.content}</Text> <Text color="green">●</Text>
<Text> {message.content}</Text>
</Box> </Box>
<Box marginLeft={2} paddingTop={1}> <Box marginLeft={2} paddingTop={1}>
<ToolResultSummary <ToolResultSummary
@ -307,7 +305,7 @@ const TUIChat: React.FC<TUIChatProps> = ({
case "tool-error": case "tool-error":
return ( return (
<Box key={index} marginBottom={1} paddingLeft={2}> <Box key={index} marginBottom={1}>
<Text color="red" bold> <Text color="red" bold>
✗{" "} ✗{" "}
</Text> </Text>
@ -329,7 +327,7 @@ const TUIChat: React.FC<TUIChatProps> = ({
return ( return (
<Box key={index} marginBottom={1}> <Box key={index} marginBottom={1}>
<Text color={isUser ? "green" : "blue"} bold> <Text color={isUser ? "green" : "blue"}>
● ●
</Text> </Text>
<Text> {message.content}</Text> <Text> {message.content}</Text>