feat: hide hidden and non-healthy apps in the workspaces table (#17830)

Closes
[coder/internal#633](https://github.com/coder/internal/issues/633)
This commit is contained in:
brettkolodny
2025-05-14 13:51:45 -04:00
committed by GitHub
parent 789c4beba7
commit 9093dbc516

View File

@ -626,7 +626,9 @@ const WorkspaceApps: FC<WorkspaceAppsProps> = ({ 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[] = [];