bobbai00 opened a new pull request, #9593:
URL: https://github.com/apache/texera/pull/9593

   ### What changes were proposed in this PR?
   
   A turn that reaches the step limit now ends with a message from the agent. 
Before, the chat went quiet.
   
   > I stopped because I reached the limit of 25 steps for one message, so the 
task may be unfinished. Send another message to continue, or raise the limit in 
the agent's settings.
   
   - **Where:** `sendMessage` in `agent-service/src/agent/texera-agent.ts` adds 
it as a closing agent step, as for a stopped or failed turn. The frontend is 
unchanged.
   - **When:** only if the loop's stop condition ended the turn. The AI SDK 
asks it only when the loop would otherwise go on, so a turn that ends for 
another reason on its last allowed step gets no message.
   - **Next turn:** the model reads it as the last entry of the earlier task.
   
   ### Any related issues, documentation, discussions?
   
   Closes #9592
   Part of #9576
   
   ### How was this PR tested?
   
   - `bun test` in `agent-service`, eight new tests. The message appears at the 
limit and names the limit the turn started with. It does not appear when the 
model answers on its last allowed step, a cut-off tool call ends the turn, or 
the user stops it.
   - Live with Claude Haiku 5.5 and a limit of 2: the chat panel showed the 
message, and "continue" resumed the work.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Fable 5.2)
   


-- 
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]

Reply via email to