Symptom
When the agent runs out of steps it logs Failed to complete task in maximum steps, and the returned history has no entry for that failure. The report shows 'Failed to complete task in maximum steps'.
Evidence what you'll see
- The report quotes the log line
Failed to complete task in maximum steps. - The report says the else branch writes that line to the log and does not add it to
self.history.
Why it happens
Running out of steps is a real outcome, but the code only logged it. Anything that looks at the agent history never sees the failure, so the run looks like an empty history. Pull request #834 is titled fix(agent): Add max steps error to agent history #439 and is merged. It records that error on the history.
Affected versions
The version field in the report is main. The operating system in the report is macOS 15.2.
Fix steps
0 of 3 done
Your check marks stay in this browser only.
How to check it worked
- Run a task with a small step limit. The returned history should include
Failed to complete task in maximum steps, not only the log line.
If it still fails
- An earlier comment says a different pull request was closed before #834 merged. On a build older than the #834 merge, the history list still will not have the error. The linked issue does not give a patch to apply by hand.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it