bobbai00 opened a new pull request, #9603: URL: https://github.com/apache/texera/pull/9603
### What changes were proposed in this PR? Lowers the agent's default limit on model calls (steps) per message from 100 to 25 (`maxSteps` in `agent-service/src/types/agent.ts`). A looping agent stops only at this limit, so a runaway turn now costs a quarter of the calls. 25 is about twice the largest of 60 measured turns (13 model calls, median 3), so ordinary turns are not cut, and it fits the settings dialog's 1-50 range. Users can still raise it per agent in the settings. ### Any related issues, documentation, discussions? Closes #9602 Part of #9576 ### How was this PR tested? `bun test` in `agent-service`: a new test drives a model that never stops calling tools, without setting `maxSteps`, and expects the turn to stop after 25 calls. It fails on `main`, where the default is 100. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Fable 5.2, Claude Opus 5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
