agent-relay-runner 0.118.3 → 0.118.5
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
package/src/runner-core.ts
CHANGED
|
@@ -245,6 +245,7 @@ export class AgentRunner {
|
|
|
245
245
|
// its final response. Set when a provider-turn starts, cleared when it ends.
|
|
246
246
|
private currentTurnId?: string;
|
|
247
247
|
private currentTurnStartedAt?: number;
|
|
248
|
+
private completedProviderTurns = 0;
|
|
248
249
|
// #435: high-water-mark for the pre-turn narrative flush. Counts how many
|
|
249
250
|
// valid JSONL entries were in the transcript at last pre-flush time so the
|
|
250
251
|
// Stop-hook capture (full mode) can skip what was already emitted.
|
|
@@ -1241,7 +1242,7 @@ export class AgentRunner {
|
|
|
1241
1242
|
}
|
|
1242
1243
|
this.busyReconciler.arm();
|
|
1243
1244
|
} else if (status === "idle" && reason === "provider-turn") {
|
|
1244
|
-
if (this.currentTurnId) this.sessionLog(`turn ended via provider idle (turn ${this.currentTurnId})`);
|
|
1245
|
+
if (this.currentTurnId) { this.completedProviderTurns += 1; this.sessionLog(`turn ended via provider idle (turn ${this.currentTurnId})`); }
|
|
1245
1246
|
this.currentTurnId = undefined;
|
|
1246
1247
|
this.currentTurnStartedAt = undefined;
|
|
1247
1248
|
this.compactionMidTurn = false;
|
|
@@ -1928,6 +1929,7 @@ export class AgentRunner {
|
|
|
1928
1929
|
: { lastError: "Claude provider exited; manual intervention required" }),
|
|
1929
1930
|
} : {}),
|
|
1930
1931
|
busyReasons: this.claims.reasons(),
|
|
1932
|
+
completedProviderTurns: this.completedProviderTurns,
|
|
1931
1933
|
activeWork,
|
|
1932
1934
|
activeSubagents,
|
|
1933
1935
|
activeSubagentCount: activeSubagents.length,
|