[
https://issues.apache.org/jira/browse/CAMEL-25398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-25398.
---------------------------------
Resolution: Fixed
Merged in https://github.com/apache/camel/pull/27931 (commit 7d31f3b0d8c7) for
4.24.0: camel ask's cli_exec returns the exit code, stdout and stderr and
refuses commands that would block; failed tools answer as errors (isError) in
camel ask, camel mcp and the monitor's MCP server; external commands honour
their timeout.
_Claude Code on behalf of davsclaus_
> camel-jbang - camel ask, TUI and MCP: surface CLI failures to agents
> --------------------------------------------------------------------
>
> Key: CAMEL-25398
> URL: https://issues.apache.org/jira/browse/CAMEL-25398
> Project: Camel
> Issue Type: Sub-task
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> * Shared in-process {{CliRunner}} returning {{CliResult\{exitCode, stdout,
> stderr, elapsedMs, timedOut\}}}, used by {{camel ask}}, the TUI AI panel and
> ShellPanel (one lock).
> * {{camel ask}} {{cli_exec}}: return JSON with the exit code (today dropped
> whenever there is output), 60s timeout, refuse blocking commands with a hint
> to the non-blocking form, destructive commands require {{--yes}}.
> * TUI {{TuiToolRegistry.executeShared}} rethrows so MCP sets {{isError}};
> {{camel_run}} {{status:failed}} and failed restarts become tool errors;
> {{AiTraceTools}} / {{RuntimeTools}} pass errors through.
> * Retire LaunchManager log scraping in favour of exit code + status file;
> track CamelMonitor's camel-main restart; fix the docker/podman info check
> timeout (read before waitFor).
> _Claude Code on behalf of davsclaus (Claus Ibsen)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)