Skip to content

fix: react loop is missing a check for result without tool calls #762

Closed

Description

@markstur

I'm seeing the react_using_mellea test with DuckDuckGo and Ollama intermittently loop and run out of iterations.
When this happens there is often already a step.value that has the answer. More iterations doesn't solve anything and
is_final is never called.

I suspect this could have something to do with DDGS rate limiting but have no evidence.

Since there is a whole in the logic, it seem the step value should be used when possible. TBD whether it should be used ASAP or maybe just checked after all iterations are used up.

I have a fix that works pretty good for me, but need help determining if the fix would have any bad side effects in other cases.

Activity

  1. markstur commented on Mar 27, 2026

    @markstur
    ContributorAuthor

    For me this is the cause of #684

    PR coming soon

  2. added 2 commits that reference this issue on Mar 27, 2026
    16b938d
    1619626
  3. added 3 commits that reference this issue on Apr 18, 2026
    c46aff2
    b34a816
    dc2dd15
  4. self-assigned this
    on Apr 24, 2026
  5. markstur commented on May 6, 2026

    @markstur
    ContributorAuthor

    This may have been fixed by #896

  6. added 2 commits that reference this issue on May 7, 2026
    3772479
    c2e004e
  7. markstur commented on May 7, 2026

    @markstur
    ContributorAuthor

    Closing since I cannot reproduce the problem after #896

    Closing the PR #763 with a callback that looked useful, but is now a solution w/o a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions