davsclaus opened a new pull request, #28150:
URL: https://github.com/apache/camel/pull/28150

   https://issues.apache.org/jira/browse/CAMEL-25868
   
   Five tool answers of the camel-jbang AI tools misled a coding agent in a 
night of runs against a local model. Each fix is small:
   
   1. **Repeated `camel_catalog_doc` call.** The note no longer says the page 
was "answered in full". A long page is cut at 16000 characters, and the note 
now says that `docPage=<section title>` returns a section that was left out.
   2. **`camel_get_errors`.** The errors are kept until the integration 
restarts. Errors that failed before the newest reload in the log are marked 
`beforeLastReload`, with a note. A one-second margin keeps a new route that 
fails at once unmarked.
   3. **Reload outcome of a write.** It still shows the first five log lines. 
It now also keeps the first three ERROR lines after them, and a last line says 
how many lines were left out.
   4. **`camel_get_files`.** A file consumer moves the files it reads into 
`.camel`. Those folders are now counted (`consumedFiles`), so a data folder 
whose files were read is no longer reported as "The directory has no files".
   5. **Header check.** `CamelHttpStatusCode` and similar names are reported in 
any route, with the right name `CamelHttpResponseCode`. REST DSL routes use 
`direct`, which has no header metadata, so they were not checked before. A name 
written as an `Exchange` constant is fine, because Camel looks it up. A 
constant that `Exchange` does not have (`Exchange.HTTP_STATUS`) fails the route 
when Camel creates it, so the check reports it before the route runs. This 
covers setHeader, setProperty, setVariable and the remove EIPs.
   
   The MCP docs mention 1, 2 and 4.
   
   Tests: camel-jbang-core 2368 + 237 pass (new tests in AuthoringToolsTest, 
ReloadOutcomeTest, RepeatedToolCallsTest, SourceValidatorEndpointTest). One 
LogConfigurationTest flake on the first run is the test-order issue fixed by 
#28146.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m


-- 
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]

Reply via email to