fix(site): show command apps in Tasks view (#21185)

Command apps (terminal apps with `command` field) were being filtered
out from the Tasks view because they have health "disabled" when no
healthcheck is defined.

Updated the filter in `TaskApps.tsx` to allow command apps through
regardless of health status so they appear as tabs alongside web apps.

<img width="1378" height="790" alt="Screenshot 2025-12-08 at 8 10 47 PM"
src="https://github.com/user-attachments/assets/90a73bb2-d49c-4241-a4d5-798e2dd8118b"
/>

Closes https://github.com/coder/coder/issues/21183

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Ben Potter
2025-12-09 09:04:53 -06:00
committed by GitHub
co-authored by Claude Sonnet 4.5
parent 779f1571a6
commit f6b025ec7b
+1 -1
View File
@@ -34,7 +34,7 @@ export const TaskApps: FC<TaskAppsProps> = ({ task, workspace }) => {
const apps = getAllAppsWithAgent(workspace).filter(
// The Chat UI app will be displayed in the sidebar, so we don't want to
// show it as a web app.
(app) => app.id !== task.workspace_app_id && app.health !== "disabled",
(app) => app.id !== task.workspace_app_id,
);
const [embeddedApps, externalApps] = splitEmbeddedAndExternalApps(apps);
const [activeAppId, setActiveAppId] = useState(embeddedApps.at(0)?.id);