anentrypoint-design 0.0.342 → 0.0.343

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.343",
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,12 @@ 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 dangling failed message (send rejected / no reply) gets its error
375
+ // pinned to that specific turn, with retry right there — same pattern
376
+ // as stopped/incomplete, but destructive-toned since this is a genuine
377
+ // failure rather than a neutral "not finished" state.
378
+ error: !isAssistant && i === lastIdx ? m.error : undefined,
379
+ onRetry: (!isAssistant && i === lastIdx && m.error && onRetryMessage) ? () => onRetryMessage(m) : undefined,
374
380
  parts: emptyStreaming ? undefined : (parts.length ? parts : [{ kind: 'text', text: '' }]),
375
381
  });
376
382
  });