You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/05/28 10:48:54 UTC

[PR] CAMEL-23634: camel-jbang - TUI Send Message dialog [camel]

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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23634: camel-jbang - TUI Send Message dialog [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23598:
URL: https://github.com/apache/camel/pull/23598#issuecomment-4563617185

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23634: camel-jbang - TUI Send Message dialog [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23598:
URL: https://github.com/apache/camel/pull/23598#issuecomment-4563821647

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `dsl/camel-jbang/camel-jbang-plugin-tui`
   
   <details><summary>All tested modules (2 modules)</summary>
   
   - Camel :: JBang :: Plugin :: TUI
   - Camel :: Launcher :: Container
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/26572471526)


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23634: camel-jbang - TUI Send Message dialog [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #23598:
URL: https://github.com/apache/camel/pull/23598


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org