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

   ## Summary
   
   Adds a "Send Message" action to the TUI F2 actions menu. This lets users 
send messages to running Camel integrations directly from the TUI — similar to 
`camel cmd send` but with an interactive dialog.
   
   - **Route selector**: cycles through available routes with left/right arrows
   - **Smart default**: prefers `direct:`, `seda:`, `platform-http:` routes 
(endpoints designed to receive messages)
   - **Pre-selection**: when opened from the Routes tab, the currently 
highlighted route is pre-selected
   - **Body text input**: type the message body inline
   - **Mode toggle**: switch between InOnly (fire-and-forget) and InOut 
(request-reply) exchange patterns
   - **Async send**: sends on the scheduler thread to avoid blocking the TUI 
render loop
   - **Result display**: shows elapsed time, reply body (InOut), or error 
message
   
   Works from any tab since F2 is global. Uses the existing action file 
mechanism (`{pid}-action.json` / `{pid}-output.json`).
   
   ## Test plan
   
   - [ ] Build: `mvn install -pl dsl/camel-jbang/camel-jbang-plugin-tui 
-DskipTests`
   - [ ] Run a direct route: `camel run --example=send-test` (once the example 
is synced)
   - [ ] Open TUI, press F2 → Send Message
   - [ ] Verify route selector shows available routes with smart default on 
`direct:greet`
   - [ ] Type body, press Enter → verify "Sent (Xms)" result
   - [ ] Toggle to InOut mode → verify reply body shown
   - [ ] Test from Routes tab: select a route, press F2 → verify pre-selection
   - [ ] Test with single integration (auto-detect) and with no integration 
selected (error)
   - [ ] Press Esc to close dialog and return to previous tab
   
   _Claude Code on behalf of Claus Ibsen_


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