Skip to content

Reduce max iterations by default #7535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2025
Merged

Reduce max iterations by default #7535

merged 2 commits into from
Mar 27, 2025

Conversation

enyst
Copy link
Collaborator

@enyst enyst commented Mar 27, 2025

  • This change is worth documenting at https://docs.all-hands.dev/
  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

End-user friendly description of the problem this fixes or functionality that this introduces.

Set max iterations to 250 by default.


Give a summary of what the PR does, explaining any non-trivial design decisions.

This PR proposes to reduce max iterations to 250.

With Sonnet 3.7's energy, this does seem to go off quite a lot. We also had a fix meanwhile, where if the user speaks, the max iterations are added again on top of existing value, which gives more breathing room than 250 anyway.

With UI, hitting this only means that the user tells it to continue.


Link of any specific issues this addresses.


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:60c1111-nikolaik   --name openhands-app-60c1111   docker.all-hands.dev/all-hands-ai/openhands:60c1111

Copy link
Contributor

@malhotra5 malhotra5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Seems like this is needed as of lately

@enyst enyst enabled auto-merge (squash) March 27, 2025 00:30
@enyst enyst merged commit 8e9eb7d into main Mar 27, 2025
13 checks passed
@enyst enyst deleted the enyst-patch-1 branch March 27, 2025 01:00
Tetsu-is pushed a commit to Tetsu-is/OpenHands that referenced this pull request Apr 4, 2025
Tetsu-is pushed a commit to Tetsu-is/OpenHands that referenced this pull request Apr 4, 2025
Tetsu-is pushed a commit to Tetsu-is/OpenHands that referenced this pull request Apr 4, 2025
Tetsu-is pushed a commit to Tetsu-is/OpenHands that referenced this pull request Apr 4, 2025
Tetsu-is pushed a commit to Tetsu-is/OpenHands that referenced this pull request Apr 4, 2025
Tetsu-is pushed a commit to Tetsu-is/OpenHands that referenced this pull request Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants