Skip to content

CAMEL-23633: TUI auto-reselect integration after restart#23587

Merged
davsclaus merged 1 commit into
mainfrom
fix/CAMEL-23633
May 28, 2026
Merged

CAMEL-23633: TUI auto-reselect integration after restart#23587
davsclaus merged 1 commit into
mainfrom
fix/CAMEL-23633

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

When a user selects an integration in the TUI, stops it, and starts it again, the selection is lost because the PID changes. The user has to manually re-select it every time.

This adds auto-reselect: when a selected integration disappears, its name is remembered. When a process with the same name reappears and nothing else has been explicitly selected, the TUI automatically reselects it. This lets users stay on detail tabs (Routes, HTTP, etc.) while restarting their integrations.

The remembered name is cleared on:

  • Explicit deselection (Escape key)
  • Manual selection of a different integration

Claude Code on behalf of Claus Ibsen

Test plan

  • Start TUI, run an integration, select it, switch to a detail tab
  • Stop the integration — selection clears
  • Start the same integration again — should auto-reselect
  • Press Escape to deselect, then restart — should NOT auto-reselect
  • Select integration A, then manually select integration B — lastSelectedName clears, no stale reselect

Co-Authored-By: Claude Opus 4.6 <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 May 28, 2026
@davsclaus davsclaus merged commit e39a3bb into main May 28, 2026
6 checks passed
@davsclaus davsclaus deleted the fix/CAMEL-23633 branch May 28, 2026 08:21
@github-actions
Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • dsl/camel-jbang/camel-jbang-plugin-tui
All tested modules (2 modules)
  • Camel :: JBang :: Plugin :: TUI
  • Camel :: Launcher :: Container

⚙️ View full build and test results

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.

2 participants