diff --git a/site/src/modules/tasks/tasks.ts b/site/src/modules/tasks/tasks.ts index 93c8ca4b4cc..135586626e3 100644 --- a/site/src/modules/tasks/tasks.ts +++ b/site/src/modules/tasks/tasks.ts @@ -16,19 +16,12 @@ export type WorkspaceAppWithAgent = WorkspaceApp & { }; export function getTaskApps(task: Task): WorkspaceAppWithAgent[] { - return ( - task.workspace.latest_build.resources - .flatMap((r) => r.agents ?? []) - .flatMap((agent) => - agent.apps.map((app) => ({ - ...app, - agent, - })), - ) - // The Chat UI app will be displayed in the sidebar, so we don't want to - // show it as a tab. - .filter( - (app) => app.id !== task.workspace.latest_build.ai_task_sidebar_app_id, - ) - ); + return task.workspace.latest_build.resources + .flatMap((r) => r.agents ?? []) + .flatMap((agent) => + agent.apps.map((app) => ({ + ...app, + agent, + })), + ); } diff --git a/site/src/pages/TaskPage/TaskAppIframe.tsx b/site/src/pages/TaskPage/TaskAppIframe.tsx index e893af148f4..e1803948c4e 100644 --- a/site/src/pages/TaskPage/TaskAppIframe.tsx +++ b/site/src/pages/TaskPage/TaskAppIframe.tsx @@ -84,9 +84,7 @@ export const TaskAppIFrame: FC = ({ )} - {app.health === "healthy" || - app.health === "disabled" || - app.health === "unhealthy" ? ( + {app.health === "healthy" || app.health === "disabled" ? (