Improve the UX for API request retries

This commit is contained in:
Matt Rubens
2025-01-10 16:02:35 -05:00
parent bcebba8dd8
commit 97a93ba731
4 changed files with 143 additions and 16 deletions

View File

@@ -154,6 +154,8 @@ export const ChatRowContent = ({
style={{ color: successColor, marginBottom: "-1.5px" }}></span>,
<span style={{ color: successColor, fontWeight: "bold" }}>Task Completed</span>,
]
case "api_req_retry_delayed":
return []
case "api_req_started":
const getIconSpan = (iconName: string, color: string) => (
<div
@@ -211,15 +213,7 @@ export const ChatRowContent = ({
default:
return [null, null]
}
}, [
type,
cost,
apiRequestFailedMessage,
isCommandExecuting,
apiReqCancelReason,
isMcpServerResponding,
message.text,
])
}, [type, isCommandExecuting, message, isMcpServerResponding, apiReqCancelReason, cost, apiRequestFailedMessage])
const headerStyle: React.CSSProperties = {
display: "flex",