bunnyquery 1.10.7 → 1.10.8

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": "bunnyquery",
3
- "version": "1.10.7",
3
+ "version": "1.10.8",
4
4
  "description": "Embeddable BunnyQuery AI chat widget + its framework-agnostic chat engine",
5
5
  "main": "bunnyquery.js",
6
6
  "exports": {
@@ -858,6 +858,13 @@ export function mapHistoryListToMessages(list: any[], platform: 'claude' | 'open
858
858
  if (item._isBgTask) em.isBackgroundTask = true;
859
859
  if (serverItemId !== undefined) em._serverItemId = serverItemId;
860
860
  if (replyTs !== undefined) em._ts = replyTs;
861
+ // A pass that FAILED still ran, and how long it ran before failing is worth
862
+ // as much as a successful pass's duration -- often more, since that is where
863
+ // a timeout shows itself. `att` is stamped before the upstream call fires,
864
+ // so a failed row carries it exactly as a resolved one does. (Same stamp as
865
+ // the success branch below; the stream-pending branch deliberately has none,
866
+ // having no end time yet.)
867
+ if (indexFile && isFinite(executedTs) && executedTs > 0) em._tsStart = executedTs;
861
868
  mapped.push(em);
862
869
  } else if (isStreamPending) {
863
870
  // The bubble stands for the turn so the merge has something to key on and