Claus Ibsen created CAMEL-25362:
-----------------------------------
Summary: camel-jbang - Shift+F8 (fix with AI) in more screens
Key: CAMEL-25362
URL: https://issues.apache.org/jira/browse/CAMEL-25362
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Reporter: Claus Ibsen
CAMEL-25358 made *Shift+F8* "fix with AI" in the Source editor and view (a
problem, or a line that fails at runtime), the Errors tab (the selected error,
on its source line) and the Log tab (the ERROR on the screen, with a pick list
when there are several). The idea is one rule everywhere: when something looks
wrong, Shift+F8 asks the AI about exactly that, with the context already filled
in, and the hint sits with the global F-keys in the footer.
Candidate screens:
|| Screen || Shift+F8 on || What the AI gets ||
| Inspect / Activity | a failed exchange | its path, the body and headers at
the failing step, the exception |
| Routes | a route with failures, or slow | the route statistics, its last
error, its source |
| Health | a DOWN check | the details of the check, the configuration of the
component |
| Circuit Breaker | an OPEN breaker | its state and failure rate, the call it
protects |
| SQL Trace | a failed or slow query | the SQL, the parameters and timing, the
route line |
| Kafka | a consumer with lag | the group, partitions and offsets, the consumer
options |
| CVE Audit | a vulnerable dependency | the advisory, and how the dependency
comes in (Camel or the project) |
What to reuse from CAMEL-25358: {{MonitorContext.AskAi}} ({{fixFailure}} for a
source line, {{explainLogError}} for a question without one), {{AiFixPrompt}},
{{RuntimeFailures}} (an error to its source line through the processor's source
location), and {{MonitorTab.renderFKeyHints}} for the footer hint.
A Camel upgrade screen (versions, LTS and EOL from the catalog, CVEs of the
version in use, the upgrade guide entries between versions, what {{camel
update}} changes) is a related idea, kept for Camel Kit, which would do the
migration work.
_Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)