File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { type FC, useState } from "react";
15
15
import { Link as RouterLink } from "react-router-dom" ;
16
16
import { cn } from "utils/cn" ;
17
17
import { TaskAppIFrame } from "./TaskAppIframe" ;
18
+ import { AI_APP_CHAT_SLUG } from "./constants" ;
18
19
19
20
type TaskAppsProps = {
20
21
task : Task ;
@@ -25,7 +26,11 @@ export const TaskApps: FC<TaskAppsProps> = ({ task }) => {
25
26
. flatMap ( ( r ) => r . agents )
26
27
. filter ( ( a ) => ! ! a ) ;
27
28
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 ) ;
29
34
30
35
const [ activeAppId , setActiveAppId ] = useState < string > ( ( ) => {
31
36
const appId = task . workspace . latest_app_status ?. app_id ;
You can’t perform that action at this time.
0 commit comments