From 3c967f8906e47fd229f30dfebe8779c7dd4337ff Mon Sep 17 00:00:00 2001
From: CityFun <31820853+zhengkunwang223@users.noreply.github.com>
Date: Tue, 5 Aug 2025 18:20:59 +0800
Subject: [PATCH] fix: Fix the issue where the list keeps loading when
autostart = false is set in the Supervisor configuration. (#9866)
---
agent/app/service/host_tool.go | 2 +-
frontend/src/views/toolbox/supervisor/index.vue | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/agent/app/service/host_tool.go b/agent/app/service/host_tool.go
index b60fb61e1..c51f7684d 100644
--- a/agent/app/service/host_tool.go
+++ b/agent/app/service/host_tool.go
@@ -615,7 +615,7 @@ func getProcessStatus(config *response.SupervisorProcessConfig, containerName st
for _, line := range lines {
line = strings.TrimPrefix(line, "stdout:")
fields := strings.Fields(line)
- if len(fields) >= 5 {
+ if len(fields) >= 4 {
status := response.ProcessStatus{
Name: fields[0],
Status: fields[1],
diff --git a/frontend/src/views/toolbox/supervisor/index.vue b/frontend/src/views/toolbox/supervisor/index.vue
index 625ec7b39..8ccec0075 100644
--- a/frontend/src/views/toolbox/supervisor/index.vue
+++ b/frontend/src/views/toolbox/supervisor/index.vue
@@ -27,6 +27,9 @@
{{ $t('commons.button.create') + $t('tool.supervisor.list').toLowerCase() }}
+
+
+