This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 0c3a6a941b87 chore: skip vanish animation for explicitly stopped
processes in TUI
0c3a6a941b87 is described below
commit 0c3a6a941b8734f002cf55821f24a560ac10b1df
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jun 8 19:48:30 2026 +0200
chore: skip vanish animation for explicitly stopped processes in TUI
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
.../apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java
index 9c21d6d3a6cf..3437eee08aaf 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java
@@ -1842,8 +1842,12 @@ public class CamelMonitor extends CamelCommand {
List<IntegrationInfo> previous = data.get();
for (IntegrationInfo prev : previous) {
if (!prev.vanishing && !livePids.contains(prev.pid) &&
!vanishing.containsKey(prev.pid)) {
- stoppingPids.remove(prev.pid);
- vanishing.put(prev.pid, new VanishingInfo(prev,
System.currentTimeMillis()));
+ boolean wasExplicitStop = stoppingPids.remove(prev.pid);
+ if (wasExplicitStop) {
+ metrics.removeVanished(prev.pid);
+ } else {
+ vanishing.put(prev.pid, new VanishingInfo(prev,
System.currentTimeMillis()));
+ }
}
}