youngkermit8-coder commented on code in PR #2042:
URL:
https://github.com/apache/rocketmq-dashboard/pull/2042#discussion_r3806794047
##########
server/src/main/java/org/apache/rocketmq/studio/ops/ai/ClaudeCodeAgentProvider.java:
##########
@@ -171,12 +179,28 @@ private <T> T await(CompletableFuture<T> future) throws
IOException, Interrupted
try {
return future.get(OUTPUT_DRAIN_TIMEOUT_SECONDS, TimeUnit.SECONDS);
} catch (ExecutionException exception) {
+ if (hasCause(exception, OutputLimitException.class)) {
+ throw new LlmGatewayException(502,
"llm.provider.output_too_large",
Review Comment:
Addressed in b04b9389: `skip()` now counts skipped bytes against the shared
output budget, and `available()` is capped by the remaining budget. Added a
direct regression test covering both behaviors. `ClaudeCodeAgentProviderTest`
passes 6/6, the AI package passes 100/100, and Checkstyle reports 0 violations.
--
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]