Skip to content

Commit c82c4e5

Browse files
committed
Fix MCP tool name typo
1 parent 31f0947 commit c82c4e5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/Agentic/IncidentDetails/AgentEvents/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const AgentEvents = () => {
8787
const shouldShowTypingForEvent = (index: number) =>
8888
isNumber(initialEventsCount) && index >= initialEventsCount;
8989

90+
// TODO: move to a separate component
9091
const renderEvent = (
9192
event: GetIncidentAgentEventsResponse[number],
9293
i: number
@@ -108,7 +109,7 @@ export const AgentEvents = () => {
108109
let toolName = event.tool_name;
109110

110111
if (event.mcp_name) {
111-
toolName += ` ${[event.mcp_name, "MCP tool"]
112+
toolName += ` (${[event.mcp_name, "MCP tool"]
112113
.filter(Boolean)
113114
.join(" ")})`;
114115
}

src/components/Agentic/common/AgentChat/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export const AgentChat = ({
8282
const shouldShowTypingForEvent = (index: number) =>
8383
Boolean(initialEventsCount && index >= initialEventsCount);
8484

85+
// TODO: move to a separate component
8586
const renderChatEvent = (event: IncidentAgentEvent, i: number) => {
8687
switch (event.type) {
8788
case "ai":
@@ -101,7 +102,7 @@ export const AgentChat = ({
101102
let toolName = event.tool_name;
102103

103104
if (event.mcp_name) {
104-
toolName += ` ${[event.mcp_name, "MCP tool"]
105+
toolName += ` (${[event.mcp_name, "MCP tool"]
105106
.filter(Boolean)
106107
.join(" ")})`;
107108
}

0 commit comments

Comments
 (0)