gnodet opened a new pull request, #23484: URL: https://github.com/apache/camel/pull/23484
## Summary Running `tui` or `tui catalog` inside `camel shell` crashes with `Stream Closed` because TamboUI's `JLineBackend` tries to create a second system terminal while the shell already owns stdin. This PR adds a `TuiBackendHelper` that: 1. Checks `EnvironmentHelper.getActiveTerminal()` for an active shell terminal 2. Creates a `JLineBackend(terminal)` via reflection and passes it through `TuiConfig.builder().backend(backend)` 3. Falls back to `TuiRunner.create()` when the `JLineBackend(Terminal)` constructor is not available **Depends on:** - #23479 (shell terminal sharing via `EnvironmentHelper`) - [tamboui/tamboui#351](https://github.com/tamboui/tamboui/pull/351) (adds `JLineBackend(Terminal)` constructor) **Changes:** - New `TuiBackendHelper.createTuiRunner()` in the TUI plugin - `CamelMonitor` and `CamelCatalogTui` use the helper instead of `TuiRunner.create()` ## Test plan - [x] Verified: `camel shell` → `tui` works without "Stream Closed" crash (with tamboui SNAPSHOT containing the new constructor) - [x] Verified: `camel tui` outside shell continues to work (creates its own terminal as before) _Claude Code on behalf of Guillaume Nodet_ -- 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]
