From 9093dbc5160e7eab51486ec200e73cc08b71ac4b Mon Sep 17 00:00:00 2001 From: brettkolodny Date: Wed, 14 May 2025 13:51:45 -0400 Subject: [PATCH] feat: hide hidden and non-healthy apps in the workspaces table (#17830) Closes [coder/internal#633](https://github.com/coder/internal/issues/633) --- site/src/pages/WorkspacesPage/WorkspacesTable.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/src/pages/WorkspacesPage/WorkspacesTable.tsx b/site/src/pages/WorkspacesPage/WorkspacesTable.tsx index 389189bb76..047d7a6126 100644 --- a/site/src/pages/WorkspacesPage/WorkspacesTable.tsx +++ b/site/src/pages/WorkspacesPage/WorkspacesTable.tsx @@ -626,7 +626,9 @@ const WorkspaceApps: FC = ({ workspace }) => { builtinApps.delete("ssh_helper"); const remainingSlots = WORKSPACE_APPS_SLOTS - builtinApps.size; - const userApps = agent.apps.slice(0, remainingSlots); + const userApps = agent.apps + .filter((app) => app.health === "healthy" && !app.hidden) + .slice(0, remainingSlots); const buttons: ReactNode[] = [];