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