π OpenHands: AI-Driven Development
fix(frontend): agent loading condition update logic (#11673)
sp.wack0c927b19d253
diff --git a/frontend/src/components/features/controls/agent-status.tsx b/frontend/src/components/features/controls/agent-status.tsxindex 68165ddf97..2fbff7192f 100644--- a/frontend/src/components/features/controls/agent-status.tsx+++ b/frontend/src/components/features/controls/agent-status.tsx@@ -70,8 +70,7 @@ export function AgentStatus({// Update global state when agent loading condition changesuseEffect(() => {- if (shouldShownAgentLoading)- setShouldShownAgentLoading(shouldShownAgentLoading);+ setShouldShownAgentLoading(!!shouldShownAgentLoading);}, [shouldShownAgentLoading, setShouldShownAgentLoading]);return (