From 616e3f2cd6fc5e1b2335c72dba63aa4eca4d2938 Mon Sep 17 00:00:00 2001 From: Ziheng Sun Date: Wed, 23 Oct 2024 01:09:22 -0400 Subject: [PATCH] fix the console message showing up in wrong process issue --- src/main/resources/static/js/gw.process.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/static/js/gw.process.js b/src/main/resources/static/js/gw.process.js index 160b5bcd..4401e5f7 100644 --- a/src/main/resources/static/js/gw.process.js +++ b/src/main/resources/static/js/gw.process.js @@ -961,6 +961,10 @@ GW.process = { }, displayOutput: function (msg) { + + // make sure the current history id is updated + GW.process.history_id = msg.hid + var output = GW.general.escapeCodeforHTML(msg.output); if (msg.output == "logfile") { @@ -1310,6 +1314,8 @@ GW.process = { GW.ssh.process_output_id = "process-log-window"; + GW.process.history_id = null; + msg = GW.general.parseResponse(msg); code_type = msg.lang == null ? msg.description : msg.lang;