[
https://issues.apache.org/jira/browse/CAMEL-25449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-25449.
---------------------------------
Resolution: Fixed
Merged in https://github.com/apache/camel/pull/27955 (commit a897120ba2fc) for
4.24.0: camel debug, the last command that always used the shared
<pid>-action.json, sends its commands with ActionClient (a file per command
since Camel 4.21, the shared file only for an older integration); the monitor
already did. CamelCommand.getActionFile/getOutputFile are deprecated for plugin
commands.
_Claude Code on behalf of davsclaus_
> camel-jbang - CLI commands use per-request action files (RuntimeHelper)
> -----------------------------------------------------------------------
>
> Key: CAMEL-25449
> URL: https://issues.apache.org/jira/browse/CAMEL-25449
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.24.0
>
>
> About 30 places in the classic CLI commands (camel get, camel cmd, camel
> debug, ActionBaseCommand, via CamelCommand.getActionFile) still send actions
> through the shared <pid>-action.json / <pid>-output.json pair, so two clients
> asking the same integration at once can lose or swap answers.
> Since 4.21 the connector supports per-request files
> (<pid>-action-<requestId>.json / <pid>-output-<requestId>.json) through
> RuntimeHelper, which camel ask and the MCP server use. Move the CLI commands
> to it, keeping the shared file only as the fallback for integrations whose
> connector is older than 4.21.
> Part of the CLI overhaul for 4.24, together with the reliability work for
> agents and scripts.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)