anentrypoint-design 0.0.342 → 0.0.344

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": "anentrypoint-design",
3
- "version": "0.0.342",
3
+ "version": "0.0.344",
4
4
  "description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
5
5
  "type": "module",
6
6
  "main": "./dist/247420.js",
@@ -371,6 +371,13 @@ export function AgentChat(props = {}) {
371
371
  // replay. Retry rides the existing actions row.
372
372
  stopped: m.stopped,
373
373
  incomplete: m.incomplete,
374
+ // A failed trailing turn (the host's send/stream rejected, regardless
375
+ // of which role the placeholder message landed on) gets its error
376
+ // pinned to that specific turn, with retry right there — same pattern
377
+ // as stopped/incomplete, but destructive-toned since this is a genuine
378
+ // failure rather than a neutral "not finished" state.
379
+ error: i === lastIdx ? m.error : undefined,
380
+ onRetry: (i === lastIdx && m.error && onRetryMessage) ? () => onRetryMessage(m) : undefined,
374
381
  parts: emptyStreaming ? undefined : (parts.length ? parts : [{ kind: 'text', text: '' }]),
375
382
  });
376
383
  });