unbridled-41 opened a new issue, #5986: URL: https://github.com/apache/rocketmq-dashboard/issues/5986
### Studio Version branch: `rocketmq-studio` @ `7e7aa344` ### Runtime Environment Backend tests: `cd server && mvn -o -B -ntp test -Dtest='ToolExecutorInvocationTest'`. ### Describe the Bug The tool error boundary mapped only `BusinessException`; a metrics backend reports a validateable query with a 4xx through `PrometheusException`, a plain `RuntimeException`, which fell into the generic branch. So `POST /api/ai/tools/rmq.instance.metrics/execute` (or `rmqctl instance metrics --start 0 --end 60`) answered HTTP 500 "Tool execution failed unexpectedly." for a request the REST endpoint refuses with 400 "Metric query start must be positive": the actionable reason was discarded and a client-input error was reported as a service fault, leaving the caller unable to correct the request. ### Steps to Reproduce Call the tool with `start: 0` (or a negative `end`) for an instance with a metrics backend configured. ### What Did You Expect to See? The provider's status and message, as `/api/metrics/query` returns. ### What Did You See Instead? A 500 with a generic message. ### Impact CLI and agent callers cannot self-correct; the real reason is lost. ### Acceptance Criteria The provider's status and message survive the tool boundary, with a regression test. **Corresponding PR:** #ISSUEPR# -- 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]
