btlqql opened a new pull request, #2058:
URL: https://github.com/apache/rocketmq-dashboard/pull/2058

   ## What is the purpose of the change
   
   Fix #2040.
   
   ClaudeCodeAgentProvider.stream() drained the Claude CLI's stdout and stderr 
without an output-size limit. Stdout was consumed through 
BufferedReader.readLine(), so one unbounded stream-json line could grow in 
memory before parsing, while stderr was collected with readAllBytes(). The 
fallback result text could also retain an arbitrarily large payload.
   
   ## Brief changelog
   
   - ClaudeCodeAgentProvider: bound each stdout line to 1 MiB, stderr to 1 MiB, 
and the retained fallback result text to 256 KiB
   - deltas are still emitted for oversized lines, but the full 
assistant/result text is no longer retained beyond the cap
   
   ## How was this patch verified
   
   - Code review: readLineBounded accumulates at most maxBytes per line; 
readNBytes caps stderr
   - `git diff --check` clean
   


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