You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session loop doesn't stop when model returns finish_reason=stop #11153
When the model returns a response with finish_reason=stop (no tool calls, just text), the session loop continues making API calls with identical messages instead of stopping.
Expected: Loop stops when model indicates it's done Actual: Loop continues, sending the same request repeatedly
Root cause: In processor.ts, the process() function returns "continue" even when finish_reason=stop. It only returns "stop" for errors or blocked states.
Impact: Causes infinite loops until timeout or error, wastes API calls
Activity
github-actions commentedon Jan 29, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Jan 29, 2026
what provider did u use that encountered this?
blake-hamm commentedon Mar 4, 2026
This happens to me when raw-dogging api calls. I have some logic to handle and send an abort, but it's not ideal - https://github.com/blake-hamm/beyond-vibes/blob/main/src/beyond_vibes/simulations/orchestration.py#L79
rekram1-node commentedon Apr 8, 2026
Havent seen reports of this sense, cant repro. Closing for now