@opengeni/react-native 5.5.2-canary.40953009950001 → 5.5.2-canary.40973241992001

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/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { createContext, useState, useRef, useLayoutEffect, useEffect, useCallbac
9
9
  import { useOpenGeniText, SingleSendWording } from '@opengeni/react/messages';
10
10
  import { errorMessage } from '@opengeni/contracts/values';
11
11
  import { useSessionEvents, useSession, useTurnQueue, useComposer, useSessionControl, useHumanInputRequests, useGoal, useSessionLineage, projectPendingApprovals, groupTimeline, useSessionMcpApprovalPolicy, useSessionReadAcknowledgement } from '@opengeni/react/session';
12
- import { sessionAdmissionBlocked, isAgentWorkHumanInput } from '@opengeni/react/timeline-model';
12
+ import { promptSendDestination, sessionAdmissionBlocked, isAgentWorkHumanInput } from '@opengeni/react/timeline-model';
13
13
  import '@opengeni/react/session-attention-model';
14
14
  import { StyleSheet, Platform, KeyboardAvoidingView, View, FlatList, ActivityIndicator, Text, ScrollView, Pressable, TextInput, Modal, Linking, Alert } from 'react-native';
15
15
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -370,8 +370,14 @@ function useOpenGeniNativeSession(input) {
370
370
  events: events.events,
371
371
  effectiveControl: queue.effectiveControl,
372
372
  // As on web: while a turn runs or prompts wait, a Send shows in the queue
373
- // at once instead of flashing as a chat bubble before it is queued.
374
- sendDestination: () => (session.session?.activeTurnId ?? null) !== null || queue.queue.length > 0 ? "queue" : "chat",
373
+ // at once instead of flashing as a chat bubble before it is queued. A turn
374
+ // parked on a usage limit is replaced by the Send, which starts at once.
375
+ sendDestination: () => promptSendDestination({
376
+ status: session.session?.status,
377
+ activeTurnId: session.session?.activeTurnId,
378
+ queuedPrompts: queue.queue.length,
379
+ admissionBlock: session.session?.admissionBlock
380
+ }),
375
381
  busySend: input.busySend,
376
382
  offerQueue: input.offerQueue,
377
383
  sendExtras: () => ({ resources: attachments.readyResources }),