@gemies/sdk 10.0.1 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -377,12 +377,10 @@ export const GemieThread = memo(function GemieThread({
|
|
|
377
377
|
</View>
|
|
378
378
|
|
|
379
379
|
{/* Agent execution — in-progress card or completed result card. A run that failed has no
|
|
380
|
-
card: it is told with a toast (`useAgentRunFailureToast`). */}
|
|
381
|
-
{agentActivity && agentActivity.eventCount > 0 ? (
|
|
380
|
+
card, finished or still open: it is told with a toast (`useAgentRunFailureToast`). */}
|
|
381
|
+
{agentActivity && agentActivity.eventCount > 0 && !agentActivity.hasError ? (
|
|
382
382
|
agentActivity.isComplete ? (
|
|
383
|
-
agentActivity
|
|
384
|
-
<AgentResultCard activity={agentActivity} />
|
|
385
|
-
)
|
|
383
|
+
<AgentResultCard activity={agentActivity} />
|
|
386
384
|
) : (
|
|
387
385
|
<AgentTaskCard activity={agentActivity} />
|
|
388
386
|
)
|
|
@@ -20,7 +20,7 @@ export function useAgentRunFailureToast(
|
|
|
20
20
|
) {
|
|
21
21
|
const { t } = useLabels();
|
|
22
22
|
// When the turn itself failed, its own toast already says so (`useFailedTurnToast`).
|
|
23
|
-
const failed = activity?.
|
|
23
|
+
const failed = activity?.hasError === true && !failedTurn;
|
|
24
24
|
const detail = activity?.lastError ?? undefined;
|
|
25
25
|
|
|
26
26
|
useEffect(() => {
|