@xenosystem/agent-conversation 0.1.88 → 0.1.90

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.
@@ -3579,7 +3579,7 @@ export function AgentView(props) {
3579
3579
  const checkpoints = conversation?.checkpoints || [];
3580
3580
  const pendingTurns = conversation?.pendingTurns || [];
3581
3581
  const sessionUi = conversation?.sessionUi;
3582
- const isCancelling = isStreaming && !!activeRequestId && (sessionUi?.runtimeEvents || []).some((event) => (event.requestId === activeRequestId && event.type === 'turn.cancel.requested'));
3582
+ const isCancelling = isStreaming && !!activeRequestId && (sessionUi?.runtimeEvents || []).filter((event) => (event.requestId === activeRequestId && (event.type === 'turn.cancel.requested' || event.type === 'turn.cancel.failed'))).at(-1)?.type === 'turn.cancel.requested';
3583
3583
  const runtimeProjectedConversation = useMemo(() => (conversationId
3584
3584
  ? getConversationRuntimeProjection(conversationId) || projectConversationRuntimeState(conversation)
3585
3585
  : projectConversationRuntimeState(conversation)), [conversation, conversationId, getConversationRuntimeProjection]);