File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
40
40
. flatMap ( ( r ) => r . agents )
41
41
. flatMap ( ( a ) => a ?. apps )
42
42
. find ( ( a ) => a ?. slug === AI_APP_CHAT_SLUG ) ;
43
+ const showChatApp =
44
+ chatApp && ( chatApp . health === "disabled" || chatApp . health === "healthy" ) ;
43
45
44
46
return (
45
47
< aside
@@ -49,7 +51,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
49
51
"border-0 border-r border-solid border-border" ,
50
52
] ,
51
53
// We want to make the sidebar wider for chat apps
52
- chatApp ? "w-[520px]" : "w-[320px]" ,
54
+ showChatApp ? "w-[520px]" : "w-[320px]" ,
53
55
] ) }
54
56
>
55
57
< header className = "border-0 border-b border-solid border-border p-4 pt-0" >
@@ -104,7 +106,7 @@ export const TaskSidebar: FC<TaskSidebarProps> = ({ task }) => {
104
106
) }
105
107
</ header >
106
108
107
- { chatApp ? (
109
+ { showChatApp ? (
108
110
< TaskAppIFrame
109
111
active
110
112
key = { chatApp . id }
You can’t perform that action at this time.
0 commit comments