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/bunnyquery.js +2 -1
- package/dist/engine.cjs +1 -0
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.mjs +1 -0
- package/dist/engine.mjs.map +1 -1
- package/package.json +1 -1
- package/src/engine/history.ts +7 -0
package/package.json
CHANGED
package/src/engine/history.ts
CHANGED
|
@@ -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
|