fix: allow to continue when the agent is stuck in interactive mode (#5597)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Engel Nyst
2024-12-14 20:49:04 +01:00
committed by GitHub
parent 7ef6fa666d
commit f0257c793b
4 changed files with 119 additions and 77 deletions

View File

@@ -94,7 +94,7 @@ class State:
end_id: int = -1
# truncation_id tracks where to load history after context window truncation
truncation_id: int = -1
almost_stuck: int = 0
delegates: dict[tuple[int, int], tuple[str, str]] = field(default_factory=dict)
# NOTE: This will never be used by the controller, but it can be used by different
# evaluation tasks to store extra data needed to track the progress/state of the task.