Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(frontend): improve chat input status indicator responsiveness (#11202)

Yakshithaab6f4127c88
diff --git a/frontend/src/components/features/chat/components/chat-input-actions.tsx b/frontend/src/components/features/chat/components/chat-input-actions.tsx
index e5750a9257..5a1a19c3d5 100644
--- a/frontend/src/components/features/chat/components/chat-input-actions.tsx
+++ b/frontend/src/components/features/chat/components/chat-input-actions.tsx
@@ -25,6 +25,7 @@ export function ChatInputActions({
<ServerStatus conversationStatus={conversationStatus} />
</div>
<AgentStatus
+ className="ml-2 md:ml-3"
handleStop={() => handleStop(onStop)}
handleResumeAgent={handleResumeAgent}
disabled={disabled}
diff --git a/frontend/src/components/features/controls/agent-status.tsx b/frontend/src/components/features/controls/agent-status.tsx
index 85779d2785..a549d9bcbc 100644
--- a/frontend/src/components/features/controls/agent-status.tsx
+++ b/frontend/src/components/features/controls/agent-status.tsx
@@ -61,8 +61,11 @@ export function AgentStatus({
}, [shouldShownAgentLoading, setShouldShownAgentLoading]);
return (
- <div className={`flex items-center gap-1 ${className}`}>
- <span className="text-[11px] text-white font-normal leading-5">
+ <div className={cn("flex items-center gap-1 min-w-0", className)}>
+ <span
+ className="text-[11px] text-white font-normal leading-5 flex-1 min-w-0 max-w-full whitespace-normal break-words"
+ title={t(statusCode)}
+ >
{t(statusCode)}
</span>
<div