Skip to content

CAMEL-23855: Add F8 AI prompt panel to TUI#24321

Merged
davsclaus merged 7 commits into
mainfrom
fix/CAMEL-23855
Jun 29, 2026
Merged

CAMEL-23855: Add F8 AI prompt panel to TUI#24321
davsclaus merged 7 commits into
mainfrom
fix/CAMEL-23855

Conversation

@davsclaus

Copy link
Copy Markdown
Contributor

Summary

  • Add F8 AI prompt panel to TUI for interactive AI assistant (works with or without --mcp)
  • AI panel supports split view (25%/50%/75%) with Shift+F8 to cycle
  • AI Log popup (via Actions menu) shows tool calls, results, and responses
  • Add 10 missing MCP tools to AskTools: get_memory, get_errors, get_history, get_variables, get_services, get_route_topology, send_message, eval_expression, browse_endpoint, get_thread_dump
  • Fix shell scrollback: use private field reflection for JLine's ScreenTerminal.history (no public API exists), change to plain PgUp/PgDn instead of Shift+PgUp/PgDn
  • Comprehensive test coverage for TUI (borders, key parsing, tab rendering, fuzzy filter, shell panel, etc.)

Test plan

  • Start TUI without --mcp, verify F8 AI panel is shown in footer and opens
  • Start TUI with --mcp, verify AI panel works with tool calls
  • Open AI panel, ask a question, verify auto-scroll and dimmed elapsed time
  • Cycle AI panel size with Shift+F8 (25% → 50% → 75%)
  • Open shell (F6), verify PgUp/PgDn scrollback works
  • Open Actions menu, verify AI Log entry shows tool call history
  • mvn test passes in camel-jbang-plugin-tui

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

davsclaus and others added 6 commits June 29, 2026 15:14
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
- Add markdown rendering with hard breaks for LLM responses
- Add auto-scroll to bottom on new question/response
- Add scrollbar when conversation overflows
- Add dimmed placeholder text
- Add AI Log popup (Actions menu) showing tool calls, args, results

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 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 have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions github-actions Bot added the dsl label Jun 29, 2026
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • dsl/camel-jbang/camel-jbang-core
  • dsl/camel-jbang/camel-jbang-plugin-tui

⚠️ Some tests are disabled on GitHub Actions (@DisabledIfSystemProperty(named = "ci.env.name")) and require manual verification:

  • dsl/camel-jbang/camel-jbang-core: 1 test(s) disabled on GitHub Actions

💡 Manual integration tests recommended:

You modified dsl/camel-jbang/camel-jbang-core. The related integration tests in dsl/camel-jbang/camel-jbang-it are excluded from CI. Consider running them manually:

mvn verify -f dsl/camel-jbang/camel-jbang-it -Djbang-it-test
All tested modules (7 modules)
  • Camel :: JBang :: Core
  • Camel :: JBang :: MCP
  • Camel :: JBang :: Plugin :: MCP
  • Camel :: JBang :: Plugin :: Route Parser
  • Camel :: JBang :: Plugin :: TUI
  • Camel :: JBang :: Plugin :: Validate
  • Camel :: Launcher :: Container

⚙️ View full build and test results

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
@davsclaus davsclaus merged commit 2cc56ca into main Jun 29, 2026
5 checks passed
@davsclaus davsclaus deleted the fix/CAMEL-23855 branch June 29, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant