davsclaus opened a new pull request, #30003: URL: https://github.com/apache/camel/pull/30003
A turn of the built-in model that ended in an `Error`, not an `Exception`, was over with nothing to see: no answer, no error in the panel, and nothing in the AI log. The agent thread caught `Exception` only. This happened on Nov 14 2026 with a local Maven repository that had `camel-jbang-plugin-tui` built after #29906 and `camel-jbang-core` built before it. Every answer ended in a `NoSuchMethodError` (`AnswerChecks.checkCode`). A benchmark that waits for the answer in the AI log waited 600 s per question all night. ## Changes - The agent thread of the built-in model also catches an `Error`, and reports what ended the turn in the panel and in the AI log. - A failure with no message shows its class name, not an empty line. - A `LinkageError` says that the jars of the Camel CLI do not match (built at different times?). - The thread of an ACP agent also catches an `Error`. It already reported other failures in the panel and in the AI log. ## Tests `AiPanelTest`: - `aTurnThatEndsInAnErrorIsShownAndLogged`: a `NoSuchMethodError` from the model call is shown as an error and written to the AI log, and the panel is not busy any more. - `aFailureWithNoMessageIsNotBlank`: an `IllegalStateException` with no message shows its class name. All 177 `AiPanel*Test` tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016Y4dDi5iQNgtHrDdz2NpwF -- 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]
