Repository navigation
docs(sdk): explain threshold-aware stuck detection history - #1010
Draft
yuhengcai1 wants to merge 2 commits into
Draft
yuhengcai1 wants to merge 2 commits into
yuhengcai1 wants to merge 2 commits into
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
1 of 5 tasks
Co-authored-by: openhands <openhands@all-hands.dev>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Explain how custom stuck-detection thresholds determine the Python detector's bounded recent-history window, why a threshold of 12 needs at least 24 events, and why new user input resets the pattern history. Clarify that parallel tool calls can further expand the action-error window, including with default thresholds.
Companion implementation: OpenHands/software-agent-sdk#6238. This draft follows that implementation and uses the same branch name.
Source verification:
c048a1eb82353b0586f3ce600708394a68ebb246) 5 failed / 2 passed; fixed code 7 passed, with 66 related tests passing. The threshold-12/two-call case also fails if parallel expansion retains the old constant base.Validation: source and native behavior checked as above;
git diff --checkpasses. This only adds explanatory prose and changes no synced example, link, navigation, or component. The Mintlify site was not rendered locally.