@blockrun/runcode 2.2.6 → 2.2.7
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 +3 -1
- package/package.json +1 -1
package/dist/agent/loop.js
CHANGED
|
@@ -238,7 +238,7 @@ export async function interactiveSession(config, getUserInput, onEvent, onAbortR
|
|
|
238
238
|
let loopCount = 0;
|
|
239
239
|
let recoveryAttempts = 0;
|
|
240
240
|
let maxTokensOverride;
|
|
241
|
-
|
|
241
|
+
let lastActivity = Date.now();
|
|
242
242
|
// Agent loop for this user message
|
|
243
243
|
while (loopCount < maxTurns) {
|
|
244
244
|
loopCount++;
|
|
@@ -418,6 +418,8 @@ export async function interactiveSession(config, getUserInput, onEvent, onAbortR
|
|
|
418
418
|
for (const [inv, result] of results) {
|
|
419
419
|
onEvent({ kind: 'capability_done', id: inv.id, result });
|
|
420
420
|
}
|
|
421
|
+
// Refresh activity timestamp after tool execution
|
|
422
|
+
lastActivity = Date.now();
|
|
421
423
|
// Append outcomes
|
|
422
424
|
const outcomeContent = results.map(([inv, result]) => ({
|
|
423
425
|
type: 'tool_result',
|