gnodet-bot commented on code in PR #27994:
URL: https://github.com/apache/camel/pull/27994#discussion_r4301696696
##########
dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/AiPanel.java:
##########
@@ -644,9 +644,12 @@ private void initClient() {
toolSet.setMode(normalizeToolMode(TuiSettings.load().getAiTools()));
}
client = created;
+ // a url that is set is the only one tried, so say which one does
not answer
Review Comment:
Nit: the intent of capturing `configuredUrl` before `detectEndpoint()` is
subtle — it prevents reading a URL potentially overwritten by fallback paths
inside detection. A short inline comment would make this ordering explicit for
future readers:
```suggestion
// capture before detectEndpoint(): fallback paths may overwrite
url on auto-detect branches
String configuredUrl = client.endpointUrl();
```
--
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]