@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gemies/sdk",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "The Gemies SDK: the conversation runtime, chat UI, voice calls and dictation for Oxy apps that talk to a gemie",
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
@@ -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.hasError ? null : (
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?.isComplete === true && activity.hasError && !failedTurn;
23
+ const failed = activity?.hasError === true && !failedTurn;
24
24
  const detail = activity?.lastError ?? undefined;
25
25
 
26
26
  useEffect(() => {