fix(coding-agent): reset retry counter after each successful LLM response

Previously, within a single tool-use turn, rate limit retries would
accumulate across separate LLM calls. For example, if each of 3 tool
calls hit a 429 and retried once, the counter would show '3/3' and fail
even though each individual retry succeeded.

Now the counter resets immediately when a successful (non-error)
assistant message arrives, so each LLM call gets a fresh set of retries.

Fixes #1019
This commit is contained in:
Mario Zechner 2026-01-29 01:12:29 +01:00
parent 25707f9ad4
commit 4f004adefa
2 changed files with 14 additions and 10 deletions

View file

@ -9,6 +9,7 @@
### Fixed
- Empty array in package filter now disables all resources instead of falling back to manifest defaults ([#1044](https://github.com/badlogic/pi-mono/issues/1044))
- Auto-retry counter now resets after each successful LLM response instead of accumulating across tool-use turns ([#1019](https://github.com/badlogic/pi-mono/issues/1019))
## [0.50.1] - 2026-01-26