@kenkaiiii/ggcoder 5.44.0 → 5.44.1

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.
@@ -1641,6 +1641,12 @@ async function createSession(deps, opts) {
1641
1641
  durationMs: String(d.durationMs),
1642
1642
  isError: String(d.isError),
1643
1643
  ...(d.isError ? { result: d.result.slice(0, 500) } : {}),
1644
+ // Consecutive-failure count for schema rejections. Attempt 1 followed by
1645
+ // a success means the model self-corrected; reaching 3 means it looped
1646
+ // and the turn was ended. Grep this to tell the two apart.
1647
+ ...(d.invalidArgAttempt === undefined
1648
+ ? {}
1649
+ : { invalidArgAttempt: String(d.invalidArgAttempt) }),
1644
1650
  });
1645
1651
  broadcast("tool_call_end", d);
1646
1652
  // Any tool can mutate the approved plan (including bash), so refresh after