anentrypoint-design 0.0.343 → 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/dist/247420.js +5 -5
- package/package.json +1 -1
- package/src/components/agent-chat.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anentrypoint-design",
|
|
3
|
-
"version": "0.0.
|
|
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,12 +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
|
|
374
|
+
// A failed trailing turn (the host's send/stream rejected, regardless
|
|
375
|
+
// of which role the placeholder message landed on) gets its error
|
|
375
376
|
// pinned to that specific turn, with retry right there — same pattern
|
|
376
377
|
// as stopped/incomplete, but destructive-toned since this is a genuine
|
|
377
378
|
// failure rather than a neutral "not finished" state.
|
|
378
|
-
error:
|
|
379
|
-
onRetry: (
|
|
379
|
+
error: i === lastIdx ? m.error : undefined,
|
|
380
|
+
onRetry: (i === lastIdx && m.error && onRetryMessage) ? () => onRetryMessage(m) : undefined,
|
|
380
381
|
parts: emptyStreaming ? undefined : (parts.length ? parts : [{ kind: 'text', text: '' }]),
|
|
381
382
|
});
|
|
382
383
|
});
|