Skip to content

Commit df8a5fd

Browse files
committed
Hide AI Chat app from the apps
1 parent 300504d commit df8a5fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

site/src/pages/TaskPage/TaskApps.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { type FC, useState } from "react";
1515
import { Link as RouterLink } from "react-router-dom";
1616
import { cn } from "utils/cn";
1717
import { TaskAppIFrame } from "./TaskAppIframe";
18+
import { AI_APP_CHAT_SLUG } from "./constants";
1819

1920
type TaskAppsProps = {
2021
task: Task;
@@ -25,7 +26,11 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
2526
.flatMap((r) => r.agents)
2627
.filter((a) => !!a);
2728

28-
const apps = agents.flatMap((a) => a?.apps).filter((a) => !!a);
29+
// The Chat UI app will be displayed in the sidebar, so we don't want to show
30+
// it here
31+
const apps = agents
32+
.flatMap((a) => a?.apps)
33+
.filter((a) => !!a && a.slug !== AI_APP_CHAT_SLUG);
2934

3035
const [activeAppId, setActiveAppId] = useState<string>(() => {
3136
const appId = task.workspace.latest_app_status?.app_id;

0 commit comments

Comments
 (0)