@crestapps/ai-chat-ui 2.0.0-preview.172 → 2.0.0-preview.173

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.
@@ -1385,10 +1385,12 @@
1385
1385
  console.info('The realtime voice session ended (' + reason + ').');
1386
1386
  }
1387
1387
 
1388
- // An idle close is deliberate and recoverable, so say so and offer to pick the conversation back up
1389
- // rather than leaving the user staring at a button that silently stopped working.
1388
+ // An idle or duration close is deliberate and recoverable, so say so and offer to pick the conversation
1389
+ // back up rather than leaving the user staring at a button that silently stopped working.
1390
1390
  if (reason === 'idle') {
1391
1391
  showRealtimeStatus(localize('endedIdle', 'Voice paused after a period of silence.'), true);
1392
+ } else if (reason === 'max_duration') {
1393
+ showRealtimeStatus(localize('endedMaxDuration', 'Voice paused — this session reached its time limit. You can start another.'), true);
1392
1394
  } else if (reason === 'disconnected') {
1393
1395
  showRealtimeStatus(localize('endedDisconnected', 'Voice session ended — the connection dropped.'), true);
1394
1396
  } else if (reason === 'error') {