@blockrun/franklin 3.15.82 → 3.15.83
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/agent/loop.js +8 -1
- package/package.json +1 -1
package/dist/agent/loop.js
CHANGED
|
@@ -1686,7 +1686,14 @@ export async function interactiveSession(config, getUserInput, onEvent, onAbortR
|
|
|
1686
1686
|
const gatewayErr = looksLikeGatewayErrorAsText(responseParts);
|
|
1687
1687
|
if (gatewayErr.match) {
|
|
1688
1688
|
logger.error(`[franklin] Gateway returned an error text in lieu of an answer (${resolvedModel}): ${gatewayErr.message}`);
|
|
1689
|
-
|
|
1689
|
+
lastSessionActivity = Date.now();
|
|
1690
|
+
persistSessionMeta();
|
|
1691
|
+
onEvent({
|
|
1692
|
+
kind: 'turn_done',
|
|
1693
|
+
reason: 'error',
|
|
1694
|
+
error: gatewayErr.message,
|
|
1695
|
+
});
|
|
1696
|
+
break;
|
|
1690
1697
|
}
|
|
1691
1698
|
// Reset recovery counter on successful completion
|
|
1692
1699
|
recoveryAttempts = 0;
|
package/package.json
CHANGED