youngkermit8-coder opened a new issue, #1719:
URL: https://github.com/apache/rocketmq-dashboard/issues/1719

   ## Problem
   
   `CliAgentProvider.complete()` drains the child process' merged stdout/stderr 
with `InputStream.readAllBytes()`. The process may run for up to 180 seconds, 
so a malfunctioning CLI or unexpectedly verbose provider response can make 
Studio buffer an unbounded amount of data in the JVM heap before the timeout is 
reached.
   
   The provider is also used by reader-accessible AI chat. Although the process 
timeout prevents an indefinitely running child, it does not bound memory 
consumption while output is still arriving.
   
   ## Proposed fix
   
   - cap buffered CLI completion output at a documented byte limit
   - destroy the child process as soon as the cap is exceeded so it cannot 
block on a full pipe
   - return a specific LLM gateway error instead of treating overflow as an 
empty or generic CLI response
   - add a regression test with a small test-only limit that proves oversized 
output is rejected
   


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