Files
zCode-CLI-X/test-intent-restart.cjs
Kilo 2bbe9f2b86 fix: improve stuck detection to track failed tool calls
- Track failed tool calls in call history (parse errors, execution errors)
- Increment turns counter for failed tool calls too
- Stuck detection now works even when tools fail repeatedly
- Inspired by Ruflo and Hermes Agent best practices

Fixes the bug where zCode would get stuck in infinite loops when tool calls fail.

Test results:  All stuck detection tests passing
2026-05-07 10:19:53 +00:00

1.6 KiB